onebadidea / swiftquit

Automatic quitting of macOS apps when closing their windows.
GNU General Public License v3.0
285 stars 14 forks source link

Feature request: close after inactivity timer #28

Open Kriechi opened 1 year ago

Kriechi commented 1 year ago

I frequently close the last document window of an app, just to then open another file via the menu bar or a built-in file browser. This causes the app to be closed too soon, before the app had time to open the new document because there is a few seconds of load time involved.

I would like to have a configurable inactivity timer, e.g., "30 sec of no open documents" before an app gets terminated.

incanus commented 1 year ago

To rephrase, you'd want the feature added in https://github.com/onebadidea/swiftquit/pull/9 but with a configurable, instead of 2 second, duration?

Kriechi commented 1 year ago

Yes please. Configurable or something significantly higher (30sec? 60sec?).

Alternative idea: check if app still has focus / is in foreground, i.e., if the main macOS menu bar is still showing that app then don't yet terminate it.