Possible Hotkey issue

Solved bugs are moved into this topic...
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Possible Hotkey issue

Post 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:
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post 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.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Possible Hotkey issue

Post by sl23 »

Oh I see! Ok, well, here's my files, hope it helps... :)
keys.zip
(1.88 KiB) Downloaded 110 times
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post 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.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Possible Hotkey issue

Post 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. :)
Live for an ideal and leave no place in the mind for anything else.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Possible Hotkey issue

Post 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?
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post 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.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post 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.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Possible Hotkey issue

Post 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
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post 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)
Post Reply