Page 2 of 3

Re: Possible Hotkey issue

Posted: 29.08.2024 11:16
by sl23
Not sure what the command palette is, think I used the second method via Plugins/Options editor lite.
Seems a bit strange to have to specify it in two separate places though? Could you change it to make this easier to use? :mrgreen:

Re: Possible Hotkey issue

Posted: 29.08.2024 12:53
by main Alexey
1- Cmd Palette is a dialog: call it by 'Help / Command Palette'.
F9 key there allows to change hotkeys.
but Cmd Palette don't have 'Replace next' item so we cannot change Replace hotkey there.
so - we have only 1 way to change Replace hotkey.

2- attach in zip your user.json + keys.json files. so I can try to repeat the issue.

3- since Cmd Palette don't have 'Replace next' item - editor cannot react to F4 (you assigned it via Options Editor) when editor is focused. this is by design! only focused find-dialog can react to F4.

Re: Possible Hotkey issue

Posted: 29.08.2024 13:42
by sl23
Oh I see! Ok, well, here's my files, hope it helps... :)
keys.zip
(1.88 KiB) Downloaded 117 times

Re: Possible Hotkey issue

Posted: 29.08.2024 16:37
by main Alexey
Seems I got what is your problem.
you put focus to editor and want that F4 replaces next word.
but Cud don't support F4 key in editor! it needs focus in the find-dialog input field.
so click on input field in find-dlg before pressing F4.

F3 is different story. editor supports such command in the Cmd Palette so F3 works when editor is focused.

Re: Possible Hotkey issue

Posted: 29.08.2024 21:05
by sl23
Ok, so why doesn't the editor support F4?
Tbh, I only used F4 as it was next to F3 so it made it physically easier to use that key when doing a lot of replacing. :)

Re: Possible Hotkey issue

Posted: 29.08.2024 22:12
by sl23
I think I see what you mean about why it doesn't work.
So, I suppose it comes down to a feature request! :D
Could you add 'Replace next' item to the cmd palette? Or is it something you don't wish to do?

Re: Possible Hotkey issue

Posted: 30.08.2024 05:36
by main Alexey
I wrote this request to github
https://github.com/Alexey-T/CudaText/issues/5669
and will try to add it little later. it is not very easy.

Re: Possible Hotkey issue

Posted: 30.08.2024 06:24
by main Alexey
added! tell me your OS and widgetset (ie the line from About dialog, press COPY btn there) so i can give the beta.

Re: Possible Hotkey issue

Posted: 30.08.2024 14:34
by sl23
Oh wow thanks for the quick response, hope it wasn't too difficult! ;)
Win11x64 23H2
CudaText 1.216.6.0, win64-x86_64-win32, fpc 3.2.3

Re: Possible Hotkey issue

Posted: 30.08.2024 15:51
by main Alexey
last Win64 beta
https://github.com/Alexey-T/CudaText/di ... t-10500838
please test.

+ add: added Command Palette item "find next and replace"
* change: deleted options "find_hotkey_find_next", "find_hotkey_replace", now usual Command Palette hotkeys are used here
(options are deleted in new default.json which you can download in our Github)