If this is in reference to my comment yesterday about user-proofing, it looks like an interesting approach. I will be eager to see what you come up with.
Another approach to consider, since the weakness is not with your plugin but with the user’s memory, might be just to have a reminder in EditTemplate with a link to your index.
You can see the selection gets saved to tiddler=“$:/temp/selection” in the first action.
In effect the various $message=“tm-edit-text-operation” actions have access to the selection in the editor, thus you make use of https://tiddlywiki.com/#WidgetMessage%3A%20tm-edit-text-operation in this case perhaps only save-selection excise are relevant.
However as you can see from the above example any wiki text, macros, tiddler references and actions can be used inside a editor toolbar button.
To provide a button that allows selection from a list look at the stamp or more drop downs.
If I could find the post where I responded with this I raised the possibility of handling clipboards and other methods from the Editor Toolbar.
We tried this in fishing plugin, and found it impossible to do so without JS. But that JS code is basically copy from the tw core’s code, is pretty simple.
When we produce a single file wiki we deliberately strip out the CR \r character because it saves a lot of file size and it isn’t needed. Even most windows editors are able to deal with it now.
Harvest content from throughout your wiki to compose a new tiddler based on that information.
You could have a list of common phrases.
Use on tiddlywiki.com (or copy of) to collect code snippets.
Mohamad I think companion buttons in the view toolbar (more) to copy either the title of a tiddler, the title wrapped in [[title]] or the text of the current tiddler to the same target. Here some prior art of mine, not checked today that may speed this. copy-text-title-buttons.json (4.1 KB)
PS Feel free to add your your list/solution as you wish @Mohammad
In addition to target tiddler that @saqimtiaz mentioned storyTiddler variable can help access the current tiddler in the story especialy if currentTiddler has being reused in another list.
But also one thing I discovered is what I call is the focused tiddler. The last navigated to tiddler found here {{$:/HistoryList!!current-tiddler}}
I am not sure it’s appropriate to use in the editor toolbar but it has value. I have supporting tools but again not published.