tmux: Clean up some comments

This commit is contained in:
2023-05-22 14:02:17 +02:00
parent cc299641e5
commit 0bb92e80c8

View File

@@ -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