this is my config file: Increase scrollback buffer size set -g history-limit 100000…
- User
this is my config file:
Increase scrollback buffer size
set -g history-limit 100000
Start window and pane numbering from 1 for easier switching
set -g base-index 1 setw -g pane-base-index 1
Allow automatic renaming of windows
set -g allow-rename on set -g automatic-rename on
Renumber windows when one is removed.
set -g renumber-windows on
modern colors
set -g default-terminal "${TERM}" set -ga terminal-overrides ",alacritty:Tc"
unbind the prefix and bind it to Ctrl-a like screen
unbind C-b set -g prefix C-a bind C-a send-prefix
'PREFIX r' to reload of the config file
unbind r bind r source-file
/.config/.tmux.conf; display-message '/.config/.tmux.conf reloaded'Allow holding Ctrl when using using prefix+arrows for switching windows
bind -n C-Left previous-window bind -n C-Right next-window
Mouse friendly
set -g mouse on
kill my session when I close the window
set -g detach-on-destroy on
set -as terminal-features ",*:RGB"
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
show a promp to kill a window by id with prefix+X
bind-key C-x command-prompt -p "kill window: " "kill-window -t '%%'"
allow to copy to system clipboard
bind-key y run -b "tmux show-buffer | xclip -selection clipboard"; display-message "copied tmux buffer to system clipboard"
Switch between two most recently used windows
bind Space last-window
create a new window with ~ as the default path using prefix + Enter
bind-key Enter new-window -c ~
create a new window with the same path as the current window using prefix + Win + Enter
bind-key -n M-Enter new-window -c "#{pane_current_path}"
######################
DESIGN CHANGES
######################
Avoid date/time taking up space
set -g status-right '' set -g status-right-length 0 set -g status-style fg=white,bg=#323232
set-option -g status-style "fg=#7C7D83 bg=default" # gruvbox dark
set-option -g status-left-length 100 set-option -g status-left " #{session_name} "
set-option -g window-status-format "#{window_index}:#{window_name}#{window_flags} " # window_name -> pane_current_command set-option -g window-status-current-format "#{window_index}:#{window_name}#{window_flags} "
set-option -g window-status-current-style "fg=#dcc7a0" #for gruvbox use: dcc7a0 or aeb6ff
- Assistant
From your provided configuration file for
tmux, there seems to be a few potential issues that could be causing your arrow keys to not work properly. - User
I have change my config to this:
scrollback buffer size set -g history-limit 100000
Start window and pane numbering from 1 for easier switching
set -g base-index 1 setw -g pane-base-index 1
Allow automatic renaming of windows
set -g allow-rename on set -g automatic-rename on
Renumber windows when one is removed.
set -g renumber-windows on
modern colors
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",alacritty:Tc"
unbind the prefix and bind it to Ctrl-a like screen
unbind C-b set -g prefix C-a bind C-a send-prefix
'PREFIX r' to reload of the config file
unbind r bind r source-file
/.config/.tmux.conf; display-message '/.config/.tmux.conf reloaded'Allow holding Ctrl when using using prefix+arrows for switching windows
bind -n C-h previous-window bind -n C-l next-window
and run tmux source ~/.config/.tmux.conf
but the arrow keys are still being mapped to change between windows. When I try to move within vim or even in the terminal the left and right arrows do not work
- Assistant
Based on the updated configuration you've provided, it seems that you've removed the direct bindings for switching panes with the arrow keys (, , , ) and have mapped control + and for switching between windows.