Skip to content

Dynamic separators in status bars #799

Description

@lylebrown

Hello,

I would like to have the option to dynamically show status bars only if their contents are not empty.

As an example, with the following, I can show the contents of #(~/utils/gitmux #{pane_current_path}) only if it exists, but there is an empty status bar if it is empty. (I have confirmed this is working properly by putting test variables in both the true and false operand results.)
tmux_conf_theme_status_left=" ❐ #S |#{?#(~/utils/gitmux #{pane_current_path}),#(~/utils/gitmux #{pane_current_path}),}"

Image

If I try to input a pane dynamically, with the following, the character is rendered as part of the string in the status bar.
tmux_conf_theme_status_left=" ❐ #S #{?#(~/utils/gitmux #{pane_current_path}),|#(~/utils/gitmux #{pane_current_path}),}"

Image

I've tried some escaping techniques with no success, but let me know if there's another I should try.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions