~protesilaos/tmr

2 2

Requiring acknowledgment for some notifications

Details
Message ID
<87pme5eny4.fsf@cassou.me>
DKIM signature
missing
Download raw message
Hi,

I sometimes miss notifications: maybe because I was really focused when
it happened or maybe because I wasn't at my desk. Most of the time it
isn't really important and I'm fine missing them. Sometimes, I would
really like not to miss the notification, e.g., when I should fetch my
kid at the school.

Would it make sense to add an optional acknowledgment mechanism to
timers? If a timer requires acknowledgment, the timer would trigger new
notifications every XXX seconds until it is acknowledged with `M-x
tmr-acknowledge`.

If we go this route, a possible implementation could be to add a
`acknowledged` slot in the `tmr--timer` structure. The value of this
slot could be:

- 'required: when the timer finishes, it is rescheduled for XXX seconds

- nil (the default): current status of not having to acknowledge
  notifications

- 'acknowledged: acknowledgment was required and has been done with `M-x
  tmr-acknowledge`

What do you think?

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
Details
Message ID
<87wn8d7fu0.fsf@protesilaos.com>
In-Reply-To
<87pme5eny4.fsf@cassou.me> (view parent)
DKIM signature
missing
Download raw message
> From: Damien Cassou <damien@cassou.me>
> Date: Wed,  2 Nov 2022 09:54:27 +0100
>
> Hi,

Hello Damien,

> I sometimes miss notifications: maybe because I was really focused when
> it happened or maybe because I wasn't at my desk. Most of the time it
> isn't really important and I'm fine missing them. Sometimes, I would
> really like not to miss the notification, e.g., when I should fetch my
> kid at the school.
>
> Would it make sense to add an optional acknowledgment mechanism to
> timers? If a timer requires acknowledgment, the timer would trigger new
> notifications every XXX seconds until it is acknowledged with `M-x
> tmr-acknowledge`.

Yes, this makes perfect sense.

> If we go this route, a possible implementation could be to add a
> `acknowledged` slot in the `tmr--timer` structure. The value of this
> slot could be:
>
> - 'required: when the timer finishes, it is rescheduled for XXX seconds
>
> - nil (the default): current status of not having to acknowledge
>   notifications
>
> - 'acknowledged: acknowledgment was required and has been done with `M-x
>   tmr-acknowledge`
>
> What do you think?

Sounds good!  Will you prepare a patch?

* * *

Apart from this, maybe we can optionally pop up a buffer with the
elapsed timer?  Just something to make it more obvious that time is up?
In that buffer we can even use larger fonts or something along those
lines.  Maybe this is not needed, but I am thinking out loud now.

All the best,
Prot

-- 
Protesilaos Stavrou
https://protesilaos.com
Details
Message ID
<874jvcxijj.fsf@cassou.me>
In-Reply-To
<87wn8d7fu0.fsf@protesilaos.com> (view parent)
DKIM signature
missing
Download raw message
Protesilaos Stavrou <info@protesilaos.com> writes:
>> What do you think?
>
> Sounds good!  Will you prepare a patch?


I won't do it any time soon because my plate is more than full for now.


> Apart from this, maybe we can optionally pop up a buffer with the
> elapsed timer?  Just something to make it more obvious that time is
> up?  In that buffer we can even use larger fonts or something along
> those lines.  Maybe this is not needed, but I am thinking out loud
> now.

It would certainly help! Good idea.

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
Reply to thread Export thread (mbox)