Summary: | search & replace unicode char is very slow | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Fahad Al-Saidi <Fahad.alsaidi> |
Component: | search | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | ASSIGNED --- | ||
Severity: | wishlist | CC: | christoph, kare.sars, waqar.17a |
Priority: | NOR | ||
Version: | 22.08.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | a big file contains hidden unicode chars |
to make it really slow, search for [\x{202A}-\x{202F}] I can also reproduce the issue. As a workaround, for now at least, you can use the Search & Replace plugin. With the plugin, the search is done in less than a second. @Kåre Särs Thanks for the workaround it is really fast in search, but unfortunately Search & Replace plugin doesn't have option for replacing all matches or at least I couldn't find it. There is the "Replace checked" button that replaces all the checked items. After a search all matches are checked until you un-check them (In reply to Kåre Särs from comment #4) > There is the "Replace checked" button that replaces all the checked items. > After a search all matches are checked until you un-check them Thanks. It works. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/466 |
Created attachment 154982 [details] a big file contains hidden unicode chars SUMMARY *** I have a txt file generated it for tesserocr that has lot of hidden Unicode chars under Pop Directional Formatting (PDF) block. So I want to search & delete them. I notice that kate is very slow in doing that. *** STEPS TO REPRODUCE 1. download attached txt file. 2. search & replace (Ctrl+R) 3. type \x{202C} 4. choose Regular expression mode 5. Click Replace all. OBSERVED RESULT the process is very slow. EXPECTED RESULT SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE neon 5.26 22.04 (x86_64) (available in About System) Operating System: KDE neon 5.26 KDE Plasma Version: 5.26.2 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 Kernel Version: 5.15.0-52-generic (64-bit) ADDITIONAL INFORMATION