[tmux] Added popups and open new window on same path
This commit is contained in:
parent
a4dce8ae59
commit
f9315199a7
1 changed files with 12 additions and 1 deletions
|
@ -6,7 +6,7 @@ bind-key 'h' previous-window
|
||||||
bind-key 'j' switch-client -p
|
bind-key 'j' switch-client -p
|
||||||
bind-key 'k' switch-client -n
|
bind-key 'k' switch-client -n
|
||||||
bind-key 'l' next-window
|
bind-key 'l' next-window
|
||||||
bind-key 'n' new-window
|
bind-key 'n' new-window -c '#{pane_current_path}'
|
||||||
bind-key 'c' kill-window
|
bind-key 'c' kill-window
|
||||||
|
|
||||||
# Decide whether we're in a Vim process
|
# 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
|
unbind o
|
||||||
bind-key 'o' if-shell "$is_vim" 'send-keys F8' 'select-pane -R'
|
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 ."
|
||||||
|
|
Loading…
Reference in a new issue