https://bugs.kde.org/show_bug.cgi?id=449643

            Bug ID: 449643
           Summary: Searched pattern not highlighted when Vi input mode is
                    enabled
           Product: kate
           Version: 21.12.1
          Platform: Neon Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Vi Input Mode
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: ombroph...@outlook.com
  Target Milestone: ---

Created attachment 146302
  --> https://bugs.kde.org/attachment.cgi?id=146302&action=edit
sample.txt

SUMMARY
In Vim, a pattern can be searched for using the keyboard shortcut `/` in normal
mode. Although this feature (and subsequent shortcuts like `n` and `N`) nicely
works in Kate (or Kwrite), it does not highlight the relevant pattern in the
document (the pattern is highlighted only upon __disabling__ Vi input mode and
using Kate's builtin search feature). It would be helpful, if the search
pattern is also highlighted when using the Vi-mode shortcut.


STEPS TO REPRODUCE
1. Open the attached file `sample.txt` in Kate with Vi input mode enabled.
2. In normal mode, search for the pattern `hello world` using the keyboard
shortcut `/`.
3. Search for the pattern again using Edit->Find.
4. Now turn off Vi input mode.
5. Once again search for the pattern using Edit->Find.

OBSERVED RESULT
Although the cursor jumps to the next found pattern in steps 2 and 3, the
patterns in these cases are not highlighted. However, the patterns are
highlighted after steps 4 and 5.


EXPECTED RESULT
The search pattern ought to be highlighted when Vi input mode is enabled (as
well as when using the Vi shortcut `/`).

SOFTWARE/OS VERSIONS
KDE Plasma
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to