nvim-early-retirement icon indicating copy to clipboard operation
nvim-early-retirement copied to clipboard

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

Open kamalmarhubi opened this issue 2 years ago • 0 comments

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

  • [X] The feature would be useful to more users than just me.

kamalmarhubi avatar Apr 07 '23 15:04 kamalmarhubi