[tmux] Added popups and open new window on same path

This commit is contained in:
Afonso Franco 2024-03-17 12:34:17 +00:00
parent a4dce8ae59
commit f9315199a7
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys

View file

@ -6,7 +6,7 @@ bind-key 'h' previous-window
bind-key 'j' switch-client -p
bind-key 'k' switch-client -n
bind-key 'l' next-window
bind-key 'n' new-window
bind-key 'n' new-window -c '#{pane_current_path}'
bind-key 'c' kill-window
# Decide whether we're in a Vim process
@ -22,3 +22,14 @@ bind-key 'i' if-shell "$is_vim" 'send-keys F7' 'select-pane -U'
unbind o
bind-key 'o' if-shell "$is_vim" 'send-keys F8' 'select-pane -R'
# Tmus sessionizer
unbind s
bind-key 's' display-popup -E "~/.local/bin/tms"
#Lazygit
unbind g
bind-key 'g' display-popup -d '#{pane_current_path}' -E "lazygit"
# Edit vim config
unbind e
bind-key 'e' display-popup -d '/Users/afonso/.config/nvim/' -E "nvim ."