Focus Editor after successful search/replace

Post Reply
NorbertJh
Posts: 4
Joined: 24.04.2023 15:19

Focus Editor after successful search/replace

Post by NorbertJh »

Hi Alexey,

first let me thank you for the great editor. After an intense test and configure fortnight I decided to completely switch to cudaedit. It combines the advantages of sublime text and SlickEdit in a great way.

I have only one inconvenience left: Is there any way to automatically focus the editor after a successful search or replace?

I am using cudatext Qt5 1.191.0.6 on Manjaro KDE with Plasma 5.27.4, KDE Frameworks 5.104.0 and Qt 5.15.8.
The GTK2 and Windows versions show the same behaviour.

Regards,
Norbert

PS. Is there a way to donate?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

> Is there a way to donate?
I don't need donations yet; what you can do - spread the word (e.g. youtube video)

About focusing. Sublime don't put focus to editor. and I know that it's good: I can press ENTER n times in the Find dlg to go to next match, i can press other hotkeys of Find dlg. It's handy.
You can press ESC in the Find dlg to focus editor.
NorbertJh
Posts: 4
Joined: 24.04.2023 15:19

Post by NorbertJh »

I have already assigned "UI: focus editor" to F2 because ESC closes the Find dialog.
I know that Sublime and most modern editors keep the find dialog/window/widget/whatever focused, but I made my living with Visual Studio and Notepad++.
If the editor would be focused one could use F3 to find the next match, which is the flow I am used to.
Is there any way to persuade you into implementing an option?

Anyway - I'll spread the word, alas not with a youtube video, I'm notoriously untalented with videos. What do you think of a Wikipedia article?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

> What do you think of a Wikipedia article?
It exists, maybe you can improve it... but I don't know how and _why_.

Cud has option "ui_esc_close_console", maybe I will add "ui_esc_close_finder" for you, ok?
NorbertJh
Posts: 4
Joined: 24.04.2023 15:19

Post by NorbertJh »

main Alexey wrote:Cud has option "ui_esc_close_console", maybe I will add "ui_esc_close_finder" for you, ok?
I'm not sure what that option would change as ESC already closes the find dialog.
Let's stop here. It is as it is. I'll get used to the necessity to refocus the editor. It's just unfamiliar.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

That option, if set to 'false' , will disable the hiding of Find window.
NorbertJh
Posts: 4
Joined: 24.04.2023 15:19

Post by NorbertJh »

main Alexey wrote:That option, if set to 'false' , will disable the hiding of Find window.
Sorry, I did not get the idea. Yes, that would help. Thank you in advance.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Option is just added, wait for 1.192.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Post Reply