Handle OSC 7 (a VTE extension) and put the result in a new format (pane_path).

This commit is contained in:
nicm
2019-11-15 11:16:53 +00:00
parent 1f966c495c
commit f3dc38dcae
5 changed files with 23 additions and 4 deletions

View File

@ -2267,6 +2267,7 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
format_add(ft, "pane_width", "%u", wp->sx);
format_add(ft, "pane_height", "%u", wp->sy);
format_add(ft, "pane_title", "%s", wp->base.title);
format_add(ft, "pane_path", "%s", wp->base.path);
format_add(ft, "pane_id", "%%%u", wp->id);
format_add(ft, "pane_active", "%d", wp == w->active);
format_add(ft, "pane_input_off", "%d", !!(wp->flags & PANE_INPUTOFF));