In attempting to make a TitlePicker, a fellow tiddleur proposed how tying 
[[ in the editor should automatically add closing brackets and put the 
caret in between, as is done in some other software. Is this possible? I.e 
to trigger an action when a string is typed in the edtior, including 
controlling the position of the caret?

The background is that, for the TitlePicker (and many other similar tools 
to come) it is problematic to identify a string segment via regexp when it 
is unclear what distinguishes the end of the segment - for example to know 
if [[this tiddler title ends here or here or here... as there are no 
closing brackets. The problem would totally solved if the closing brackets 
were automatically added as soon as [[ was typed and one continued to type 
between the bracket pairs.

<:-)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/5d2a0412-d7eb-4dc5-b7b1-5e42a3a3c526%40googlegroups.com.

Reply via email to