Since key-combinations can mark entries, rather than making this different from the template, add the "line" marker to the template, and allow users to override that with -F in some commands to turn it off if wanted. --- trunk/tmux.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/trunk/tmux.h b/trunk/tmux.h index 39d1489..ea44104 100644 --- a/trunk/tmux.h +++ b/trunk/tmux.h @@ -89,32 +89,32 @@ extern char **environ; #endif /* Default format templates. */ -#define DEFAULT_BUFFER_LIST_TEMPLATE \ - "#{line}: #{buffer_size} bytes: \"#{buffer_sample}\"" -#define DEFAULT_CLIENT_TEMPLATE \ - "#{client_tty}: #{session_name} " \ - "[#{client_width}x#{client_height} #{client_termname}]" \ +#define DEFAULT_BUFFER_LIST_TEMPLATE \ + "(#{line}) #{line}: #{buffer_size} bytes: \"#{buffer_sample}\"" +#define DEFAULT_CLIENT_TEMPLATE \ + "(#{line}) #{client_tty}: #{session_name} " \ + "[#{client_width}x#{client_height} #{client_termname}]" \ "#{?client_utf8, (utf8),} #{?client_readonly, (ro),}" -#define DEFAULT_DISPLAY_MESSAGE_TEMPLATE \ - "[#{session_name}] #{window_index}:" \ - "#{window_name}, current pane #{pane_index} " \ +#define DEFAULT_DISPLAY_MESSAGE_TEMPLATE \ + "[#{session_name}] #{window_index}:" \ + "#{window_name}, current pane #{pane_index} " \ "- (%H:%M %d-%b-%y)" -#define DEFAULT_FIND_WINDOW_TEMPLATE \ - "#{window_index}: #{window_name} " \ - "[#{window_width}x#{window_height}] " \ +#define DEFAULT_FIND_WINDOW_TEMPLATE \ + "(#{line}) #{window_index}: #{window_name} " \ + "[#{window_width}x#{window_height}] " \ "(#{window_panes} panes) #{window_find_matches}" #define DEFAULT_SESSION_TEMPLATE \ - "#{session_name}: #{session_windows} windows " \ - "(created #{session_created_string}) " \ - "[#{session_width}x#{session_height}]" \ - "#{?session_grouped, (group ,}" \ - "#{session_group}#{?session_grouped,),}" \ + "(#{line}) #{session_name}: #{session_windows} windows " \ + "(created #{session_created_string}) " \ + "[#{session_width}x#{session_height}]" \ + "#{?session_grouped, (group ,}" \ + "#{session_group}#{?session_grouped,),}" \ "#{?session_attached, (attached),}" -#define DEFAULT_WINDOW_TEMPLATE \ - "#{window_index}: #{window_name}#{window_flags} " \ - "(#{window_panes} panes) " \ +#define DEFAULT_WINDOW_TEMPLATE \ + "(#{line}) #{window_index}: #{window_name}#{window_flags} " \ + "(#{window_panes} panes) " \ "[#{window_width}x#{window_height}]" -#define DEFAULT_PANE_INFO_TEMPLATE \ +#define DEFAULT_PANE_INFO_TEMPLATE \ "#{session_name}:#{window_index}.#{pane_index}" /* Bell option values. */ -- 1.7.10 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users