pull/44/merge
sorsasampo 2021-09-27 21:00:17 +08:00 committed by GitHub
commit f560f5fb84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,7 @@
# Changelog
### master
- swap `last-window` & `send-prefix` bindings
- remove `detach-on-destroy`
- do not set `aggressive-resize` on iTerm terminal
- disable `detach-on-destroy`

View File

@ -68,8 +68,8 @@ allowing you to hold `Ctrl` and repeat `a + p`/`a + n` (if your prefix is
"Adaptable" key bindings that build upon your `prefix` value:
# if prefix is 'C-a'
bind C-a send-prefix
bind a last-window
bind C-a last-window
bind a send-prefix
If prefix is `C-b`, above keys will be `C-b` and `b`.<br/>
If prefix is `C-z`, above keys will be `C-z` and `z`... you get the idea.

View File

@ -136,16 +136,16 @@ main() {
tmux unbind-key C-b
fi
# pressing `prefix + prefix` sends <prefix> to the shell
# pressing `Ctrl-prefix + prefix` sends <prefix> to the shell
if key_binding_not_set "$prefix"; then
tmux bind-key "$prefix" send-prefix
tmux bind-key "$prefix_without_ctrl" send-prefix
fi
fi
# If Ctrl-a is prefix then `Ctrl-a + a` switches between alternate windows.
# If Ctrl-a is prefix then `Ctrl-a + Ctrl-a` switches between alternate windows.
# Works for any prefix character.
if key_binding_not_set "$prefix_without_ctrl"; then
tmux bind-key "$prefix_without_ctrl" last-window
tmux bind-key "$prefix" last-window
fi
# easier switching between next/prev window