tmux icon indicating copy to clipboard operation
tmux copied to clipboard

Make text selection color configurable

Open jphalip opened this issue 1 year ago • 2 comments

Is there an existing issue outlining your improvement?

  • [X] I have searched the existing issues and my improvement has not been raised yet.

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.

jphalip avatar Nov 17 '24 19:11 jphalip

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

kjnsn avatar Nov 17 '24 21:11 kjnsn

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

Do you have a link to the reasons why it's discouraged?

adaviloper avatar Jan 17 '25 20:01 adaviloper