Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make text selection color configurable #436

Open
1 task done
jphalip opened this issue Nov 17, 2024 · 1 comment
Open
1 task done

Make text selection color configurable #436

jphalip opened this issue Nov 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jphalip
Copy link

jphalip commented Nov 17, 2024

Is there an existing issue outlining your improvement?

  • 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 jphalip added the enhancement New feature or request label Nov 17, 2024
@kjnsn
Copy link
Collaborator

kjnsn commented Nov 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants