This commit is contained in:
DeveloperDurp 2025-04-06 17:27:18 -05:00
parent 4481e4ceaf
commit 1110cf573c
5 changed files with 15 additions and 2 deletions

View file

@ -80,6 +80,8 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel "xsel -i --clipboard"
unbind '"'
unbind %
#bind '"' split-window -v -c "#{pane_current_path}"
#bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
@ -93,10 +95,16 @@ bind g display-popup -E -w 80% -h 75% "lazygit"
bind k display-popup -E -w 80% -h 75% "k9s"
bind f display-popup -E -w 80% -h 75% "yazi"
bind t if-shell -F '#{==:#{session_name},popup}' {
bind T if-shell -F '#{==:#{session_name},popup}' {
detach-client
} {
display-popup -d "#{pane_current_path}" -xC -yC -w 80% -h 75% -E 'tmux attach-session -t popup || tmux new-session -s popup'
}
bind S if-shell -F '#{==:#{session_name},scratch}' {
detach-client
} {
display-popup -d "#{pane_current_path}" -xC -yC -w 80% -h 75% -E 'tmux attach-session -t scratch || tmux new-session -s scratch nvim new'
}
run '~/.tmux/plugins/tpm/tpm'