diff --git a/.tmux.conf b/.tmux.conf index e67c14b..cab3386 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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 @@ -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] '