Open Tiddler in Edit Mode

80 views
Skip to first unread message

David

unread,
Apr 30, 2020, 1:47:18 PM4/30/20
to TiddlyWiki
I'm always clicking the link to a tiddler and then having to switch it to edit mode.

Possible to do that in one shot?

Hubert

unread,
Apr 30, 2020, 3:01:00 PM4/30/20
to TiddlyWiki
Hi David,

Here's one way:

<$vars title="New Tiddler">
<$button actions="""<$action-sendmessage $message="tm-edit-tiddler" $param=<
<title>>/>""" class="tc-btn-invisible" tooltip="Click to edit">
<
<title>>
</$button>
</$vars>

Just replace the title variable "New Tiddler" with the tiddler you wish to open in edit mode.

Your link will now be an invisible button pretending to be a title of your tiddler. Click on it and you'll open the tiddler in edit mode.

You might wish to change your CSS classes to make the look of the button consistent with other internal links in your wiki (the class tc-tiddlylink is one example).

Enjoy!
Hubert

Thomas Elmiger

unread,
Apr 30, 2020, 6:24:01 PM4/30/20
to TiddlyWiki
Hi David,

I'm always clicking the link to a tiddler and then having to switch it to edit mode.
Where do you click that link? In the "Open" tab in the sidebar? 

Possible to do that in one shot?
The MyStory plugin offers links to directly edit or clone open tiddlers from the sidebar:

See readme for configuration.

Happy editing,
Thomas

David

unread,
May 1, 2020, 8:49:41 AM5/1/20
to TiddlyWiki
That works great, but may have a fatal flaw.  It opens the tid at the top, and not under where I was.  So I lose my place in the scroll.  Sometimes it takes me a minute to try to figure out what I was doing.

I may just keep with the extra click of opening then editing, so that I keep my place near the current tiddler.

But I'm going to keep with that, and we'll see.  Thanks.

David

unread,
May 1, 2020, 8:51:45 AM5/1/20
to TiddlyWiki
I click that link almost always in a tiddler.

But thanks for the MyStory mention.  I'll check that out and remember it for the future, even if I don't end up using it for this issue.
Reply all
Reply to author
Forward
0 new messages