I need to do a lot of horrible search and replaces in a very large project (actually replacing a lot of bibtex labels). I want to do a search in project, and would like to limit it to particular files (*.tex ones). The "Find in Project" command is replaced for searching with excellent plugins like "Grep in project". Does anything similar exist for search/replace?
Best,
Nicholas
On Jun 5, 2009, at 9:37 AM, Nicholas Cole wrote:
need to do a lot of horrible search and replaces in a very large project (actually replacing a lot of bibtex labels). I want to do a search in project, and would like to limit it to particular files (*.tex ones). The "Find in Project" command is replaced for searching with excellent plugins like "Grep in project". Does anything similar exist for search/replace?
Are you sure that "Find in Project" won't do what you want? In spite of its quirks, which had me thinking I'd have to write a Ruby script to alter several sections of 3306 HTML files, I managed to do what I wanted with Find in Project in under 10 minutes, start to finish.
Good luck,
Charles
Bbedit excels at this kind of work, sorry to be a turncoat. But why make te morph into a text management tool, when there are good products already doing this Cheers Gavin
Sent from my iPhone
On 5 Jun 2009, at 14:37, Nicholas Cole nicholas.cole@gmail.com wrote:
I need to do a lot of horrible search and replaces in a very large project (actually replacing a lot of bibtex labels). I want to do a search in project, and would like to limit it to particular files (*.tex ones). The "Find in Project" command is replaced for searching with excellent plugins like "Grep in project". Does anything similar exist for search/replace?
Best,
Nicholas
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Moreover, BBEdit's little Freeware brother (TextWrangler) does it, too. I really love TextMate, but for bigger search/replace tasks I often draw on TextWrangler.
Kind regards, Tobias Jung
Gavin Bell me@gavinbell.com wrote (Fri, 5 Jun 2009 15:32:39 +0100):
Bbedit excels at this kind of work, sorry to be a turncoat. But why make te morph into a text management tool, when there are good products already doing this Cheers Gavin
Sent from my iPhone
On 5 Jun 2009, at 14:37, Nicholas Cole nicholas.cole@gmail.com wrote:
I need to do a lot of horrible search and replaces in a very large project (actually replacing a lot of bibtex labels). I want to do a search in project, and would like to limit it to particular files (*.tex ones). The "Find in Project" command is replaced for searching with excellent plugins like "Grep in project". Does anything similar exist for search/replace?
On Fri, Jun 5, 2009 at 3:32 PM, Gavin Bellme@gavinbell.com wrote:
Bbedit excels at this kind of work, sorry to be a turncoat. But why make te morph into a text management tool, when there are good products already doing this Cheers Gavin
Dear Gavin,
What's the particular feature of BBEdit I should be looking at?
Charles - yes "Find in Project" works for the odd change, but is rather clunky to use, and I can't find out how to limit it to just particular files.
I have discovered Apple-E though, which does make life easier!
N
Nicholas Cole nicholas.cole@gmail.com wrote (Fri, 5 Jun 2009 22:59:23 +0100):
On Fri, Jun 5, 2009 at 3:32 PM, Gavin Bellme@gavinbell.com wrote:
Bbedit excels at this kind of work, sorry to be a turncoat. But why make te morph into a text management tool, when there are good products already doing this Cheers Gavin
Dear Gavin,
What's the particular feature of BBEdit I should be looking at?
Find & Replace -> Multi-File Search area -> Options -> Use File Filter -
New Filter -> Create.
Well, that's the way in TextWrangler, but I guess in BBEdit it's quite the same.
Regards, Tobias
Grep search, with syntax highlighting, replacement tokens, basically write any old regex right in your search and replace fields, and it just works.
Walter
On Jun 5, 2009, at 6:52 PM, Tobias Jung wrote:
What's the particular feature of BBEdit I should be looking at?
On 2009-June-06 , at 05:02 , Walter Lee Davis wrote:
Grep search, with syntax highlighting, replacement tokens, basically write any old regex right in your search and replace fields, and it just works.
Regexp find and replace works in TM too, and not just basic ones, full fledged Ruby regexp too. What's the advantage of BBedit there?
I find project find and replace slow when there are very very long files involved, and it usually hangs when there are binary files in the project that are considered as text by TM. You could use the tip mentioned above to create a new project with only the tex files (or the bib files i your case). Or you could filter files from the project pane and (temporarily) only keep the bib files in the project. Then do you find and replace ad finally suppress your filter.
JiHO --- http://jo.irisson.free.fr/
On 05.06.2009, at 15:37, Nicholas Cole wrote:
I need to do a lot of horrible search and replaces in a very large project (actually replacing a lot of bibtex labels). I want to do a search in project, and would like to limit it to particular files (*.tex ones). The "Find in Project" command is replaced for searching with excellent plugins like "Grep in project". Does anything similar exist for search/replace?
$ find . -name "*.tex" -print0|xargs -0 mate
Then use Find in Project in the newly opened Project.
Cheers, Martin