TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
7.97k stars 1.18k forks source link

Extend link widget to link to a filtered list #192

Closed Jermolene closed 1 year ago

Jermolene commented 10 years ago

Extend the link widget so that it can link to multiple tiddlers at once by specifying a filter identifying the target tiddlers. This would allow us to implement "open all tiddlers with this tag" option to the tag dropdown, and would allow us to drag all tiddlers with a particular tag by dragging the tag pill.

Spangenhelm commented 10 years ago

+1 This sounds interesting too!

Ps: as i was typing my "reply" i realize that this kind of "newfeature" post are not really made to have answers/comments right ?

Jermolene commented 10 years ago

@Spangenhelm please do comment on "newfeature" and "enhancement" issues - feedback is very helpful to understand what people need.

gernert commented 10 years ago

It is one of the features I'am missing every day in comparison with TWclassic. Not only for tags but also for search results.

wcndave commented 9 years ago

I am also really missing this feature having just upgraded from classic. Never imagined this would disappear. I tag things to members of family, and now have no way to list all the tiddlers for a particular member.

bdiegel commented 8 years ago

I really miss the 'open all' by tag feature because this is critical to my workflow. Any known workarounds?

bdiegel commented 8 years ago

Update: I found the Demo for Jon example and makelist widget from @matabele. This was a suitable workaround for now.

I created an Open All by Tag tiddler with a few changes from the cited example:

    \define getTiddlers()
    <$makelist tiddler="$:/StoryList" set="!!list" filter="[tag[$(tag)$]]">
    <$button message="tw-make-list" class="btn-invisible">$(tag)$</$button>
    </$makelist>
    \end

    All Tags:

    <$list filter="[all[tiddlers]tags[]!is[system]sort[title]]">
    <$set name="tag" value=<<currentTiddler>>>
    <<getTiddlers>>
    </$set>
    </$list>
matabele commented 8 years ago

The $action-listops widget (now included in the core) may be used for this functionality, using the $filter= attribute option

\define getTiddlers() <$button class="btn-invisible">$(tag)$ <$action-listops $tiddler="$:/StoryList" $field="list" $filter="[tag[$(tag)$]]"/> </$button> \end

gernert commented 8 years ago

@bdiegel As an alternative you can overwrite/extend $:/core/ui/TagTemplate see 'Open All' option for tag pills

twMat commented 8 years ago

From OP

would allow us to drag all tiddlers with a particular tag by dragging the tag pill.

The discussion (and I) have let this important point slip by. Group dragging by using a pill would be very valuable. In effect it would enable even complete beginners to make "semi-plugins"!!!!

It would also open up for a different type of "plugins" based on content, where it is important that the end user can delete undesired tiddlers and add his own. (An example could be a grocery list.)

pmario commented 6 years ago

... would allow us to drag all tiddlers with a particular tag by dragging the tag pill.

IMO this already works and "open all tiddlers with this tag" has its own open issue. @Jermolene .. close?

pmario commented 1 year ago

@Jermolene bump for close. Dragging a tagpill allows us to drag & drop import all tagged tiddlers. .. Dragging a tag pill to the Open tabs opens all tiddlers. ... So imo this one can be closed.

Jermolene commented 1 year ago

Thanks @pmario