diff --git a/.config/tmux/tmux_binds.conf b/.config/tmux/tmux_binds.conf index 1c49a22..6d0110f 100644 --- a/.config/tmux/tmux_binds.conf +++ b/.config/tmux/tmux_binds.conf @@ -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 ."