From 0bb92e80c87694b19a2ae48a74e635f71d17fdfb Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 22 May 2023 14:02:17 +0200 Subject: [PATCH] tmux: Clean up some comments --- .config/tmux/tmux.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 3aece4c..f7350af 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -160,11 +160,13 @@ set -g message-command-style 'bg=default,fg=#{@accent_color}' set -g message-style 'bg=#{@accent_color},fg=#{@text_fg}' set -g mode-style 'bg=#{@accent_color},fg=#{@text_fg}' +# Visually display when a pane is in copy-mode or 'synchronize-panes' is on. +# Use the pane-borders for tmux >= 3.2 and the "prefix_highlight" plugin +# otherwise. +# # NOTE: `<` does string comparison with `strcmp()`. This means that the # condition will break from a double digit major version (e.g. `10.0`) on. if -F "#{<:#{version},3.2}" { - # Use pure style default for tmux < 3.2 in combination with the - # prefix_highlight plugin. set -g pane-border-style 'bg=default,fg=#{@ui_color}' set -g pane-active-border-style 'bg=default,fg=#{@accent_color}' @@ -179,9 +181,6 @@ if -F "#{<:#{version},3.2}" { set -g pane-active-border-style "#{?pane_in_mode,bg=#{@accent_color}#,fg=#{@ui_color},#{?synchronize-panes,fg=#{@sync_color},fg=#{@accent_color}}}" } -# TODO: display when pane is in fullscreen mode -# Display in the status bar when the prefix was pressed, copy-mode is active, or -# `synchronize-panes` is turned on set -g @prefix_highlight_fg '#{@accent_color}' set -g @prefix_highlight_bg 'default' set -g status-right "#{prefix_highlight}" @@ -189,6 +188,8 @@ set -g status-left "#{prefix_highlight}" set -g status-justify centre +# Display window_index and window_name as status and underline it when the +# active pane is zoomed. %hidden window_status='#{?window_zoomed_flag,#[underscore],}#I #W' set -g window-status-current-format \ "#[fg=#{@accent_color} bold]"$window_status