10

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

5
  • 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. Feb 24, 2011 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, 2011 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 Feb 24, 2011 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. Feb 24, 2011 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, 2011 at 22:33

3 Answers 3

11

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.

1
  • This answer applies also to Kate 3.13.2 (KDE Development Platform 4.13.2) Apr 16, 2015 at 13:56
2

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.

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

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 a 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .