Bug 457948

Summary: Multicursor: Alt+J / "Select next occurrence" matching thrown off by special characters
Product: [Applications] kate Reporter: Jules Pénuchot <jules>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jules Pénuchot 2022-08-16 09:38:05 UTC
Hello,

I've noticed that the "next occurrence" function (the one bound to Alt+J) gets thrown off by special characters. Here's an example:

```
test
(test)
(test)
/test
/test
-test
-test
```

In this text, using Alt+J after selecting any of the `test` occurrences will pick up all the other occurrences. However, when selecting `(test)`, `/test`, or `-test`, Alt+J won't be able to pick up the next occurrence.

Not sure it's voluntary or not, but this makes the shortcut's functionality very limited.

Thanks a lot for working on that feature however, it really made it easier for me to switch from Sublime to Kate.
Comment 1 Bug Janitor Service 2022-08-16 09:57:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/403
Comment 2 Waqar Ahmed 2022-08-17 07:50:19 UTC
Git commit 8be2e4758cf655c597bceecdda35d9bee169c942 by Waqar Ahmed.
Committed on 17/08/2022 at 06:23.
Pushed by cullmann into branch 'master'.

Dont enforce word boundary with multicursor occurunce select

M  +3    -7    src/view/kateview.cpp

https://invent.kde.org/frameworks/ktexteditor/commit/8be2e4758cf655c597bceecdda35d9bee169c942