Add switch-mode a fast switcher with fuzzy searching, bound to Tab (for

windows) or BTab (S-Tab, for sessions) by default.
This commit is contained in:
nicm
2026-06-26 14:40:30 +00:00
parent 973c4ab569
commit 575f84ce0f
12 changed files with 1467 additions and 11 deletions

View File

@@ -794,8 +794,8 @@ mode_tree_no_tag(struct mode_tree_item *mti)
}
/*
* Set the alignment of mti->name: -1 to align left, 0 (default) to not align,
* or 1 to align right.
* Set the alignment of the item name: -1 to align left, 0 (default) to not
* align, or 1 to align right.
*/
void
mode_tree_align(struct mode_tree_item *mti, int align)
@@ -1144,6 +1144,7 @@ mode_tree_set_prompt(struct mode_tree_data *mtd, struct client *c,
mtp = xcalloc(1, sizeof *mtp);
mtp->mtd = mtd;
mtp->c = c;
mtp->inputcb = inputcb;
mtp->freecb = freecb;
mtp->data = data;