summary |
log |
commit |
diff |
tree
raw |
patch |
inline | side by side (from parent 1:
884ab8b)
Keep prompts on the right half of the status row so window names remain visible without reserving another row. Use Emacs prompt editing while retaining vi copy mode.
Advertise tmux-256color, allow 10ms for escape sequences, restore prefix forwarding and clear-screen access, and pass navigation keys through to fzf.
-set -g default-terminal 'xterm-256color'
+set -g default-terminal 'tmux-256color'
set -g set-clipboard on
set -g allow-passthrough on
# General settings
set -g history-limit 50000
set -g mouse on
set -g set-clipboard on
set -g allow-passthrough on
# General settings
set -g history-limit 50000
set -g mouse on
set -g focus-events on
set -g base-index 1
set -g pane-base-index 1
set -g focus-events on
set -g base-index 1
set -g pane-base-index 1
# Remap prefix from C-b to C-a
unbind C-b
set -g prefix C-a
# Remap prefix from C-b to C-a
unbind C-b
set -g prefix C-a
# Window and pane management
bind c new-window -c "${HOME}"
# Window and pane management
bind c new-window -c "${HOME}"
set -g status-interval 2
set -g status-style fg=colour137,bg=colour234,dim
set -g status-left ''
set -g status-interval 2
set -g status-style fg=colour137,bg=colour234,dim
set -g status-left ''
-set -g status-left-length 20
set -g status-right '#[fg=colour233,bg=colour245,bold] %H:%M #[fg=colour233,bg=colour253,bold] %m-%d '
set -g status-right-length 50
set -g status-right '#[fg=colour233,bg=colour245,bold] %H:%M #[fg=colour233,bg=colour253,bold] %m-%d '
set -g status-right-length 50
set -g pane-active-border-style fg=colour51,bg=colour236
# Messages
set -g pane-active-border-style fg=colour51,bg=colour236
# Messages
-set -g message-style fg=colour232,bg=colour166,bold
-set -g message-command-style fg=blue,bg=black
+set -g message-style fg=colour232,bg=colour166,bold,width=50%,align=right
+set -g status-keys emacs
# Clock mode
set -g clock-mode-colour colour135
# Clock mode
set -g clock-mode-colour colour135
# Vim-tmux-navigator: smart pane switching with vim awareness
# https://github.com/christoomey/vim-tmux-navigator
# Vim-tmux-navigator: smart pane switching with vim awareness
# https://github.com/christoomey/vim-tmux-navigator
-is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
+bind C-l send-keys C-l
+is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +([^[:space:]]+/)?g?(view|n?vim?x?|fzf)(diff)?$'"
bind -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
bind -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
bind -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
bind -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
bind -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
bind -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'