Screen: Renumbering Windows to Fill Gaps

Coding, Geekery, My Projects — February 3, 2008 at 3:08 pm

After running a single session of screen for a long time, I often find that I have several gaps in the numerical ordering of windows. Using :number is definitely feasible, but it takes a bit more effort than I’d care to contribute every time I want to make my windows contiguously numbered.

I’ve created a patch against CVS HEAD to fill in the holes of the window numbering. It simply moves windows to lower positions until there are no holes left. Any [constructive] comments are welcome.

The patch can be found here. It was also sent to the screen-devel mailing list.

1 Comment »

  1. [...] remain nameless since he didn’t post to the list proper, sent me this in response to my proposed patch: I would never use this feature because I would rather that window #n always remain window #n, but [...]

RSS feed for comments on this post. TrackBack URI

Leave a comment

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. | Eric Garrido