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}),}"
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}),}"
I've tried some escaping techniques with no success, but let me know if there's another I should try.
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}),}"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}),}"I've tried some escaping techniques with no success, but let me know if there's another I should try.