[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-06-10 Thread Mohammad
Thanks Mario,
 I would appreciate to notify community!

Best
Mohammad

On Tuesday, June 11, 2019 at 1:43:47 AM UTC+4:30, PMario wrote:
>
> Hi, 
> I'm creating a new PR atm. ... 
>
> An official "exclude" parameter will be part of the fix. 
>
> The "focused-tiddler" plugin will not be part of the PR. It will be a new 
> wikilabs plugin.
>
> -mario
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fa122e8b-505c-40ef-afd4-54853268eda9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-06-10 Thread PMario
Hi, 
I'm creating a new PR atm. ... 

An official "exclude" parameter will be part of the fix. 

The "focused-tiddler" plugin will not be part of the PR. It will be a new 
wikilabs plugin.

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b0edb190-a321-4862-8933-af43be984676%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-06-10 Thread Mohammad
Hi Mario,
 Is there any chance to have this refactored toc macro in TW 5.1.20?
Some features are really demanding by many users (like exclude,...)
Also the focused item and colored  toc item are really helpful!

--Mohammad

On Monday, May 6, 2019 at 12:54:42 AM UTC+4:30, PMario wrote:
>
> On Sunday, May 5, 2019 at 5:50:03 PM UTC+2, Mohammad wrote:
> ...
>
>>  I have two comments
>>
>
> Thx for testing.
>  
>
>>
>>1. By default when you open a tiddler from TOC on the sidebar it is 
>>open at top of story list and this makes confusion. You clicked on TOC 
>> item 
>>from top to bottom but you see tiddler from bottom to top and when scroll 
>>focused tiddlers is the reverse direction
>>
>> This setting can be changed in the ControlPanel: Settings: Tiddler 
> Opening Behaviour. ... It's just a test version, where I did test several 
> settings.  
>
>>
>>1. When an item in the TOC is red (means focused-tiddler) by hovering 
>>mouse it gets underline but loses its red color! This makes 
>>secondconfusion. I think focuses tiddler is highlighted even when pointer 
>>is on that.
>>
>> Same here. Just a test CSS. To show the possibilities. ... It needs more 
> refactoring. ... We may even add it to the palette, so users can change the 
> behaviour if they want. 
>
> Keep the feedback coming :)
>
> have fun!
> mario
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cb05a3c2-a028-40fc-9208-cde3b81b73c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-05-05 Thread PMario
On Sunday, May 5, 2019 at 5:50:03 PM UTC+2, Mohammad wrote:
...

>  I have two comments
>

Thx for testing.
 

>
>1. By default when you open a tiddler from TOC on the sidebar it is 
>open at top of story list and this makes confusion. You clicked on TOC 
> item 
>from top to bottom but you see tiddler from bottom to top and when scroll 
>focused tiddlers is the reverse direction
>
> This setting can be changed in the ControlPanel: Settings: Tiddler Opening 
Behaviour. ... It's just a test version, where I did test several 
settings.  

>
>1. When an item in the TOC is red (means focused-tiddler) by hovering 
>mouse it gets underline but loses its red color! This makes 
>secondconfusion. I think focuses tiddler is highlighted even when pointer 
>is on that.
>
> Same here. Just a test CSS. To show the possibilities. ... It needs more 
refactoring. ... We may even add it to the palette, so users can change the 
behaviour if they want. 

Keep the feedback coming :)

have fun!
mario



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8803841d-6f3e-44a7-b9d3-68519bb6f5fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-05-05 Thread Mohammad
Hi Mario,
 I have two comments


   1. By default when you open a tiddler from TOC on the sidebar it is open 
   at top of story list and this makes confusion. You clicked on TOC item from 
   top to bottom but you see tiddler from bottom to top and when scroll 
   focused tiddlers is the reverse direction
   2. When an item in the TOC is red (means focused-tiddler) by hovering 
   mouse it gets underline but loses its red color! This makes second 
   confusion. I think focuses tiddler is highlighted even when pointer is on 
   that.

The exclude works fine in semantic way!

-Mohammad

