Page 1 of 1

Search/replace across all open files?

Posted: Wed Jan 29, 2014 7:27 am
by metamorphosis
I consider this a fairly basic feature and one necessary for easy code-maintenance - particularly when splitting up a source into many source files.
Is there any plan to include this in a future version of the program?

Re: Search/replace across all open files?

Posted: Wed Jan 29, 2014 10:10 am
by eranif
Isn't Find-In-Files / Replace-In-Files enough?

Ctrl-Shift-F -> instead of selecting 'Find' click on 'Replace'
This will perform a search in files and will open a pane with list of matches where you will be able to select which selection you want to replace (and with what)

Eran

Re: Search/replace across all open files?

Posted: Sat Feb 01, 2014 1:06 am
by metamorphosis
I'll admit I didn't spot this.
It might be a good idea to consolidate the two functions -
adding a 'Search in all workspace files' tickbox to the standard find/replace dialogs would be enough to do so.

Re: Search/replace across all open files?

Posted: Sun Mar 16, 2014 5:50 am
by metamorphosis
Just noticed a minor bug-
when doing a Find-across-all-files and using replace, the text in the replacement dialog box is highlighted but the actual selected window is the code editor -
this catches me out every time.

Also, I have to say, the search-and-replace interface is not tremendously good.
Doing it via the standard 'Find' and 'Replace' dialogs with a checkbox for 'all files' would be infinitely more usable.
Look at the way the ConText text editor does it -
M@

Re: Search/replace across all open files?

Posted: Sun Mar 16, 2014 11:08 am
by eranif
I am not familiar with that text editor. Can you please provide some concrete suggestions on how to improve it?

Eran

Re: Search/replace across all open files?

Posted: Wed Mar 19, 2014 8:19 am
by metamorphosis
I've already described that.
If you download the ConText code editor from www.contexteditor.org
and look at the Find/replace dialogs, you will see clearly what I mean.
Thanks,
Matt

Re: Search/replace across all open files?

Posted: Mon Mar 24, 2014 1:34 am
by metamorphosis
A few other aspects (in addition to the streamlined multifile support) which make the ConText search/replace dialog a bit more usable:
- switchbox to 'Search from Top' of file or from current line-
- undoing search-and-replace operates across all files, not just currently-selected file
- undo undoes all replacements if 'Replace All' is selected, undoes them one-by-one if search/replace is manually checked per instance of found text