feat(tmux): new bindings

This commit is contained in:
Sergio Laín 2025-08-02 20:45:45 +02:00
parent 6440b955fc
commit 565298b457
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438

View file

@ -23,7 +23,7 @@ bind - split-window -vc "#{pane_current_path}"
# Maintain the same path when creating a new window # Maintain the same path when creating a new window
bind c new-window -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}"
bind-key C command-prompt -p "Enter window name:" "new-window -n '%%'" bind C command-prompt -p "New session name:" "new-session -s '%%'"
# Move to the next and prev window # Move to the next and prev window
bind-key -n C-M-l next-window bind-key -n C-M-l next-window
@ -43,7 +43,7 @@ bind -n C-Down resize-pane -D 2
# Change window name # Change window name
bind-key r command-prompt -I "#W" "rename-window '%%'" bind-key r command-prompt -I "#W" "rename-window '%%'"
bind-key R command-prompt -I "#W" "rename-session '%%'" bind-key R command-prompt -I "#S" "rename-session '%%'"
# Close a window # Close a window
bind-key Q kill-window bind-key Q kill-window