Multi-file seach & replace
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Multi-file seach & replace
I would like to suggest that the Find in Files dialog include a "Replace With" field. There is no way to do a multi-file search & replace without opening every file in Text pad first. For a handful of files it may be ok to do an "open all" after you do a Find in Files. But what if you need to change something in say 400-500 file (not unusual for a large project). You really don't want to open them individually.
If the files are writeable, you should be able to replace every instance of a word, regex, etc in all files in a folder or tree without opening them first. Another way to implement this would be to add a button to the Scope field in the Replace dialog and include a filesystem browser.
If this suggestion has been made before, well, it just goes to show that it's common and really ought to be implemented.
Thank you for considering my suggestion.
If the files are writeable, you should be able to replace every instance of a word, regex, etc in all files in a folder or tree without opening them first. Another way to implement this would be to add a button to the Scope field in the Replace dialog and include a filesystem browser.
If this suggestion has been made before, well, it just goes to show that it's common and really ought to be implemented.
Thank you for considering my suggestion.
That's a 2-step operation. In my example, you would end up with 400-500 open files. Yuk! For large-scale search & replace, you really want to be able to do this over a directory/folder/tree without opening every file.MudGuard wrote:Why open them individually?
Just right-click in the search result window and select "Open all"...
I posted this suggestion today because that's exactly what I had to do for a recent project. I opted to write a perl script instead. I have another programmer's editor that supports the find & replace in files feature, but I don't like it as much as TextPad overall. I just want my favorite text editor to have all the features I use regularly.
I like the idea.
Yeah, you can open all the files with right click, but...., I'dont wanna to open ALL files in textpad, and don't wanna to save ALL and don't wanna to close ALL, I just wanna Textpad do the job for my, and fast.
Open a Poll, you'll see there's a lot of people that are agree with you,
jblock
Yeah, you can open all the files with right click, but...., I'dont wanna to open ALL files in textpad, and don't wanna to save ALL and don't wanna to close ALL, I just wanna Textpad do the job for my, and fast.
Open a Poll, you'll see there's a lot of people that are agree with you,
jblock
Replace in Files
I think it's a great idea.
Back when I was doing web work for a living, I used HomeSite for my devel, and one of the nicest things about HomeSite was that I could do a multi-file search and replace. I still did most of my editing in TP, but any time I needed to change something over an entire web site project (like moving a directory or renaming a link), I would use HomeSite. So, yes, by all means, this should be added!
Slainte!
-Mike[/b]
Back when I was doing web work for a living, I used HomeSite for my devel, and one of the nicest things about HomeSite was that I could do a multi-file search and replace. I still did most of my editing in TP, but any time I needed to change something over an entire web site project (like moving a directory or renaming a link), I would use HomeSite. So, yes, by all means, this should be added!
Slainte!
-Mike[/b]
perl -e "for$i(0..124){for(0..10){for($j=0;$j<=$i;$j+=2){print pack(qq{H2},substr(qq{4a75737420416e6f74686572205065726c204861636b65722e2020416c6c20596f75722042617365204172652042656c6f6e6720546f205573204e6f772e},$j,2));}print qq{\r};}}print qq{\n};"
Guess I had to run this to see what da hell it does... hehhe.. good one...
perl -e "for$i(0..124){for(0..10){for($j=0;$j<=$i;$j+=2){print pack(qq{H2},substr(qq
{4a75737420416e6f74686572205065726c204861636b65722e2020416c6c
20596f75722042617365204172652042656c6f6e6720546f205573204e6f7
72e},$j,2));}print qq{\r};}}print qq{\n};"
The goddam thing works... but it turned this thread into a rope ---
ARRRRRRRRGGGGHHHHH!!!!!
webM
No sweat Jeffy.. exactly the point I was making,
only that I didnt want to blatantly suggest he change it ... what a sig, phew.
perl -e "for$i(0..124){for(0..10){for($j=0;$j<=$i;$j+=2){print pack(qq{H2},substr(qq
{4a75737420416e6f74686572205065726c204861636b65722e2020416c6c
20596f75722042617365204172652042656c6f6e6720546f205573204e6f7
72e},$j,2));}print qq{\r};}}print qq{\n};"
The goddam thing works... but it turned this thread into a rope ---
ARRRRRRRRGGGGHHHHH!!!!!
webM
No sweat Jeffy.. exactly the point I was making,
only that I didnt want to blatantly suggest he change it ... what a sig, phew.
Last edited by webmasta on Sat Sep 13, 2003 2:48 pm, edited 3 times in total.
would be VERY handy!
The multi-file search and replace would be a very handy enhancement!
In HDL for example (verilog VHDL...), changing a net name or a module name on a multi-file design, would be eeeeeasy! now, I have to do it file-by-file which is pretty clunky....
In HDL for example (verilog VHDL...), changing a net name or a module name on a multi-file design, would be eeeeeasy! now, I have to do it file-by-file which is pretty clunky....
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
I think this should be an external tool because:
1. It can be more powerful.
2. It does not impact TP's footprint, size and/or performance.
3. You can choose from lot's of these tools already, take a
look at http://www.orbit.org/replace/ or
http://www.inforapid.de/html/searchreplace.htm
These are both freeware for personal use and if you
try them take care, they are very powerful.
4. Helios can provide their own tool or reccomend an affiliate
so they can support some integration.
In short, if there's a poll for multi file replace I would wote
for it as an external tool.
1. It can be more powerful.
2. It does not impact TP's footprint, size and/or performance.
3. You can choose from lot's of these tools already, take a
look at http://www.orbit.org/replace/ or
http://www.inforapid.de/html/searchreplace.htm
These are both freeware for personal use and if you
try them take care, they are very powerful.
4. Helios can provide their own tool or reccomend an affiliate
so they can support some integration.
In short, if there's a poll for multi file replace I would wote
for it as an external tool.
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
- davidakoontz
- Posts: 8
- Joined: Thu Nov 13, 2003 8:36 pm
- Location: Arkansas USA
- Contact:
I would like to see this feature added to TextPad. Many times I've said $%&@* come on do the next file - please!
If there becomes an issue in the implementation on how it impacts the total foot print of the app - then it's a decision to be made by the design team.
If implemented well - maybe it would count files and warn the user - "whoa that's way too many files... ya want to abort?"
I like the idea - please add it!
David
If there becomes an issue in the implementation on how it impacts the total foot print of the app - then it's a decision to be made by the design team.
If implemented well - maybe it would count files and warn the user - "whoa that's way too many files... ya want to abort?"
I like the idea - please add it!
David
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Yes, Crtl-F5 is only for searching across multiple files. I would heartily recommend that the replace functionality be introduced in some manner or means, whether it be internal or external. It would be a very valuable addition to textpad, as it with website administration it comes up so often.
In short, its got my vote. And I would err to the side of internal.
In short, its got my vote. And I would err to the side of internal.
I refuse to answer that question on the grounds that I don't know the answer.
-- Douglas Adams
-- Douglas Adams