mirror of
https://github.com/samoshkin/tmux-config.git
synced 2026-01-04 00:38:01 +00:00
Add keybinding to close all other windows but current one
This commit is contained in:
16
readme.md
16
readme.md
@@ -30,9 +30,7 @@ TBD:
|
||||
- [ ] retain current path when new pane is created
|
||||
- [ ] integration with clipboard
|
||||
- [ ] fix pane resizing
|
||||
- [ ] key binding to close all windows but current one
|
||||
- [ ] fix installation script to properly install TPM
|
||||
- [ ] change zoom action key binding to `prefix +`
|
||||
|
||||
|
||||
Installation
|
||||
@@ -140,16 +138,24 @@ Let's go through them:
|
||||
<td><code><prefix> C-o</code></td>
|
||||
<td>Swap current active pane with next one</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code><prefix> +</code></td>
|
||||
<td>Toggle zoom for current pane</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code><prefix> x</code></td>
|
||||
<td>Kill current pane</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code><prefix> C-x</code></td>
|
||||
<td>Kill current window (with confirmation)</td>
|
||||
<td><code><prefix> X</code></td>
|
||||
<td>Kill current window</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code><prefix> X</code></td>
|
||||
<td><code><prefix> C-x</code></td>
|
||||
<td>Kill other windows but current one (with confirmation)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code><prefix> C-q</code></td>
|
||||
<td>Kill current session (with confirmation)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -86,8 +86,9 @@ bind -r C-o swap-pane -D
|
||||
# Kill pane/window/session shortcuts
|
||||
unbind &
|
||||
bind x kill-pane
|
||||
bind C-x confirm-before -p "kill-window #W? (y/n)" kill-window
|
||||
bind X confirm-before -p "kill-session #S? (y/n)" kill-session
|
||||
bind X kill-window
|
||||
bind C-x confirm-before -p "kill other windows? (y/n)" "kill-window -a"
|
||||
bind C-q confirm-before -p "kill-session #S? (y/n)" kill-session
|
||||
|
||||
# Merge session with another one (e.g. move all windows)
|
||||
# If you use adhoc 1-window sessions, and you want to preserve session upon exit
|
||||
|
||||
Reference in New Issue
Block a user