Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Find All References in Edit Window

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
foxmuldr Posted - Jun 13 2012 : 3:29:27 PM
I use the "Find all references" function to locate some thing that I might need to see / change / do whatever to across my application (maybe change the license date).

VAX could take that listing of found references and load each line of source code from its original file / location into a single editor window which would allow the edits made there on those lines to be passed through to the original source files, wherever they might be.

In this way, I use the clipboard, do regular editing, make all my changes there in that one window, but each change goes back out to its original source file, where the changes are actually saved.
4   L A T E S T    R E P L I E S    (Newest First)
foxmuldr Posted - Jun 14 2012 : 4:18:46 PM
quote:
For one thing, relying on people not to edit part of each line is just asking for trouble.


VAX tracks keystrokes and caret positions. You could compare caret position to the part "not to edit" and simply position the caret into the editable part if they tried to navigate there. Lots of easy ways to ensure the users don't break something.

No worries. I always keep The SemWare Editor and Notepad++ around for a reason. :-)
feline Posted - Jun 14 2012 : 3:25:50 PM
An interesting idea, but unfortunately not one we are going to try and implement. This seems very specific, and very error prone. For one thing, relying on people not to edit part of each line is just asking for trouble.

Since you want to jump to each result and make an edit in each place, are you aware of the keyboard shortcuts for jumping to the next and previous Find References Result? See the "Navigation" section here:

http://www.wholetomato.com/products/features/findReferences.asp
foxmuldr Posted - Jun 13 2012 : 11:25:57 PM
Yeah, you'd have to tag the start of each line with a fixed identifier used as a hash, and then reference each hash to its source file so even if they get mixed up they're not altered. And if those hash references go away then those lines aren't updated.
13837390|int foo(int a, int b)
83928173|float food(float a, float b)


I think so long as the user is editing those lines under this purpose and appropriately, meaning just making single changes from one source line by line rather than multiple files, it would be of great use.
feline Posted - Jun 13 2012 : 10:39:35 PM
This might work for very simple edits, just changing a license date perhaps, but for anything more complex, this is unlikely to work at all. For example what happens if you add or remove lines in this one window? Suddenly you loose the mapping back to the original locations.

Plus you have stripped the lines of all context, which sometimes is going to make the lines a lot harder to understand.

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