[TW5] plugin filter historylist (breadcrumbs, trail, recently visited)

390 views
Skip to first unread message

wimm

unread,
May 5, 2016, 8:25:27 AM5/5/16
to tiddl...@googlegroups.com

new feature

This plugin/filter generates the tiddlers which you already visited since loading this or your TiddlyWiki.

Compared to Open tab : When you close a tiddler, the title is still visible in the History Tab.

Compared to Recent tab, the list includes modified tiddler, but also all visited tiddlers. When you delete a tiddler during your session the tiddler will be in italics like TiddlerDoesNotExistAnyMore.


internals

It scans* the $:/HistoryList for the "title:" field and generates the the titles as links 

  • Most recently visited Tiddler appear first at the top.
  • Draft Tiddlers are skipped.
  • If a tiddler title is present multiple times in the $:/HistoryList then only the most recent one is part of the result. As a result if you click on a link in the history it automatically moves to the top.
  • It doesn't parse the json tiddler to get the "title": field values. It  uses a regular expression for the nicely formatted $:/HistoryList.

usage

to display all visited tiddlers so far

{{{ [history[]] }}}


Like all filters you can search the tiddlers and limit the number of results or sort them alphabetically. There is as far as I know only one tiny bug, to maximize the number of entries to 5 you need to specify 6 (one higher). So if you want to show max the last 25 visited tiddlers which contain the string from the searchfield:

{{{ [history[]search{$:/temp/search}limit[26]] }}}


Similar for the advancedSearch tiddler you can use:

{{{ [history[]search{$:/temp/advancedsearch}limit[26]] }}}


try and download



Let me know if you like it ;-)


KR
WiM

Jeremy Ruston

unread,
May 5, 2016, 2:14:19 PM5/5/16
to tiddl...@googlegroups.com
Hi WiM

That’s great, very useful. I notice that the wiki is still on 5.1.9; it probably doesn’t affect the plugins operation, but I wondered if you might be able to upgrade it so that users can be confident that it works with the latest version.

Many thanks

Jeremy.


On 5 May 2016, at 13:25, wimm <wiem...@gmail.com> wrote:

new feature

This plugin/filter generates the tiddlers which you already visited since loading this or your TiddlyWiki.

Compared to Open tab : When you close a tiddler, the title is still visible in the History Tab.

Compared to Recent tab, the list includes modified tiddler, but also all visited tiddlers. When you delete a tiddler during your session the tiddler will be in italics like TiddlerDoesNotExistAnyMore.


internals

It scans the $:/HistoryList for the "title:" field and generates the the titles as links.

  • Most recently visited Tiddler appear first.
  • Draft Tiddlers are skipped.
  • If a tiddler title is present multiple times in the $:/HistoryList then only the most recent one is part of the result.

usage

to display all visited tiddlers so far

{{{ [history[]] }}}


Like all filters you can search the tiddlers and limit the number of results. There is as far as I know only one tiny bug, to maximize the number of entries to 5 you need to specify 6 (one higher). So if you want to show max the last 25 visited tiddlers which contain the string from the searchfield:

{{{ [history[]search{$:/temp/search}limit[26]] }}}


Similar for the advancedSearch tiddler you can use:

{{{ [history[]search{$:/temp/advancedsearch}limit[26]] }}}


try and download



Let me know if you like it ;-)

KR
WiM

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/4142d0d2-9301-4463-b945-1d97a3e4d7a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

wimm

unread,
May 6, 2016, 2:35:47 AM5/6/16
to tiddl...@googlegroups.com
Thanks Jeremy,

http://tw5quickref.tiddlyspot.com/ is now upgraded to 5.1.11 

tw version compatibility history.js

tested on tw 5.1.12 pre-release, 5.1.11, 5.1.9. 5.0.8-beta


tw version compatibility example tiddlers

For older tw-versions e.g. for tw 5.0.8-beta  the tab-example tiddlers require manually adding the field named 'caption' value 'History' and 'History2' to present the correct captions in the Tabs.

Message has been deleted

wimm

unread,
May 7, 2016, 2:09:49 PM5/7/16
to TiddlyWiki
Hi, new version available now packaged as a real plugin (using tinka packaging plugin by ahahn) including small but essential bug fix, issue with limit[x+1] is now solved 

wimm

unread,
May 14, 2016, 3:19:24 AM5/14/16
to tiddl...@googlegroups.com
Hi all,

Version 0.8.1 now correctly handles double quote and backslahs characters in tiddler titles. 
 
fullhistory[] is included for advanced users

To generate the same list as history[] you would have to write 
{{{[fullhistory[]!has[draft.of]reverse[]unique[]]}}} 

Please note unique[] is a undocumented filter present in TiddlyWiki boot.js.


enjoy

WiM

Jan

unread,
Jan 3, 2017, 3:51:37 PM1/3/17
to tiddl...@googlegroups.com
Hi Wimm,
great plugin, I just asked for something like in the Group and your plugin delivers more than I dared to wish. I will incorporate some of it in my drilldown.tiddlyspot.com
http://tw5quickref.tiddlyspot.com/

Thanks for the great job you did
Jan

Am 14.05.2016 um 09:19 schrieb wimm:
Hi all,

Version 0.8.1 now correctly handles double quote and backslahs characters in tiddler titles. 
 
fullhistory[] is included for advanced users

To generate the same list as history[] you would have to write 
{{{[fullhistory[]!prefix[Draft]reverse[]unique[]]}}} 

Please note unique[] is a undocumented filter present in TiddlyWiki boot.js.


enjoy

WiM

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

wjam

unread,
Feb 13, 2018, 4:39:56 PM2/13/18
to TiddlyWiki
bump bc pull request at github by adrian m #3110

the history plugin shows the list of recently viewed tiddlers.
Reply all
Reply to author
Forward
0 new messages