How to list the last 10 modifications

136 views
Skip to first unread message

Mohammad

unread,
Jan 27, 2019, 3:16:34 AM1/27/19
to tiddl...@googlegroups.com

How to list the last ten modification to wiki

  • The last one shall be shown first
  • Only show last 10 tiddlers
  • modified and created have no priority and treated as the same

One solution does not work

<<list-links "[has[modified]sort[modified]!limit[10]]" type:"ol">>


The problem is it shows last 10 modification, but the last is shown last.

--Mohammad

Mal

unread,
Jan 27, 2019, 3:50:20 AM1/27/19
to TiddlyWiki
Mohammad,

Could it be as simple as adding +[!sort[modified]] to your filter expression?

Regards,

Mal

TonyM

unread,
Jan 27, 2019, 3:57:21 AM1/27/19
to TiddlyWiki
Or is this what you want (untested)

[has[modified]sort[modified]!limit[10]!sort[modified]]

Sorting again at the end is like Mal suggests with the +[sort[modified]] 

Perhaps changing something the ! somewhere?


Regards
Tony

Jeremy Ruston

unread,
Jan 27, 2019, 4:04:10 AM1/27/19
to tiddl...@googlegroups.com
Hi Mohammad

Try this:

<<list-links "[has[modified]!sort[modified]limit[10]]" type:"ol">>

(This is actually one of the examples in the dropdown in the "Filter" tab of advanced search).

Best wishes


On 27 Jan 2019, at 08:16, Mohammad <mohammad...@gmail.com> wrote:


How to list the last ten modification to wiki

  • The last one shall be shown first
  • Only show last 10 tiddlers
  • modified and created have no priority and treat as the same

One solution does not work

<<list-links "[has[modified]sort[modified]!limit[10]]" type:"ol">>


The problem is it shows last 10 modification, but the last is shown last.

--Mohammad

--
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/bb730f20-b1c6-4805-91b3-01555ed4f847%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mohammad

unread,
Jan 27, 2019, 5:29:19 AM1/27/19
to TiddlyWiki
Thank you all,

Jeremy,
 Yes, you are right, I did not noticed to Advanced Search!

Added to TW-Scripts.


--Mohammad

Thomas Elmiger

unread,
Jan 27, 2019, 6:10:53 PM1/27/19
to TiddlyWiki
Hi Mohammad,

I usually don’t need state tiddlers and temporary info (often set by the system, not by the user), so I have these two installed as additional filters in my Advanced search filter collection:

[!prefix[$:/state]!prefix[$:/temp]![$:/StoryList]![$:/HistoryList]haschanged[]!sort[modified]]

this shows modifications from the current session (see https://tiddlywiki.com/#haschanged%20Operator).

and

[has[modified]!prefix[$:/state]!prefix[$:/temp]!sort[modified]limit[50]]

... nearly the same as yours.

Cheers,
Thomas

Mohammad

unread,
Jan 27, 2019, 11:42:41 PM1/27/19
to TiddlyWiki
Hello Thomas,
 Yep, good point!

Added to TW-Scripts.

Cheers
Mohammad

Mohammad

unread,
Jan 27, 2019, 11:55:25 PM1/27/19
to TiddlyWiki
Hello again Thomas:

How works? The Examples in below address is missing:


--Mohammad


On Monday, January 28, 2019 at 2:40:53 AM UTC+3:30, Thomas Elmiger wrote:

S. S.

unread,
Jan 28, 2019, 3:25:45 AM1/28/19
to TiddlyWiki
Excellent!

Someone (perhaps even you Mohammad) will soon write an haschanged Operator (Examples) tiddler for tiddlywiki.com

Yes?

Mohammad

unread,
Jan 28, 2019, 4:03:12 AM1/28/19
to TiddlyWiki
Yes S.S,
 Why not! I would be happy to be of any help.

Cheers
Mohammad

S. S.

unread,
Jan 28, 2019, 8:29:14 PM1/28/19
to TiddlyWiki
A query on this same topic : the explanation on tiddlywiki.com of the haschanged operator is:

purpose    filter the input by tiddler modification status

A tiddler is deemed to have been modified if it has been written back to the wiki since the start of the current TiddlyWiki session. If you edit a tiddler and immediately store it again without making any changes, that is enough to mark it as modified.

If you manually save your TiddlyWiki, I believe this may be a reset to the state of a new session? If that is correct, perhaps we can mention it in the documentation.

Mohammad

unread,
Jan 29, 2019, 2:16:42 AM1/29/19
to TiddlyWiki
Thanks S.S
Reply all
Reply to author
Forward
0 new messages