summaryrefslogtreecommitdiff
path: root/core/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/config.zig')
-rw-r--r--core/config.zig13
1 files changed, 8 insertions, 5 deletions
diff --git a/core/config.zig b/core/config.zig
index 5df9b1b1..cc4edd18 100644
--- a/core/config.zig
+++ b/core/config.zig
@@ -1575,13 +1575,16 @@ const doc_typ = struct {
if (w.end > 0) w.writeByte(' ') catch return false;
w.writeAll(x[0 .. std.mem.indexOfScalar(u8, x, '+') orelse x.len]) catch return false;
}
- // Both rows: the docs and the tutor show the window's and the terminal's.
- const tags = [_][]const u8{ topbar_window_str, topbar_terminal_str, @import("tagline.zig").column_tag_default, pane_builtins_str, file_pane_builtins_str, diff_pane_builtins_str, pager_pane_builtins_str, pager_diff_pane_builtins_str, diff_view_builtins_str, terminal_pane_builtins_str, command_pane_builtins_str, dir_pane_builtins_str };
+ // The window row's and the column tags' words (UX K'2), and K'3's
+ // computed words of a pane at rest: a file reading, held, edited,
+ // a +New typed into, a running command, a directory, a pager, a
+ // terminal with its shell's word.
+ const tags = [_][]const u8{ window_words_str, column_words_str, columns_words_str, "Keep Del", "Del", "Save Undo Del", "Undo Del", "Kill Del", "Get Del", "Filter Del", "Del Term" };
for (tags) |d| if (std.mem.eql(u8, d, w.buffered())) return true;
- // A kind's pane's: Term, its addon's words, Collapse Del (Kind.zig).
+ // A kind's pane's: its addon's words, then Del (Kind.zig).
const shown = w.buffered();
- if (!std.mem.startsWith(u8, shown, "Term ") or !std.mem.endsWith(u8, shown, " Collapse Del")) return false;
- var mid = std.mem.tokenizeScalar(u8, shown["Term ".len .. shown.len - " Collapse Del".len], ' ');
+ if (!std.mem.endsWith(u8, shown, " Del")) return false;
+ var mid = std.mem.tokenizeScalar(u8, shown[0 .. shown.len - " Del".len], ' ');
while (mid.next()) |x| {
if (!addonWord(x)) return false;
}