From 0917922006e3b728fa8c6ccd987df4f8b97e8f38 Mon Sep 17 00:00:00 2001 From: afranco Date: Sun, 17 Mar 2024 12:34:17 +0000 Subject: [PATCH] chore(tmux): Added popups and open new window on same path --- .config/tmux/tmux_binds.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 ."