How does one find and replace text in all open files with kate?

  • I'm not sure that you currently can. replace was only recently added, and I don't see that you can do a find/replace in more than one file at a time. – xenoterracide Feb 24 '11 at 1:03
  • Is this some kind of bot generating random 'how does one find and replace text in all open files with $EDITOR'?? – axel_c Feb 24 '11 at 9:51
  • @axel He originally asked them all in one question, and it got closed. Several of us said (in insufficiently discouraging tones) that if he really needs to know in five different editors he should ask five questions, so he did – Michael Mrozek Feb 24 '11 at 15:29
  • 3
    I am unable to tap my magic wand to cause all of the people that I advise and support to use the OS distribution and editors of my own choosing. Advising most of them to use the command line with something like find would not support one of my objectives of promoting Linux over MS Windows. So, knowing the functionality of multiple editors is useful. – CW Holeman II Feb 24 '11 at 16:35
  • 2
    FWIW, Kate is getting a brand new search and replace plugin for KDE 4.8 that can find and replace in all open files or any arbitrary directory. You can try it out in KDE 4.8 Beta 1 or by building Kate from source if you'd like. – Patches Dec 6 '11 at 22:33

In Kate 3.8.5-

Go to Settings -> Configure Kate -> Plugins and enable there Search & Replace. Then use the "Search and Replace" button that appears at the bottom of the Kate main window to find the desired functionality.

  • This answer applies also to Kate 3.13.2 (KDE Development Platform 4.13.2) – Augusto Destrero Apr 16 '15 at 13:56

The answer is simple. As of Kate 3.4.3 (present in KDE 4.4.3) you can not replace in multiple files at once but just in the one you're currently viewing calling "edit->replace" or with the CTRL+R shortcut.

  • 2
    Figures. KDE is notorious for taking things that work and making them not so. – Chance May 24 '11 at 21:57

In at least this Kate version (built from source):

enter image description here

but I think some older versions have this too, you can add an plugin called "Search and Replace" (in Settings, Configure Kate, Plugins)

enter image description here

that has these, in Current file, in Open files, in Folder options:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.