This commit is contained in:
DeveloperDurp 2025-04-04 05:34:41 -05:00
parent b8ae56b67f
commit 1cc52f75cc
6 changed files with 776 additions and 9 deletions

View file

@ -73,21 +73,30 @@ bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind C-n display-popup -E ". $HOME/.config/scripts/new-session.sh"
bind C-N display-popup -E ". $HOME/.config/scripts/new-session.sh"
bind C-n display-popup -E -w 80% -h 75% ". $HOME/.config/scripts/new-session.sh"
bind C-N display-popup -E -w 80% -h 75% ". $HOME/.config/scripts/new-session.sh"
bind C-s display-popup -E "\
bind C-s display-popup -E -w 80% -h 75% "\
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
sed '/^popup/d' |\
sed '/^$/d' |\
fzf --reverse --header jump-to-session --preview 'tmux capture-pane -pt {}' \
--bind 'enter:execute(tmux switch-client -t {})+accept'"
--bind 'enter:execute(tmux switch-client -t {})+accept'"
bind C-d display-popup -E "\
bind C-d display-popup -E -w 80% -h 75% "\
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
sed '/^popup/d' |\
sed '/^$/d' |\
fzf --reverse --header 'Delete Session' --preview 'tmux capture-pane -pt {}' \
--bind 'enter:execute(tmux kill-session -t {})+accept'"
bind g display-popup -E "lazygit"
bind g display-popup -E -w 80% -h 75% "lazygit"
bind C-f display-popup -E -w 80% -h 75% "yazi"
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'
}
run '~/.tmux/plugins/tpm/tpm'