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
 "Previously selected text" for VAX snippets?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

GennadiyKorol
Ketchup Master

Israel
54 Posts

Posted - Jul 17 2008 :  6:44:57 PM  Show Profile  Reply with Quote
Good time of the day everyone,

Right now VAX can surround the selection with comments, brackets and what not.

What I would like to suggest is variable containing the text that was selected before we started typing and removed it.

Example:


// We've got this code selected:
performCleanUp();
shutDown();


Now what one would like to do is wrap this into if/else statement putting the text to the else case. We already have the snippet that does that but we need to open up the context menu and pick it from there to get it.

At the same time if we just continue typing having the above text selected, the text will be replaced with what we type and if we type
"if" the list of suggested snippets pops up.

Now I can much more quickly pick the right snippet and hit enter, VAX would recognize there was text removed in order to type the if and use it as "previous selection".


This way one could really quickly invoke snippets that surround selections:

Select the text, type snippet invocation string, accept the suggested snippet, enter - done.

Should save a lot of mouse/keyboard switching which is like a page fault in programming workflow :)

Correctness might be a theoretical concept but incorrectness has practical implications.

Edited by - GennadiyKorol on Jul 17 2008 6:47:00 PM

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jul 18 2008 :  09:28:20 AM  Show Profile  Reply with Quote
For now you can just use CTRL-X to cut the text and make sure the snippet uses $clipboard$, which will insert the text you cut.

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