catppuccin / tmux

💽 Soothing pastel theme for Tmux
MIT License
1.95k stars 615 forks source link

Make text selection color configurable #436

Open jphalip opened 1 week ago

jphalip commented 1 week ago

Is there an existing issue outlining your improvement?

What would you like to see added and/or changed?

Currently the text selection isn't configurable via an option. See:

set -gF mode-style "bg=#{@thm_surface_0},bold"

The issue is that I was unable to override it with another color, even by setting it after the plugin:

set -g @plugin 'catppuccin/tmux#v2.1.0'

# Doesn't work:
set -gF mode-style "bg=blue,bold"

The only way I was able to work around it was by using a hook:

set -g @plugin 'catppuccin/tmux#v2.1.0'

# This works:
set-hook -g client-attached "run-shell 'tmux set-option -gF mode-style \"bg=blue,bold\"'"

It'd be great to add an option to control that specific setting.

kjnsn commented 1 week ago

Sorry why do you think the line set -g @plugin 'catppuccin/tmux#v2.1.0' is loading catppuccin? It only loads when you run tpm. Move set -g mode-style to after you actually load catppuccin

TPM is discouraged for several reasons, the fact that this needs to be explained over and over is one of them