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

Feature Request: don't count time where vim has no focus or the user is inactive #2

Open
1 task done
kamalmarhubi opened this issue Apr 7, 2023 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@kamalmarhubi
Copy link

Feature Requested

Filing this on behalf of a reddit user:

Is it possible to make it count buffer inactivity time as its inactivity only while vim or user is active? E.g. if go to read manuals or chill in browser buffers' timers should stay still, but if i really don't use a buffer while editing others it should be closed

How I think this might work: use the FocusLost, FocusGained, CursorHold, and CursorHoldI events to define a state machine for when the inactive time actually ticks up. I haven't had time to think this all the way through though!

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.
@kamalmarhubi kamalmarhubi added the enhancement New feature or request label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant