I just discovered from Dave Gifford’s video on his subsume plugin that I’m missing a very important piece of the UI for editing tiddlers: The excise button.
It doesn’t show up for Markdown tiddlers.
So I added it by cloning $:/plugins/tiddlywiki/markdown/EditorToolbar/bold
, renaming it to $:/plugins/tiddlywiki/markdown/EditorToolbar/excise
and replacing all the fields with the stuff from $:/core/ui/EditorToolbar/excise
. (Did the same for transcludify
.)
Is this the right way to add a button to a plugin? I’m wondering what will happen to it when I upgrade the plugin … or TW itself, for that matter. Will it persist?
(BTW, these buttons work fine except they of course insert wikitext markup not markdown markup (for the excise via link, and transclude). I can live with that now, but I’ll work on it later I suppose.
(Though a feature request might be to add properly working excise and transcludify buttons to the Markdown plugin … why not? Seriously, why is the markdown plugin a second-class citizen?)