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 »

Hi Alexey, I just replaced the file into my portable set up. Then attempted to redo the test as I performed above.
F4 no longer works at all.

Though I am unsure what the command palette is for or how to use it. Do I need to change anything in that? Also, where do I get that new json file?

Thanks for your help.
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post by main Alexey »

- call Cmd Palette from menuitem "Help / Command Palette"
- there, find item 'find next and replace' and press F9 there in Cmd Palette
BTW, read this -- https://wiki.freepascal.org/CudaText#Configuration
and this https://wiki.freepascal.org/CudaText#Command_Palette

- there assign F4 to item 'find next and replace'
- restart
F4 must work now?
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post by main Alexey »

>Also, where do I get that new json file?
https://github.com/Alexey-T/CudaText/bl ... fault.json
download as python (check it's not HTML)
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Possible Hotkey issue

Post by sl23 »

Oh that's excellent, thank you!

My first attempt to get it working after downloading the json and beta exe:
The find works as normal, it highlights the next word and doesn't matter where the focus is.
Replace, at first would delete the found word, restarted CT, still didn't replace but deleted. Third attempt after a second restart of CT and it works. Only thing is that unlike before the beta, the replace doesn't highlight the word, is this something that could be fixed/added?
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post by main Alexey »

- 'still didn't replace but deleted' - maybe you didnot fill the 'replace with' input? so it used empty text and deleted?

- 'the replace doesn't highlight the word, is this something that could be fixed/added?' - ok, will try to add it, good note.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Re: Possible Hotkey issue

Post by main Alexey »

I made fix to 'find next and replace'.
beta: https://github.com/Alexey-T/CudaText/di ... t-10503869
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Possible Hotkey issue

Post by sl23 »

main Alexey wrote: 30.08.2024 20:54 - 'still didn't replace but deleted' - maybe you didnot fill the 'replace with' input? so it used empty text and deleted?

- 'the replace doesn't highlight the word, is this something that could be fixed/added?' - ok, will try to add it, good note.
I did fill both fields. Which was why I was puzzled as to the reason it just deleted the found text.
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 »

That seems to have resolved it!
:D
Thank you for that fix, you're superb!
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 have an unrelated minor undo bug, should I create another topic?
Live for an ideal and leave no place in the mind for anything else.
Post Reply