Nicholas Marriott <nicholas.marri...@gmail.com> writes: > If it makes things significantly simpler to have one define, I think I > would consider trimming bits from list-windows and force people to add > them back with -F rather than adding them to choose-windows.
Can we at least have this? (Note: includes the fix previously mentioned on IRC to unbreak choose-window.) diff --git a/cmd-choose-window.c b/cmd-choose-window.c index b4ac330..a02d758 100644 --- a/cmd-choose-window.c +++ b/cmd-choose-window.c @@ -72,7 +72,8 @@ cmd_choose_window_exec(struct cmd *self, struct cmd_ctx *ctx) return (0); if ((template = args_get(args, 'F')) == NULL) - template = DEFAULT_WINDOW_TEMPLATE; + template = DEFAULT_WINDOW_TEMPLATE \ + " \"#{pane_title}\""; cur = idx = 0; RB_FOREACH(wm, winlinks, &s->windows) { @@ -84,9 +85,10 @@ cmd_choose_window_exec(struct cmd *self, struct cmd_ctx *ctx) format_add(ft, "line", "%u", idx); format_session(ft, s); format_winlink(ft, s, wm); + format_window_pane(ft, wm->window->active); line = format_expand(ft, template); - window_choose_add(wl->window->active, idx, "%s", line); + window_choose_add(wl->window->active, wm->idx, "%s", line); xfree(line); format_free(ft); ------------------------------------------------------------------------------ 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