Hi Mat

> 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.

Yes, that sounds like an interesting experiment, and I think feasible.

Best wishes

Jeremy

> 
> <:-)
> 
> 
> -- 
> 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 tiddlywikidev+unsubscr...@googlegroups.com 
> <mailto:tiddlywikidev+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/5d2a0412-d7eb-4dc5-b7b1-5e42a3a3c526%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/5d2a0412-d7eb-4dc5-b7b1-5e42a3a3c526%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/FCA9F81A-D025-4CA1-AE98-A61914CB01A2%40gmail.com.

Reply via email to