done icon indicating copy to clipboard operation
done copied to clipboard

Display tmux window ID in message if available

Open Azenet opened this issue 2 years ago • 3 comments

This is a simple pull request for displaying the window ID in the message when a process ends and contains the appropriate environment variable.

Azenet avatar Sep 18 '21 18:09 Azenet

@Azenet can you share an example of what this looks like in practice? Thanks!

franciscolourenco avatar Sep 29 '21 10:09 franciscolourenco

@franciscolourenco It adds [@2] at the beginning of the notification if the process was running in window 2, for example.

Azenet avatar Sep 29 '21 11:09 Azenet

I was using the wrong variable for the display, which became apparent after using tmux for a long time in which windows were closed (id stays unique). Also added a configuration variable for the format, defaults to [2] for window 2 for example.

Azenet avatar Oct 01 '21 11:10 Azenet

Sure, here is what the notification looks like after sleep 10 has ended in pane 30: Screenshot_20230927_025859

Rebased and made the requested change.

Azenet avatar Sep 27 '23 01:09 Azenet

Thank you @Azenet! This will be released in v1.17.0.

franciscolourenco avatar Sep 27 '23 14:09 franciscolourenco