Page 1 of 1

FindInFiles plugin: make dialog modal-less

Posted: 17.09.2023 04:23
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!

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

Posted: 17.09.2023 05:36
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.

Re: FindInFiles plugin: make dialog modal-less

Posted: 17.09.2023 07:10
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.

Re: FindInFiles plugin: make dialog modal-less

Posted: 17.09.2023 07:47
by SamC
Thanks, get it!