diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-23 06:30:15 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-23 06:30:15 +0100 |
commit | 106e5d07beaacaa977372f8b6a0bcac5f981545b (patch) | |
tree | b62febbdd1133da0c682fc0a4df325156a810373 /window-tree.c | |
parent | 63f2034f290637a512297445ed03d7f4e8c90dd2 (diff) | |
download | rtmux-106e5d07beaacaa977372f8b6a0bcac5f981545b.tar.gz rtmux-106e5d07beaacaa977372f8b6a0bcac5f981545b.tar.bz2 rtmux-106e5d07beaacaa977372f8b6a0bcac5f981545b.zip |
Tweak the default choose modes formats:
- Only show pane title if it is not default and not empty.
- Add a prettier time format and use that instead of long ctime().
- Remove clutter and change the order.
Diffstat (limited to 'window-tree.c')
-rw-r--r-- | window-tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/window-tree.c b/window-tree.c index 095520e2..d245a715 100644 --- a/window-tree.c +++ b/window-tree.c @@ -38,13 +38,13 @@ static void window_tree_key(struct window_mode_entry *, #define WINDOW_TREE_DEFAULT_FORMAT \ "#{?pane_format," \ "#{?pane_marked,#[reverse],}" \ - "#{pane_current_command}#{?pane_active,*,}#{?pane_marked,M,} \"#{pane_title}\"" \ + "#{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} panes)" \ - "#{?#{==:#{window_panes},1}, \"#{pane_title}\",}" \ + "#{window_name}#{window_flags}" \ + "#{?#{&&:#{==:#{window_panes},1},#{&&:#{pane_title},#{!=:#{pane_title},#{host_short}}}},: \"#{pane_title}\",}" \ "," \ "#{session_windows} windows" \ "#{?session_grouped, " \ |