[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] Detecting if vile is idle
From: |
Chris Green |
Subject: |
Re: [vile] Detecting if vile is idle |
Date: |
Wed, 9 Mar 2016 11:06:29 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Mar 09, 2016 at 03:33:41PM +1100, Brendan O'Dea wrote:
> 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
>
Doesn't undo back to the start clear the modified flag? It certainly
seems to when done manually, which I think is actually rather clever!
--
Chris Green
- [vile] Detecting if vile is idle, Chris Green, 2016/03/04
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/07
- Re: [vile] Detecting if vile is idle, Brendan O'Dea, 2016/03/08
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/08
- Re: [vile] Detecting if vile is idle, Brendan O'Dea, 2016/03/08
- Re: [vile] Detecting if vile is idle,
Chris Green <=
- Re: [vile] Detecting if vile is idle, Brendan O'Dea, 2016/03/09
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/10
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/11
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/11
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/11