1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Organizing Windows as a tmux til.

This commit is contained in:
jbranchaud
2015-05-21 22:09:29 -05:00
parent 7beead4202
commit 4c5a0274d8
2 changed files with 21 additions and 0 deletions

View File

@@ -75,6 +75,10 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Squeeze Out The Extra Space](ruby/squeeze-out-the-extra-space.md)
- [Summing Collections](ruby/summing-collections.md)
### tmux
- [Organizing Windows](tmux/organizing-windows.md)
### vim
- [The Black Hole Register](vim/the-black-hole-register.md)

View File

@@ -0,0 +1,17 @@
# Organizing Windows
If you use a number of tmux windows as part of your daily workflow, you may find that they get to be a bit of a mess from time to time. There are gaps in the numbering and they aren't laid out in the order you'd prefer. The `movew` command makes it easy to rearrange these windows.
If you have a window indexed at 2 and you want it to be the 4th window, then you can:
```
:movew -s 2 -t 4
```
If you have a gap such that the 4th and 5th windows are numbered 4 and 7, then you can focus the 7 window and simply invoke:
```
:movew
```
And that window will be reinserted at the next available slot, in this case, window 5.