On Thursday, May 2, 2019 at 7:34:24 PM UTC+4:30, PMario wrote:
>
> Hi Folks, 
>
> I did just upload a video, that shows some "work in progress" info about 
> the TOC macros . 
>
> There are some visual improvements. 
>
>  - There are some "regression" fixes, that came with the last version
>  - New "Sidebar: Open" behaviour - highlight selected tiddler
>  - New "Sidebar: Contents" behaviour - highlight selected tiddler
>  
> And some conceptual improvements
>
>  - More generic code, that supports "selected tiddler" highlighting
>  - new plugin: "focused-tiddler", that may be included into the core. 
> - It's a plugin atm, since it may interfere with 
> - "dynaview-plugin" and 
> - "TiddlyMaps - HotZone" plugin
>  - Now concept for "tabbed-tocs"
>
> IF you like it, please give an +1 at github 
> 
>
> Feedback is also very welcome here! ;)
>
> ---
>
> And NO, it's not possible to "auto-expand" the tree, with the current 
> structure of the TW TOC. 
>
> and YES, If the toc-structure is clean, it will be possible to implement 
> "auto-expand". -> WIP
>
> have fun!
> mario
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9bafafb8-5dc3-460a-bf3e-f91a8d3612d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-05-03 Thread PMario
On Friday, May 3, 2019 at 12:13:58 PM UTC+2, TonyM wrote:
... 

> Thanks for your responses. On the last item I am happy to use either 
> modified edit templates or view templates since the idea of an update 
> template is just a controlled or form based edit which is a non generic 
> tiddler edit mode allowing the designer to simplify and control the 
> elements to be edited by a user.
>

You are right. The existing EditTemplate is way to complicated for ordinary 
designers to be used as an example for a "simple" tiddler "form"... 
 

> If there is a way to use multiple edit views or templates I am yet to find 
> it, so please share.
>

The new "toc-tabbed-internal-nav" could be an example for a "tiddler-based" 
story, that allows us to generate simpler forms. 

Such a story needs 2 elements: 

 - A navigation section
 - A View / Edit section

The navigation section could be as simple as 2 links like: [[Tiddler 1]] 
[[Tiddler 2]]

The ViewTemplate could be as simple as: 

<>
<$transclude mode="block">

The EditTemplate ... depends on the use-case has to be done. 

We'd need to specify the "simplest" tiddler editor, that still makes 
sense.  

have fun!
mario


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/17151713-8271-40cc-8409-a77fbf81e694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-05-03 Thread TonyM
Mario

Thanks for your responses. On the last item I am happy to use either modified 
edit templates or view templates since the idea of an update template is just a 
controlled or form based edit which is a non generic tiddler edit mode allowing 
the designer to simplify and control the elements to be edited by a user.

If there is a way to use multiple edit views or templates I am yet to find it, 
so please share.

Thanks and great work
Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4aae8d15-f4ef-4267-8efb-645e3667c754%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-05-03 Thread PMario
On Friday, May 3, 2019 at 2:36:59 AM UTC+2, TonyM wrote:
...

> Thanks these improvements look great. 
>

Thx, 


>- Can we used the value of the "viewed tiddler" in other operations?
>
> Yes.

I did call it "focused-tiddler". It's a new field in the $:/HistoryList 
tiddler ... Changes to HistoryList activate the TW storyview 
"scroll-into-view" mechanism. 
 

>
>- ... like cause a popul if someone is looking at a specific tiddler?
>
> Should be doable. ... If an animation is active the mechanism uses the 
same delay that can be adjusted in the ControlPanel. eg: 400ms
 

>
>- I think in someways what you have done is to provide access to the 
>"active/visible tiddler" which new users often confuse with currentTiddler 
>and advanced users would like access to for other reasons.
>
> Yes. ... At the moment the "focused-tiddler" field is set, if a tiddler 
title position reaches the upper 25% of the visible window area. eg: var 
treshold = viewportHeight / 4;

At the moment the mechanism uses the default Story, which is ok for the 
"classic" story-view. ... It will fail with some experimental story-views 
eg: "Stacked" which can be selected at TW prerelease. The reason is: I 
think I would have needed to many changes in the core to make it work. ... 
So it would take ages to get it merged. :/


>- These would be very useful in conjunction with "Repopup, Volant, 
>Mentat". effectively allowing a number of stories to be managed and 
>visible at once on a dashboard.
>
>  
I don't know, how those plugins are implemented (Didn't have a look at the 
code). ... With the TW core 3 elements are involved to navigate the story. 

 - The navigator-widget, which sets the "story" and "history" parameters. 
