Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change auto-open / auto-focus when opening a file in geany #2145

Open
rubyFeedback opened this issue May 6, 2019 · 4 comments
Open

Change auto-open / auto-focus when opening a file in geany #2145

rubyFeedback opened this issue May 6, 2019 · 4 comments

Comments

@rubyFeedback
Copy link

Right now, at the least for me on mate-desktop, when I open several files in geany, the focus is instantly activated.

This is a useful default but not in all cases. My old editor did not autofocus and while this may have drawbacks, one advantage is that I could slowly batch-open different files and continue to work on the commandline (I use the commandline a lot).

Would it be possible to have some advanced option or toggle to change this auto-focus behaviour of geany? E. g. I could then toggle it to not auto-take away the focus.

I know that this must be able to work on a per-application basis because my old editor worked like this, on mate-desktop too. It could be some widget entry in options to toggle that behaviour then.

@codebrainz
Copy link
Member

This sounds like a window manager feature (ex. here).

@elextr
Copy link
Member

elextr commented May 7, 2019

On modern WMs (like my Cinnamon) its a GUI setting, no faffing about with gconf, so I assumed the OP didn't want it set since its a global setting. The only way of making it only apply to the Geany window is for Geany not to request focus after opening the file.

@elextr
Copy link
Member

elextr commented May 7, 2019

[oops hit "comment" too soon]

Hence its a simple enhancement to add an option to prevent that, but somebody has to contribute it.

@b4n
Copy link
Member

b4n commented May 7, 2019

Sounds reasonable enough to accept a well written pull request with a various pref.
I however never used this workflow and usually open files I want when I want, but that's me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants