Max DeLiso
2015-02-16 01:12:45 UTC
Hello.
I've been using tmux for a while now and I think it's great.
Often, when working with it, I will accumulate too many windows and
then close some, leaving my numbers out of sequence.
I went to implement renumbering in tmux only to discover that it was
already present (session_renumber_windows), but not reachable directly
from a command.
The attached patch proposes adding a command which just calls
session_renumber_windows for a target session or all sessions.
I have tested it, and it appears to work alright (it applies against be6dc83).
Please let me know if you think this is worth applying, or if there's
already an easier way to accomplish this.
Thanks,
--max
I've been using tmux for a while now and I think it's great.
Often, when working with it, I will accumulate too many windows and
then close some, leaving my numbers out of sequence.
I went to implement renumbering in tmux only to discover that it was
already present (session_renumber_windows), but not reachable directly
from a command.
The attached patch proposes adding a command which just calls
session_renumber_windows for a target session or all sessions.
I have tested it, and it appears to work alright (it applies against be6dc83).
Please let me know if you think this is worth applying, or if there's
already an easier way to accomplish this.
Thanks,
--max