Skip to content

Commit

Permalink
more tmux.conf bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Dec 27, 2024
1 parent 9e65486 commit b4ddd32
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ setw -g automatic-rename-format "#{b:pane_current_path}"
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind-key / copy-mode
bind-key -T vi-copy '/' search-backward

# Clear the pane and it's history
bind k send-keys -R \; clear-history
Expand Down Expand Up @@ -61,7 +63,10 @@ bind E command-prompt -p "Command:" \
"run \"tmux list-panes -a -F '##{session_name}:##{window_index}.##{pane_index}' \
| xargs -I PANE tmux send-keys -t PANE '%1' Enter\""

bind . split-window -v "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"
# bind . split-window -v "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"
bind . new-window "k9s"
bind e new-window "cd '~/src/flovilmart/dotfiles'; nvim '.tmux.conf'"
bind o split-window -h "^find ./src -maxdepth 2 -type d | fzf --reverse | xargs tmux new-window -c"

set -g status-left '#[fg=colour7,bg=colour234] #{pane_title} #[fg=colour234,bg=colour236] '
# set -g status-left '#[fg=colour7,bg=colour234] ⬡ #(~/.volta/bin/node --version)#[fg=colour7,bg=colour234] #[fg=colour234,bg=colour236] '
Expand Down

0 comments on commit b4ddd32

Please sign in to comment.