FindInFiles plugin: make dialog modal-less

Plugins for SynWrite and CudaText...
Post Reply
SamC
Posts: 208
Joined: 12.08.2023 00:49

FindInFiles plugin: make dialog modal-less

Post by SamC »

Hello,
When open the find in files window, the main window will be de-actived. If we want to edit, we must close the find window first.
Could we active or focus the main editor window when keep the find in file window open? That maybe a little more convenient to edit.
Thanks!
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Re: active the main window when open the file in files window

Post by main Alexey »

Plugin FindInFiles supports only modal mode. Modalless mode is not supported. if you close FindInFiles, and reopen it, old content (results of search) must be preserved, so not a big problem.
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Re: FindInFiles plugin: make dialog modal-less

Post by main Alexey »

hack is possible.
in file py/cuda_find_in_files4/cd_fif4.py,
find:

Code: Select all

m.ag.show(on_exit=m.on_exit, onetime=False
replace the line to

Code: Select all

        m.ag.show(on_exit=m.on_exit, onetime=False, modal=False)
but, it WILL affect the stability of FindInFiles UI.
SamC
Posts: 208
Joined: 12.08.2023 00:49

Re: FindInFiles plugin: make dialog modal-less

Post by SamC »

Thanks, get it!
Post Reply