- internally it also sets the "tv-history-list" and "tv-story-list" 
variables. 
- those variables are now used by the TOC macros, which is much more 
flexible now. 

 - the list-widget which is responsible to manipulate $:/StoryList - list 
field
- It defines "viewTemplate" and "editTemplate"
- The "storyview" is responsible for "animations" like: 
scroll-into-view, if a link is clicked and the tiddler is already open

 - story-view ... as written above is responsible for animations like 
- open tiddler animation
- close tiddler animation
- scroll into view ... 

If those 3 elements are used in the right way, then yes.  But I doubt 
that's the case. 



>- Could I suggest that just as you used the viewTemplate to iterate 
>tiddlers in an internal toc that we also provide the means define and use 
>other templates.
>
> yes ... That was just an example, that was easy to do. ... 
 

>
>- When you use the full view template to display the tiddlers within 
>an internal TOC we could also enable an Update template that allows a 
> given 
>tiddler to provide selected editable fields, form like, rather than the 
>classic editor. I think this easier to achieve inside an internal TOC but 
>Ultimately I would like to see this even in the main story river.
>
> I don't understand, why everyone wants to edit tiddlers with the 
ViewTemplate, instead of using EditTemplates. ViewTemplates are the wrong 
tool here. ... Even the name is wrong!

The edit mechanism is well tested and has no side effects. ... We can have 
a 100 different EditTemplates if we want and we should start to use them. 

No offence - just some thoughts ;)

have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f5757958-ccc4-48c8-8789-99c9e8cba037%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-05-02 Thread TonyM
Mario,

Thanks these improvements look great. 


   - Can we used the value of the "viewed tiddler" in other operations? 
   like cause a popul if someone is looking at a specific tiddler? I think in 
   someways what you have done is to provide access to the "active/visible 
   tiddler" which new users often confuse with currentTiddler and advanced 
   users would like access to for other reasons.
   - These would be very useful in conjunction with "Repopup, Volant, 
   Mentat". effectively allowing a number of stories to be managed and 
   visible at once on a dashboard.
   - Could I suggest that just as you used the viewTemplate to iterate 
   tiddlers in an internal toc that we also provide the means define and use 
   other templates. When you use the full view template to display the 
   tiddlers within an internal TOC we could also enable an Update template 
   that allows a given tiddler to provide selected editable fields, form like, 
   rather than the classic editor. I think this easier to achieve inside an 
   internal TOC but Ultimately I would like to see this even in the main story 
   river.


Thanks for your work
Tony





On Friday, May 3, 2019 at 1:04:24 AM UTC+10, PMario wrote:
>
> Hi Folks, 
>
> I did just upload a video, that shows some "work in progress" info about 
> the TOC macros . 
>
> There are some visual improvements. 
>
>  - There are some "regression" fixes, that came with the last version
>  - New "Sidebar: Open" behaviour - highlight selected tiddler
>  - New "Sidebar: Contents" behaviour - highlight selected tiddler
>  
> And some conceptual improvements
>
>  - More generic code, that supports "selected tiddler" highlighting
>  - new plugin: "focused-tiddler", that may be included into the core. 
> - It's a plugin atm, since it may interfere with 
> - "dynaview-plugin" and 
> - "TiddlyMaps - HotZone" plugin
>  - Now concept for "tabbed-tocs"
>
> IF you like it, please give an +1 at github 
> 
>
> Feedback is also very welcome here! ;)
>
> ---
>
> And NO, it's not possible to "auto-expand" the tree, with the current 
> structure of the TW TOC. 
>
> and YES, If the toc-structure is clean, it will be possible to implement 
> "auto-expand". -> WIP
>
> have fun!
> mario
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9f1766e2-e00a-4a04-aad4-e30e3f53e020%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TOC] Table of Content - refactoring - ... again ;)

2019-05-02 Thread PMario
Uuups,

Zip file can be found here: 
https://github.com/Jermolene/TiddlyWiki5/issues/3627#issuecomment-488696527

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/87c57db1-122e-43fc-9639-538394a20988%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.