Give each window a unique id, like panes but prefixed with @. Based on

work from George Nachman.
This commit is contained in:
Nicholas Marriott
2012-01-30 09:39:34 +00:00
parent 937173ff11
commit 0e59bc75fd
6 changed files with 94 additions and 24 deletions

View File

@ -341,6 +341,7 @@ format_winlink(struct format_tree *ft, struct session *s, struct winlink *wl)
layout = layout_dump(w);
flags = window_printable_flags(s, wl);
format_add(ft, "window_id", "@%u", w->id);
format_add(ft, "window_index", "%d", wl->idx);
format_add(ft, "window_name", "%s", w->name);
format_add(ft, "window_width", "%u", w->sx);