[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-02-17 Thread Mohammad
Hi, Based on the discussion here, I have made a small two level non recursive TOC generator which is rather fast andn most cases is enough for simple small wikis. It uses simple navigation buttons as tiddler footer. http://kookma.toc.tiddlyspot.com/ --Mohammad On Wednesday, January 22, 2020 a

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-25 Thread Mohammad
Hi Eric, Thank you for update. --Mohammad On Saturday, January 25, 2020 at 3:27:07 PM UTC+3:30, Eric Shulman wrote: > > On Saturday, January 25, 2020 at 1:33:57 AM UTC-8, Mohammad wrote: >> >> Hello again Eric, >> Based on your recent reply, I made some change to *toc-item-drop* macro >> the a

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-25 Thread Eric Shulman
On Saturday, January 25, 2020 at 1:33:57 AM UTC-8, Mohammad wrote: > > Hello again Eric, > Based on your recent reply, I made some change to *toc-item-drop* macro > the and it seems it work now! > Please have a look and let me know if you confirm it. > Good Work! However... it needed a little bi

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-25 Thread Mohammad
Hello again Eric, Based on your recent reply, I made some change to *toc-item-drop* macro the and it seems it work now! Please have a look and let me know if you confirm it. --Mohammad \define toc-item-drop() <$reveal default=<> type="nomatch" text=<>> <$vars sourcetags={{{ [get[tags]]

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-24 Thread Eric Shulman
On Friday, January 24, 2020 at 8:34:46 PM UTC-8, Mohammad wrote: > > In the example of previous post assume you add a new tiddler tagged with A > named ad > If *ad* has a list-after field with value *aa*, whenever you reorder list > and darg and drop *aa* to a new position, dd will be moved and a

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-24 Thread Mohammad
Eric, Another issue: In the example of previous post assume you add a new tiddler tagged with A named ad If *ad* has a list-after field with value *aa*, whenever you reorder list and darg and drop *aa* to a new position, dd will be moved and appear after *aa*. the same is true for child tiddle

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-24 Thread Mohammad
Problem with drag and drop in the author mode: http://www.TiddlyTools.com/InsideTW Hi Eric, I think I understood what is wrong with toc-tree in author mode! It seems in TiddlyTools/TOC/Macros the line <$action-listops $tiddler=<> $field="list" $subfilter

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-24 Thread Mohammad
Eric, It seems drah onto works fine (using ctrl) but drag after and before does not work. Always the dropped item appended to the end of list. This prevent to reorder items in a branch. Would you please check it? --Mohammad On Wednesday, January 22, 2020 at 4:08:28 PM UTC+3:30, Eric Shulman

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-23 Thread Eric Shulman
On Thursday, January 23, 2020 at 4:43:27 AM UTC-8, bimlas wrote: > > Eric, > > It has an on-hover "more button" showing tools. >>> >> >> Yes... this makes it easy to use "New Here" to add a new child item to >> the tree >> > > In my opinion, this solution is not really usable on the phone (althoug

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-23 Thread Mohammad
Eric, I could successfully install the Tiddlytools/TOC on tiddlywiki.com It seems it is slow as I click on an entry or a link (update the currentTiddler) I use toc-tree. How I can overcome the very slow performance? --Mohammad On Wednesday, January 22, 2020 at 4:08:28 PM UTC+3:30, Eric Shulm

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-23 Thread bimlas
Eric, It has an on-hover "more button" showing tools. >> > > Yes... this makes it easy to use "New Here" to add a new child item to the > tree > In my opinion, this solution is not really usable on the phone (although I have only tried it in DeveloperTools Responsive view), because hover is on

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread TonyM
Eric, et al A lot has happened overnight (my time) in this thread. Thanks for your contributions, and eric for this example > >> \define toc-all(here,exclude) >> <$list filter="""[title[$here$]tagging[]] $exclude$ -[[$here$]]"""> >><$text text=<>/> >> >><$macrocall $name="toc-all

Re: [tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Eric Shulman
On Wednesday, January 22, 2020 at 12:21:08 PM UTC-8, Mohammad wrote: > > I confirm that the Eric method is simpler and takes care of circular > references! > Please note that Jeremy added this to the TWCore TOC definitions ($:/core/macros/toc) a long time ago. However, there is one difference..

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Eric Shulman
On Wednesday, January 22, 2020 at 11:09:44 AM UTC-8, Mat wrote: > > Drag'n dropping a toc item creates double entries. > I wrote these macros for my TiddlyBook framework which is used by InsideTW. As a consequence, there are some TiddlyBook-specific dependencies that you need to satisfy. Speci

Re: [tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Scott Kingery
Thanks, Mohammad. I can confirm it works. I'll have a look at Eric's solution as well. Scott On Wednesday, January 22, 2020 at 12:21:08 PM UTC-8, Mohammad wrote: > > Hi Scott, > Try the attached revised TOC. > I confirm that the Eric method is simpler and takes care of circular > references! >

Re: [tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
Hi Scott, Try the attached revised TOC. I confirm that the Eric method is simpler and takes care of circular references! I may add the selective-expandable feature to it! Note that you can customize the code to meet your requirements. --Mohammad On Wednesday, January 22, 2020 at 10:51:11 PM UT

Re: [tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
Hi Scott, Yea, you are right the first level entries show the > even if has no child! I will correct and upload again! --Mohammad On Wednesday, January 22, 2020 at 10:51:11 PM UTC+3:30, Scott Kingery wrote: > > Mohammad, > That's odd, it is instantly reproducible for me. > > in Tiddlywiki.com: >

Re: [tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Scott Kingery
Mohammad, That's odd, it is instantly reproducible for me. in Tiddlywiki.com: Create a new tiddler Tag it "TabelOfContents" Drag in your Tony-TOC-Expandable 5 tiddler See the results Unless you've updated your code since then. Looks like the attached for me. Scott On Wednesday, January 22, 202

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mat
Eric, I'm trying out your TOC. A few issues. First, for reference, here's a complete list of all tiddlers: http://tiddlytools.com/InsideTW/#TiddlyTools%2FTOC%2FMacros http://tiddlytools.com/InsideTW/#TiddlyTools%2FTOC%2FTemplate http://tiddlytools.com/InsideTW/#TiddlyTools%2FTOC%2FStylesheet

Re: [tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad Rahmani
Scott, I cannot reproduce it! I deleted HelloThere and even TableOfContents, it works fine. Could give me a short a example! Best wishes Mohammad On Wed, Jan 22, 2020 at 10:06 PM Scott Kingery wrote: > Thanks all for the work on this. > > Mohammad, I like that you are hiding the > symbols fo

Re: [tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad Rahmani
Hi Scott! Sure I will fix it! By the way I may recommend to have a look at the solutions provided by Eric. --Mohammad Best wishes Mohammad On Wed, Jan 22, 2020 at 10:06 PM Scott Kingery wrote: > Thanks all for the work on this. > > Mohammad, I like that you are hiding the > symbols for entr

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Scott Kingery
Thanks all for the work on this. Mohammad, I like that you are hiding the > symbols for entries that don't have sub-entries. However, this doesn't seem to work in my testing when the top level has no sub-entries. For example, if on tiddlywiki.com there were no HelloThere entries you would still

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
Thanks! It works! This address the long waiting exclude branches, nodes in toc macro included in the core! On Wednesday, January 22, 2020 at 7:40:06 PM UTC+3:30, Eric Shulman wrote: > > On Wednesday, January 22, 2020 at 7:36:42 AM UTC-8, Mohammad wrote: >> >> In your solution, how one can EXCLUD

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Eric Shulman
On Wednesday, January 22, 2020 at 7:25:06 AM UTC-8, Eric Shulman wrote: > > And it auto-navigates to show where in the tree you are! >> > > It uses $:/HistoryList!!currenttiddler to highlight the most recently > opened tiddler > I just made a small fix to the TOC/Template to restore the use of <

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Eric Shulman
On Wednesday, January 22, 2020 at 7:36:42 AM UTC-8, Mohammad wrote: > > In your solution, how one can EXCLUDE one branch or item from toc? > I means assume in tiddlywiki.com I want to exclude (hide) Examples branch > from! > How the below code should be modified to reflect this exclusion? > When

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
Eric, In your solution, how one can EXCLUDE one branch or item from toc? I means assume in tiddlywiki.com I want to exclude (hide) Examples branch from! How the below code should be modified to reflect this exclusion? --Mohammad On Wednesday, January 22, 2020 at 4:29:30 PM UTC+3:30, Eric Shulma

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
On Wednesday, January 22, 2020 at 4:08:28 PM UTC+3:30, Eric Shulman wrote: > > On Wednesday, January 22, 2020 at 1:32:03 AM UTC-8, Mat wrote: >> >> Mohammad wrote: >>> >>> Drag and drop in tiddlywiki.com and see how amazingly it works! >>> >> >> Thanks, both of you, for sharing. Please note that

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Eric Shulman
On Wednesday, January 22, 2020 at 6:10:26 AM UTC-8, Mat wrote: > > Eric Shulman wrote: >> >> My custom TOC macros for InsideTiddlyWiki include drag-and-drop >> handling. To try it, open http://www.TiddlyTools.com/InsideTW and >> > > Aha! > It has an on-hover "more button" showing tools. > Yes.

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
Amazing Eric! How keep this simple and add the expandable behavior on node with child branches? On Wednesday, January 22, 2020 at 4:29:30 PM UTC+3:30, Eric Shulman wrote: > > Here's a very simple recursive "tree walk" that shows the entire > TableOfContents tree: > > \define toc-all(here,exclud

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mat
Eric Shulman wrote: > > My custom TOC macros for InsideTiddlyWiki include drag-and-drop handling. > To try it, open http://www.TiddlyTools.com/InsideTW and > Aha! It has an on-hover "more button" showing tools. And it auto-navigates to show where in the tree you are! I'm not sure how to test i

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
On Wednesday, January 22, 2020 at 1:02:03 PM UTC+3:30, Mat wrote: > > Mohammad wrote: >> >> Drag and drop in tiddlywiki.com and see how amazingly it works! >> > > > Thanks, both of you, for sharing. Please note that recursions can cause > problems also: For example, go to tiddlywiki.com and tag

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Eric Shulman
Here's a very simple recursive "tree walk" that shows the entire TableOfContents tree: \define toc-all(here,exclude) <$list filter="""[title[$here$]tagging[]] $exclude$ -[[$here$]]"""> <$text text=<>/> <$macrocall $name="toc-all" here=<> exclude="""$exclude$ -[[$here$]]"""/> \

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
Hi Eric, Many thanks for clarification and sharing that powerful toc macros! On Wednesday, January 22, 2020 at 4:08:28 PM UTC+3:30, Eric Shulman wrote: > > On Wednesday, January 22, 2020 at 1:32:03 AM UTC-8, Mat wrote: >> >> Mohammad wrote: >>> >>> Drag and drop in tiddlywiki.com and see how amaz

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mohammad
Hi Mat, On Wednesday, January 22, 2020 at 1:02:03 PM UTC+3:30, Mat wrote: > > Mohammad wrote: >> >> Drag and drop in tiddlywiki.com and see how amazingly it works! >> > > > Thanks, both of you, for sharing. Please note that recursions can cause > problems also: For example, go to tiddlywiki.com a

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Eric Shulman
On Wednesday, January 22, 2020 at 1:32:03 AM UTC-8, Mat wrote: > > Mohammad wrote: >> >> Drag and drop in tiddlywiki.com and see how amazingly it works! >> > > Thanks, both of you, for sharing. Please note that recursions can cause > problems also: For example, go to tiddlywiki.com and tag the Hel

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread TonyM
Mat I agree loading too many features into a solution is not good especialy when sharing so people can learn from it. In part the features I am referring to are those that make the solution simple but customisable and based on higher quality design, such that its reusable and more likely to wo

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mat
TonyM wrote: > > I am planing to provide an example of reordering the toc, [...] hope to > release many of my inventions. > Exciting! I've wanted this for a long time (we had it in TWC!) @Siniy-Kit made something for the native

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread TonyM
Mat I am planing to provide an example of reordering the toc, but I ran down a number of rabbit holes which opened whole new worlds like in Alice in wonderland. I have being very productive lately and hope to release many of my inventions. In truth I am not so good at releasing them because I

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread Mat
Mohammad wrote: > > Drag and drop in tiddlywiki.com and see how amazingly it works! > Thanks, both of you, for sharing. Please note that recursions can cause problems also: For example, go to tiddlywiki.com and tag the HelloThere tiddler with "Examples" (i.e to create a loop because Examples is

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-22 Thread TonyM
Mohammad I would encourage any posts in this thread with TOC examples to build a good resource, be it searching the forum, what you add to twscripts and other examples. My key point though was pointing out how when someone has a special need they can take the basic initial script and build on

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-21 Thread Mohammad
Tony! One feature is missing is when you open an entry from toc list from sidebar it is good to have it highlighted! I know Eric Shulman has developed some powerful toc macro in his http://tiddlytools.com/InsideTW/ And those macro supports this! It seems when a tiddler in the toc is under foc

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-21 Thread Mohammad
Hi Tony, This is an improved TOC-Expandable sports two button to collapse and expand all tiddlers in the table-of-contents Also it is smart enough to hide the right arow for entries have no child. I have created an experimental wiki on tiddlyspot will share later. Drag and drop in tiddlywiki.c

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-21 Thread Mohammad
Hi Tony Try this one \define slider-toc(title, content) <$set name="revealState" value=<>> <$reveal type="nomatch" state=<> text="yes"> <$button class="tc-btn-invisible tc-tiddlylink" set=<> setTo="yes"> {{$:/core/images/right-arrow}} <$reveal type="match" state=<> text="yes"> <$but

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-21 Thread TonyM
Mohammad, Thanks for sharing. I note however there is no indicator if their is, or is not, any subtiddlers. If you are happy to provide a fix and a minimal example, as you have so far, then have a go of adding your slider to the bigger example it would be interesting. What are the changes to

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-18 Thread Mohammad
*A Clone of TOC-EXPANDABLE* *but very simple and easy to customize* Hi again Tony! I just added a slider macro from TW-Scripts to your simple to understand toc macro to improve it - the current code shows all entries and it takes time and make TW slow - the new code -- uses a slider macro so e

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-18 Thread Mohammad
Added to TW-Scripts On Saturday, January 18, 2020 at 6:06:07 AM UTC+3:30, TonyM wrote: > > Rather than Provide a link to each tiddler in our toc we can use a tag > pill on the current tiddler. > > You can use a tag pill to drag and drop the order of items so tagged; > This is what we use in M

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-18 Thread Mohammad
Tony I may also two small customization in UI - depth to be changed - small searchbox A checkbox or setting can hide or show them. --Mohammad On Saturday, January 18, 2020 at 2:54:32 PM UTC+3:30, TonyM wrote: > > Folks, > > Lets go advanced based on my first post. > > The Attached JSON can be

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-18 Thread Mohammad
Great addition Tony! I may recommend to change line 6 in the script from to --Mohammad On Saturday, January 18, 2020 at 2:54:32 PM UTC+3:30, TonyM wrote: > > Folks, > > Lets go advanced based on my first post. > > The Attached JSON can be dropped on TiddlyWiki.com or any wiki, it is > stil

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-18 Thread Mat
Actually, that goes for the tag macro too. It uses current tiddler as default. <:-) -- 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...@google

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-18 Thread Mat
Just a note: <$link to=<> ><$text text=<>/> has (thankfully) been simplified to this syntax: <$link/> <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving

[tw5] Re: Recursive Wikitext for TOC Customisation and More (Shared Knowledge)

2020-01-17 Thread TonyM
Rather than Provide a link to each tiddler in our toc we can use a tag pill on the current tiddler. You can use a tag pill to drag and drop the order of items so tagged; Here I only changed the second line in the previous example. \define each-other-level(filter) <$macrocall $name=tag tag=<>/>