For the "editor popup" (i.e really for the TitlePicker, i.e really for the general EditorMagic tool that is supposed to popup in the editor when the user types special strings)...
...someone proposed that typing [[ should automatically convert it into [[]] and put the caret in between for further typing, i.e like in most code editors. This would solve the otherwise difficult problem of knowing if, say; [[this string ends here or here or here and it would make this problem trivial - i.e it ends here]].
So, the generalized idea is to automatically convert a trigger string into trigger+endtrigger and put the caret in between for further typing. Thus, when the system senses that the user just typed the last character of the trigger, it fires off.
How can this be achieved?
The different trigger and end-trigger strings are found in user created tiddlers (tagged, say, "$:/tags/EditorMagic") in the fields titled "trigger" and "trigger-end".
Thank you.
<:-)