mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Add Organizing Windows as a tmux til.
This commit is contained in:
@@ -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)
|
||||
|
||||
17
tmux/organizing-windows.md
Normal file
17
tmux/organizing-windows.md
Normal 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.
|
||||
Reference in New Issue
Block a user