选择树默认格式

选择树默认格式

当从一个会话切换到另一个会话时,<prefix> s我想在会话名称旁边打印 git 分支。

我知道如何更新该“窗口”的格式(已解释这里),但我不想无意中删除某些东西。

我的问题:
tmux 选择树的默认格式是什么?

答案1

我终于找到了这里,如果其他人正在寻找它

#define WINDOW_TREE_DEFAULT_FORMAT \
"#{?pane_format," \
    "#{?pane_marked,#[reverse],}" \
    "#{pane_current_command}#{?pane_active,*,}#{?pane_marked,M,}" \
    "#{?#{&&:#{pane_title},#{!=:#{pane_title},#{host_short}}},: \"#{pane_title}\",}" \
"," \
    "#{?window_format," \
        "#{?window_marked_flag,#[reverse],}" \
        "#{window_name}#{window_flags}" \
        "#{?#{&&:#{==:#{window_panes},1},#{&&:#{pane_title},#{!=:#{pane_title},#{host_short}}}},: \"#{pane_title}\",}" \
    "," \
        "#{session_windows} windows" \
        "#{?session_grouped, " \
            "(group #{session_group}: " \
            "#{session_group_list})," \
        "}" \
        "#{?session_attached, (attached),}" \
    "}" \
"}"

相关内容