Discussion:
[patch] cmd-renumber-windows
Max DeLiso
2015-02-16 01:12:45 UTC
Permalink
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
Thomas Adam
2015-02-16 06:05:04 UTC
Permalink
Post by Max DeLiso
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.
Thanks, but we don't need this as another command. You can still use
"move-window -r", and for now, script the rest.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Loading...