Bug 457948 - Multicursor: Alt+J / "Select next occurrence" matching thrown off by special characters
Summary: Multicursor: Alt+J / "Select next occurrence" matching thrown off by special ...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-16 09:38 UTC by Jules Pénuchot
Modified: 2022-08-17 07:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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