diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index 7d8f69c..ec36461 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -45,6 +45,9 @@ bind Q confirm-before -p "kill current window? (y/n)" "kill-window" bind C-q confirm-before -p "kill other windows? (y/n)" "kill-window -a" +bind r command-prompt -I '#W' -p "New window name:" "rename-window '%%'" +bind R command-prompt -I '#S' -p "New session name:" "rename-session '%%'" + # SSH Session bind h command-prompt -p "Remote host:" "new-session -n 1 -s 'ssh-%1' -A ssh %1" @@ -69,8 +72,7 @@ bind l confirm-before -p "lock tmux? (y/n)" lock-session # Reload config -bind r reload-config -bind R if-shell "git -C ~/dotfiles pull" "source-file '$HOME/.config/tmux/tmux.conf' \; display-message 'Config reloaded...'" "display-message 'Error while fetching config'" +bind F5 reload-config # Panes navigation