Easily open excised (included) tiddler?

107 views
Skip to first unread message

DemoniWaari

unread,
Dec 13, 2019, 8:30:12 AM12/13/19
to TiddlyWiki
Are there any good methods of quickly opening an excised tiddler from inclusion? Oftentimes when I excise a tiddler, I would like to edit it afterwards but the only way to do this is to go to search and type in the title of the excised tiddler and open it from there. I'd like to do something like, highlight the text inside {{}} and it would directly open the tiddler with that title, with a hotkey or something for example.

Thanks.

Mark S.

unread,
Dec 13, 2019, 2:28:29 PM12/13/19
to TiddlyWiki
This is a little hacky, and I'm sure someone could come up with something more attractive, but I use the text below in a tiddler called "TE" (for template-edit).

After excision, I add ||TE}} . That is, the excision might look like {{mytiddler||TE}}. This puts a button next to the text, that lets me open it up for editing.

Using this approach, you can even do excisions inside of excised tiddlers, and so on.

I imagine it wouldn't be too hard to hack the excise button so that it automatically adds the ||TE to the transclusion text, if it's of interest.

Good luck!


<$reveal state=<<qualify "TE">> type="nomatch" text="edit"><$transclude mode="block"/> <$button class="mybuttons" set=<<qualify "TE">> setTo="edit">Edit</$button>
</$reveal>
<$reveal state=<
<qualify "TE">> type="match" text="edit"><$transclude tiddler="$:/core/ui/EditTemplate" /> <$button class="mybuttons" set=<<qualify "TE">> setTo="show">Show</$button></$reveal>


DemoniWaari .

unread,
Dec 14, 2019, 1:33:44 PM12/14/19
to tiddl...@googlegroups.com
Hmm thanks! I need to play around a little with this! I also realized that I can just have a link in the excision itself a "title" with a link to the excised tiddler but it is not as nice as I'd like it to be.

-DW

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/Wxnv1nMkktY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6c16ba67-e613-4794-80d8-637ee41a5e7f%40googlegroups.com.

DemoniWaari

unread,
Dec 16, 2019, 4:31:06 AM12/16/19
to TiddlyWiki


If someone is interested in this hack, do note that the normal tiddler save and cancel buttons don't do anything. Everything is immediately mirrored to the original tiddler and you can only close the edit field from the "hide" button at the bottom of the edit area. So its kinda scary, thankfully ctrl-z works if you do something you should not.

TonyM

unread,
Dec 16, 2019, 5:25:55 PM12/16/19
to TiddlyWiki
I thought I posted a reply on this but its not here.

Marks method can be extended a number of ways. Duplicating and editing the excise button related tiddlers to use the alternate transclusion.

Add-in a global settings with a local override that either displays a link, the title of the transclusion tiddler, the transclusion, edit, copy buttons or a combination there of, sould help improve excising workflow.

Regards
Tony

Reply all
Reply to author
Forward
0 new messages