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

add support of indicator start and end #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aacebedo
Copy link

I have added the support of characters at the start and the end of the indicator.
It is backward compatible with current behaviour and allow to create nice pill like indicator like this:
image

@MunifTanjim
Copy link
Owner

This plugin is intentionally kept simple. (ref:

_Note: This is a trimmed down version of the original [tmux-prefix-highlight](https://github.com/tmux-plugins/tmux-prefix-highlight) plugin._
)

What you want can be done like this:

mode_separator_style="#[default]#{?client_prefix,#[fg=blue],#{?pane_in_mode,#[fg=yellow],#{?pane_synchronized,#[fg=brightred],#[fg=cyan]}}}"
mode_separator_start="${mode_separator_style}${mode_separator_style}#[reverse]"
mode_separator_end="${mode_separator_style}${mode_separator_style}#[default]"

set -g @mode_indicator_prefix_prompt "${mode_separator_start}WAIT${mode_separator_end}"
set -g @mode_indicator_prefix_mode_style ""
set -g @mode_indicator_copy_prompt "${mode_separator_start}COPY${mode_separator_end}"
set -g @mode_indicator_copy_mode_style ""
set -g @mode_indicator_sync_prompt "${mode_separator_start}SYNC${mode_separator_end}"
set -g @mode_indicator_sync_mode_style ""
set -g @mode_indicator_empty_prompt "${mode_separator_start}TMUX${mode_separator_end}"
set -g @mode_indicator_empty_mode_style ""

set -g @plugin 'MunifTanjim/tmux-mode-indicator'

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

Successfully merging this pull request may close these issues.

2 participants