Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Surround selection with ""
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

publicdomain
Starting Member

1 Posts

Posted - Jun 06 2012 :  5:44:51 PM  Show Profile  Reply with Quote
This would be super handy - as there is already surround with ({[*# it'd be great to get some string lovin' in there too.

Thanks

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 07 2012 :  12:47:04 PM  Show Profile  Reply with Quote
Out of interest when would this be useful to you? This has come up occasionally, but it is not always obvious why this would be helpful.

As a short term solution, you can use VA Snippets, with the snippet "$selected$"

If you move this to be the top item in the VA Snippet editor tree for your programming language, then this will be the first item offered when you trigger VA Snippets on selected text. You can also bind a keyboard shortcut to the command VAssistX.VaSnippetInsert if this helps.

zen is the art of being at one with the two'ness
Go to Top of Page

foxmuldr
Tomato Guru

USA
416 Posts

Posted - Jun 11 2012 :  1:46:20 PM  Show Profile  Reply with Quote
Would an extension to this work for my unfound token suggestion, feline? Something like:

VAssistX.VaSnippetInsertLastUnfoundToken

?

That way I could bind a keystroke to always do the duplication.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 12 2012 :  11:56:52 AM  Show Profile  Reply with Quote
Not really, since there is a lot of difference between using an existing command and keyboard binding, and creating a new command, keyboard binding, etc. VA Snippets are based around pre-defined blocks of text, or some context specific tokens, neither of which is going to help you with the last unfound token.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000