spacer icon indicating copy to clipboard operation
spacer copied to clipboard

Update timer while waiting

Open benhansen-io opened this issue 1 year ago • 1 comments

Great tool. Thanks for publishing it.

I was thinking it would be more useful and intuitive to me if the space line showed the current pause time and if it updated as the pause continues.

Right now from what I can tell the time shows the time of the previous wait (plus active time?) before the current wait.

If the time shows the current wait time with updating then it is easier to see at a glance how long the current wait has been going. Right now if I am not actively watching the terminal output, in order to know how long the current pause has been I have to look at the timestamp and compare to the current time.

One downside of updating is if the output is being piped to a file. In the non-TTY case, the current behavior might be a better default.

benhansen-io avatar Jan 15 '25 08:01 benhansen-io

That's a really cool suggestion, though it would increase the complexity of the code somewhat. If you wanted to have a crack at implementing this, I would be very happy to review it! I'll say up front that I am unlikely to be able to make the time to do it myself in the near future.

samwho avatar Jan 15 '25 09:01 samwho

This was added in https://github.com/samwho/spacer/pull/27 and released in 0.4.1.

samwho avatar Jul 18 '25 16:07 samwho