Page 1 of 1
Focus Editor after successful search/replace
Posted: 24.04.2023 15:51
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?
Posted: 24.04.2023 16:10
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.
Posted: 24.04.2023 17:14
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?
Posted: 24.04.2023 18:05
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?
Posted: 24.04.2023 18:33
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.
Posted: 24.04.2023 18:42
by main Alexey
That option, if set to 'false' , will disable the hiding of Find window.
Posted: 24.04.2023 19:54
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.
Posted: 25.04.2023 08:08
by main Alexey
Option is just added, wait for 1.192.
Posted: 25.04.2023 17:42
by main Alexey