feature request: Target tiddler already exists? --> option to open/edit it

61 views
Skip to first unread message

Dave

unread,
Dec 7, 2018, 4:16:03 PM12/7/18
to tiddl...@googlegroups.com
A lot of times I go to make a tiddler that I've forgotten already exists, and I get the message "Target tiddler already exists"
 
What I'd like is the option to open it or open for editing from that spot.  As it stands I'd have to select the title, copy it, close the edit, click on the search bar, paste, and then select and then click edit.

Because I'm so lazy, I'd rather click once than do seven steps to do the same thing.



As 5.1.18 recently came out I doubt this is something that I'll see any time soon, but is there a way to make this work with tweaking the normal 5.1.17 TW?

Jed Carty

unread,
Dec 7, 2018, 4:56:00 PM12/7/18
to TiddlyWiki
You could edit the template that makes that message appear to include a link to that tiddler. Or a button that opens it in edit mode.

This needs some tweaking but it gets you part of the way there.

Put this in a tiddler (you can call it whatever you want):


<$list filter="[{!!draft.title}!is[missing]]" variable="listItem">
<$button>
Open Existing Tiddler
<$action-navigate $to={{!!draft.title}}/>
<$action-sendmessage $message='tm-close-tiddler'/>
</$button>
</$list>

give the tiddler the tag $:/tags/EditTemplate
and give it a field called list-after with the contents $:/core/ui/EditTemplate/title

Then when you are editing a tiddler and you give it the title of an existing tiddler a button that says 'Open Existing Tiddler' will appear.

It isn't in edit mode and it doesn't correctly dispose of the current draft so there are tweaks that would help, but it may be better than the nothing.

Dave

unread,
Dec 7, 2018, 5:26:13 PM12/7/18
to TiddlyWiki
Thanks! :)

Diego Mesa

unread,
Dec 7, 2018, 6:47:25 PM12/7/18
to TiddlyWiki
I think this is a great idea and should be added to the core!
Reply all
Reply to author
Forward
0 new messages