Bug 462821 - Replace... dialog's replace all with "alt+a" doesn't replace anything while button does
Summary: Replace... dialog's replace all with "alt+a" doesn't replace anything while b...
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: search (other bugs)
Version First Reported In: 21.12.3
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-09 18:09 UTC by Martin Zbořil
Modified: 2024-02-18 19:43 UTC (History)
2 users (show)

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 Martin Zbořil 2022-12-09 18:09:00 UTC
SUMMARY

Kate is my most favorite text editor for 10+ years, one of many features i like and use is "Replace..." and in its dialog, there are few buttons, I am talking about Replace All, which, when alt is pressed shows that (in English locale) Alt+A would replace all, this however stopped working couple years ago.

STEPS TO REPRODUCE
1. open a text file in kate
2.  hit Ctrl+R and type something in Find  - "." is good enough for Regular expression mode
3. hit Alt+A to Replace All

OBSERVED RESULT
nothing is replaced, Alt+R works and replaces first instance of string in Find in opened text, clicking on the Replace All button replaces all instances

EXPECTED RESULT
Alt+A should do same thing as clicking on Replace All


ADDITIONAL INFORMATION
...I would prefer this to be as a keyboard shortcut, so it stays the same even in non-english locale - not all users of my computer are English speakers.
Comment 1 remipch 2023-11-01 11:04:10 UTC
Hi!

Kate is also my favorite text editor for years :-)

I am able to reproduce this issue on Kate version 23.11.70 and version 23.03.70

On my side, the problem comes from a conflict between multiple buttons sharing the same accelerator key :
- Alt+A correctly triggers "Replace all" action when no other button have Alt+A as its accelerator key.
- Alt+A does not work when the "Search & Replace" plugin toolbar is also visible, the "Search" button has the same Alt+A accelerator key.

I agree that shortcuts could be a good solution :
- they can be configured by users according to their needs
- conflicts are detected (a popup "Ambiguous shortcut detected" indicates what to do to solve it)
Comment 2 Christoph Cullmann 2024-02-18 19:43:10 UTC
That should work again with the latest version, at least for me it does.
Comment 3 Christoph Cullmann 2024-02-18 19:43:27 UTC
Version 24.04.70