dev: automated commit - 2025-09-22 09:56:48
This commit is contained in:
parent
dbcbcf4077
commit
7bf9a172ac
37 changed files with 311 additions and 140 deletions
|
|
@ -15,6 +15,7 @@ setw -g aggressive-resize on # Only resize screen if smaller scree
|
|||
set -g history-limit 10000 # Store 10k lines of history
|
||||
set-option -g allow-rename off # Disable automatic window renaming
|
||||
set-option -s set-clipboard on # Enable clipboard support
|
||||
setw -g mode-keys vi # Use vi keys in copy mode
|
||||
|
||||
|
||||
# Key Bindings
|
||||
|
|
@ -35,6 +36,25 @@ bind -r J resize-pane -D 5
|
|||
bind -r K resize-pane -U 5
|
||||
bind -r L resize-pane -R 5
|
||||
|
||||
# Vim-like copy mode navigation
|
||||
bind-key -T copy-mode-vi h send-keys -X cursor-left
|
||||
bind-key -T copy-mode-vi j send-keys -X cursor-down
|
||||
bind-key -T copy-mode-vi k send-keys -X cursor-up
|
||||
bind-key -T copy-mode-vi l send-keys -X cursor-right
|
||||
bind-key -T copy-mode-vi w send-keys -X next-word
|
||||
bind-key -T copy-mode-vi b send-keys -X previous-word
|
||||
bind-key -T copy-mode-vi 0 send-keys -X start-of-line
|
||||
bind-key -T copy-mode-vi $ send-keys -X end-of-line
|
||||
bind-key -T copy-mode-vi G send-keys -X history-bottom
|
||||
bind-key -T copy-mode-vi g send-keys -X history-top
|
||||
bind-key -T copy-mode-vi / command-prompt -T search -I "#{pane_current_path}" "send -X search-forward \"%%\""
|
||||
bind-key -T copy-mode-vi ? command-prompt -T search -I "#{pane_current_path}" "send -X search-backward \"%%\""
|
||||
bind-key -T copy-mode-vi n send-keys -X search-again
|
||||
bind-key -T copy-mode-vi N send-keys -X search-reverse
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||
bind-key -T copy-mode-vi Escape send-keys -X cancel
|
||||
|
||||
# Move pane to a different window
|
||||
bind-key m choose-window -F "#{window_index}: #{window_name}" "join-pane -h -t %%"
|
||||
bind-key M choose-window -F "#{window_index}: #{window_name}" "join-pane -v -t %%"
|
||||
|
|
@ -85,7 +105,7 @@ set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag,(🔍),}"
|
|||
set -g @catppuccin_window_default_text "#W"
|
||||
|
||||
# Determine status modules based on hostname
|
||||
run-shell "if [ $(hostname) = 't14' ]; then \
|
||||
run-shell "if [ $(hostname) = 'fw' ]; then \
|
||||
tmux set -g @catppuccin_status_modules_right 'date_time battery session'; \
|
||||
else \
|
||||
tmux set -g @catppuccin_status_modules_right 'date_time session'; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue