mob: "mob timer" doesn't do anything in the terminal

I’m trying mob in a use case that’s probably not common: sharing a remote terminal (via tmate), not needing the WIP branch management stuff, just looking for a timer that can notify us inside the terminal.

I tried running mob timer 1, hoping that after a minute the terminal bell would ring (or perhaps flash). As far as I can tell, nothing happened.

I tried running the same command locally and immediately got a “mob next” notification. I guess that’s probably too fast to be the currently intended behavior. (Both test systems were macOS Big Sur, in case that matters.)

Would it be possible for mob timer to ring the terminal bell?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

I agree that this is might be confusing. Not sure, however, how to handle this really well. One could require the notify command to contain a %s always. But perhaps not everybody wants this…

Ohhhhhhhhh! (It does.)

Okay, then maybe the essential detail I didn’t realize is that custom non-empty values of MOB_NOTIFY_COMMAND and MOB_VOICE_COMMAND must not omit %s.

The MOB_NOTIFY_COMMAND either has a %s which is substituted by mob next or, in case it has not, mob next is appended to the MOB_NOTIFY_COMMAND string before processed further. I think that’s the issue here.

See injectCommandWithMessage function.