Simplify tmux-session-hydrate logic; update tmux key binds
This commit is contained in:
@@ -10,6 +10,7 @@ set -g base-index 0
|
||||
# unbind keys
|
||||
unbind-key f; unbind-key C-f; unbind-key s; unbind-key C-s
|
||||
unbind-key c; unbind-key n; unbind-key p
|
||||
unbind-key q; unbind-key w
|
||||
unbind-key C-o; unbind-key C-n; unbind-key C-p; unbind-key C-l; unbind-key C-h
|
||||
|
||||
# vim-like movement stuff
|
||||
@@ -25,18 +26,17 @@ bind -r l select-pane -R
|
||||
bind-key r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; display-message "tmux.conf reloaded"
|
||||
|
||||
# kill the current session
|
||||
# TODO: would it clash with other bindings to change these to C-q and C-w ?
|
||||
# TODO: combine these into one command; must cover case when only 1 session remains
|
||||
bind-key Q rename-session zzzz-temp-kill\; switch-client -p\; kill-session -t zzzz-temp-kill
|
||||
bind-key W kill-session
|
||||
bind-key q rename-session zzzz-temp-kill\; switch-client -p\; kill-session -t zzzz-temp-kill
|
||||
bind-key w kill-session
|
||||
|
||||
# creating new windows
|
||||
bind-key n new-window
|
||||
|
||||
# find and switching for sessions, include using tmux-session-init
|
||||
bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init"
|
||||
# bind-key C-s run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init find-existing"
|
||||
bind-key C-s choose-session
|
||||
bind-key S choose-window
|
||||
bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init hub"
|
||||
bind-key -r C-l switch-client -l
|
||||
bind-key -r C-o last-window
|
||||
|
Reference in New Issue
Block a user