Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Undoable selection surrounding

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Maxim Posted - Jun 16 2008 : 10:55:19 AM
In apps like Word, there's auto-text features but as soon as one happens, you can always press Ctrl+Z to undo it. It's be nice if Surround With worked like that. Here's an example:
int result = a + b

If I select the '+' and type '*', the contents of the selection is saved to a temporary buffer and the code becomes
int result = a * b

and then, as quickly as possible, it is changed to
int result = a /*+*/ b

so it acts exactly as it does already, but I can press Ctrl+Z if I really wanted the second snippet.
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jun 17 2008 : 6:28:35 PM
Yes, sure, we can separate this case, but I'm afraid that it can lead to inconsistency. This sounds good on paper, but can confuse others, who want the original, uncommented text by undo.
Not the same, but currently you can delete selected text, and then press the '*' key after the undo. This is what I do, when I run into this problem...
gmit Posted - Jun 16 2008 : 3:23:57 PM
quote:
Originally posted by accord

It makes sense, but when someone want to comment out hundreds of lines, it will be much slower, and will "flashing", so first the long text will be deleted (replaced by '*'), and then will be replaced again by the commented version...



Personally, I don't care about 'flashing', but, Maxim' suggestion could be applied only on selections that are contained within a single line.
accord Posted - Jun 16 2008 : 3:05:34 PM
It makes sense, but when someone want to comment out hundreds of lines, it will be much slower, and will "flashing", so first the long text will be deleted (replaced by '*'), and then will be replaced again by the commented version...

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000