vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] Detecting if vile is idle


From: Brendan O'Dea
Subject: Re: [vile] Detecting if vile is idle
Date: Wed, 9 Mar 2016 15:33:41 +1100

On 8 March 2016 at 22:03, Chris Green <address@hidden> wrote:
> Do you have any clever ideas as to how I can "tickle the recent
> modification bit" programmatically (in a custom .vilerc or similar)?
> It would then be perfect for what I want, exit after a timeout so I
> don't leave sensitive encrypted files on show.

Sure, just make some trivial change and undo it:

  store-procedure exit-on-timeout 'Exit if no activity for 5 minutes'
    exit
  ~endm
  setv $autocolor-hook exit-on-timeout
  setv $autocolor 300000
  insert-string "X"
  undo

--bod



reply via email to

[Prev in Thread] Current Thread [Next in Thread]