(*** This bug was imported into bugs.kde.org ***) Package: kate Version: 2.0 (using KDE 3.0.2 ) Severity: wishlist Installed from: Debian testing/unstable Packages Compiler: Not Specified OS: Linux OS/Compiler notes: Not Specified It would be nice feature to be able to perform replace operation on many files at once. It could work on open files or on files from specified directory. (Submitted via bugs.kde.org)
*** Bug 47647 has been marked as a duplicate of this bug. ***
The "Project Wide String Replacement" function in KDevelop has this functionality. AFAIK it was written by Jens Dagerbo (jens.dagerbo at swipnet.se). Maybe it can be adopted for Kate?
Another alternative is KFileReplace http://kfilereplace.sourceforge.net
As kfilereplace exists, is this fixed now? Or maybe kate should have kfilereplace integration?
It is possible to pass the list of open files using the new external tools feature, but i haven't kfilereplace, so I haven't added it.
Should be restricted to open files only. GUI-wise, add another checkbox "In all files" (disabled when only one file is open). Check box options "Case sensitive", "Whole words", "Prompt on replace" should be repsected when "In all files" is checked. I'm not sure whether you need to respect the the "Find backwards" and "From cursor" options when "In all Files" has been checked. I can imagine cases where I might want to exclude the top (or bottom) or the file I'm in, but the documentation would be a headache. Kate REALLY NEED THIS!!! Thanks.
These look like duplicates to me: - Bug 109079: search and replace in a arbitrary list of files - Bug 76617: Replace in files feature to search/replace all files in project - Bug 86312: launch file/replace in all open files
*** Bug 86312 has been marked as a duplicate of this bug. ***
*** Bug 76617 has been marked as a duplicate of this bug. ***
*** Bug 109079 has been marked as a duplicate of this bug. ***
Being able to be find/replace in all open files is something crucial and needed very often. How do you guys do refactoring, i.e. rename functions/classes/variables used in several files in a controlled way otherwise...? Doing the replace in the files on the disk is not really convenient, because one often needs to review every replacement, and maybe hand-edit it before saving. I'm really-really looking forward to this feature being implemented. It would add a big use value to Kate.
I like Kate very much but missing the search/replace feature in all open files makes me crazy when I code html.
Feature not yet available as of now (Kate 2.5.10, KDE 3.5.10).
Well, I'd like to add a case where missing this feature (almost) cost me my thesis. This missing feature means I have to revert to using sed, which is not bad in itself. The problem is that I had written my sed command in a kile command window. Kile has this _feature_ that it automagically changes the WDIR each time you click on one of the opened files. Well, as it had to happen, I was entering the sed replacement command and clicked on a tab to double-check some syntax and the resulting command, merged with the annoyin kile cd insertion, completely wiped all the contents of my TEX files. Even though I keep daily backups "off site", I still lost 1/2 a day's work...but I can't start imagining the pain of someone _not_ having backups.
Isn't such as feature going to be available in KDE 4.8 (according to blog post)?
Yes, by using the "Search and Replace" plugin. You can try it already now by following http://kate-editor.org/get-it/ @Kare: This report can be closed, right?
One should note, that it is only solved on the application level. Kile needs to implement it itself. However, They can pretty much copy the code (which is not optimal, but it will work).
I've tested that and it looks like it needs some polishing (or maybe I've did something wrong): - regular find and replace "dialog" can be opened in parallel; - it would be best if when that plugin is enabled then it would just replace current one (with default mode set to find in file - which currently is not available) Hope that it is at least partially possible.
This feature should be covered with the "new" "Search & Replace" plugin. If there are things not covered with that plugin, please open a specific bug report explaining the differences between the S&R plugin and the wanted feature. The separation between S&R in current file and multiple files is deliberately.