[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent


Search and replace in multiple files
by Batiste on Tuesday 15/Apr/2008, @23:18
Hello,

Does Kate have a search and replace for multiple files? I know I can do it in shell:

find -iname "*.html" | xargs grep -l "hello world" | xargs perl -pi~ -e 's/hello world/boum/'

But it's very complicated for what it does and I can't remember the syntax.
  Related Links
 ·   Articles on Community and Events
 ·   Also by Batiste
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: Search and replace in multiple files
by Benoit Jacob on Wednesday 16/Apr/2008, @02:02
Tip: you can install the "rpl" command-line utility. There is a GPL version of it, at least Debian has it.

rpl -R oldstring newstring directory/
[ Reply To This | View ]
Re: Search and replace in multiple files
by Andras on Thursday 17/Apr/2008, @10:40
I agree. I don't care much about folding or sessions or vi mode (I use vi if I want vi mode!), but "Find/replace in ALL OPEN files" the most important nontrivial feature I look for in every programmer's editor. It's just a must if you want to do some serious refactoring (rename class/function) in a larger codebase.

Unfortunately, Kate (and GEdit) don't have it, so they are out for serious programming for me. Usually I end up running MED or Textpad in Wine...

Kate developer, can you hear me...? Please, give me an "[ ] in all open files" checkbox in the Find/Replace dialog!!!
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "I'm holding out for a computer interface that plugs directly into my cerebral cortex." -- Sirtaj Singh Kang
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]