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
 Find All References in Edit Window
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

foxmuldr
Tomato Guru

USA
416 Posts

Posted - Jun 13 2012 :  3:29:27 PM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 13 2012 :  10:39:35 PM  Show Profile  Reply with Quote
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.

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 13 2012 :  11:25:57 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 14 2012 :  3:25:50 PM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness

Edited by - feline on Jun 14 2012 3:27:38 PM
Go to Top of Page

foxmuldr
Tomato Guru

USA
416 Posts

Posted - Jun 14 2012 :  4:18:46 PM  Show Profile  Reply with Quote
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. :-)
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