summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Command.zig128
-rw-r--r--core/config.zig13
-rw-r--r--core/tagline.zig28
-rw-r--r--core/tutor.txt21
-rw-r--r--docs/typ/README4
-rw-r--r--docs/typ/cheatsheet.typ14
-rw-r--r--docs/typ/guide.typ21
7 files changed, 177 insertions, 52 deletions
diff --git a/core/Command.zig b/core/Command.zig
index d0d8d2d3..f41d0639 100644
--- a/core/Command.zig
+++ b/core/Command.zig
@@ -2,8 +2,9 @@
//! tag after a `:` key cell, a text prompt of its own (Prompt.zig's
//! `.command`). Its rows are the answers of a question waiting on the pane
//! (SPEC §10.4), then the tag's own words in the tag's order (`Kill` after
-//! them for a terminal), marked `in the tag`, each kind ruled off, then the
-//! commands a helix hand types, each the pardes word it runs: `write`
+//! them for a terminal), marked `in the tag`, then the words of the pane's
+//! kind its tag does not show now (UX K'4), marked `for this pane`, each
+//! kind ruled off, then the commands a helix hand types, each the pardes word it runs: `write`
//! Save, `quit` Del, `theme X` Theme X, `set` and `toggle` a setting's
//! word, `reload` Get, `goto N` Look `:N`, `open F` Find F, `sort`,
//! `reflow` and `pipe` a pipe of the selections. The field filters them by
@@ -57,10 +58,11 @@ rows: Rows = .names,
/// values are its.
setting: u8 = 0,
/// The names' first rows are the waiting question's answers, then the
-/// tag's words: how many of each there were when the field was filtered
-/// (the commands' come after them).
+/// tag's words, then the pane's others: how many of each there were when
+/// the field was filtered (the commands' come after them).
answers: u8 = 0,
words: u8 = 0,
+others: u8 = 0,
/// Where the query starts in the field: Tab writes the current row from
/// there.
from: u16 = 0,
@@ -86,7 +88,8 @@ const typed = [_]Typed{
.{ .name = "toggle", .arg = "setting", .rows = .settings, .doc = "Flip a setting, or step it to its next value: its word bare." },
};
-/// The tag's words `:` lists at most, and a question's answers.
+/// The tag's words and the pane's others `:` lists at most, and a
+/// question's answers.
const max_words = 32;
const max_answers = 8;
/// A row's text at most, its name and what it says beside it.
@@ -149,6 +152,7 @@ pub fn filter(p: *Pardes, pane: *Pane) void {
c.from = 0;
c.answers = 0;
c.words = 0;
+ c.others = 0;
s.rows = .{};
s.nhits = 0;
s.ntotal = 0;
@@ -195,7 +199,13 @@ pub fn filter(p: *Pardes, pane: *Pane) void {
consider(s, q, w, c.answers + c.words);
c.words += 1;
}
- for (typed, 0..) |t, i| consider(s, q, t.name, c.answers + c.words + i);
+ var others = otherWords(pane);
+ while (others.next()) |w| {
+ if (c.words + c.others == max_words) break;
+ consider(s, q, w, c.answers + c.words + c.others);
+ c.others += 1;
+ }
+ for (typed, 0..) |t, i| consider(s, q, t.name, c.answers + c.words + c.others + i);
},
.themes => for (colors.themes, 0..) |t, i| consider(s, q, t.name, i),
.settings => {
@@ -287,6 +297,37 @@ fn tagWords(pane: *Pane) Words {
return .{ .computed = std.mem.tokenizeAny(u8, tagline.computedWords(pane), " "), .own = std.mem.tokenizeAny(u8, tagline.curTail(pane), " \t\n"), .kill = pane.isTerminal() and pane.command == null };
}
+/// The words of the pane's kind its tag does not show now (UX K'4): those
+/// its tag had before K' (tagline.kindTail: Save while clean, Term,
+/// Collapse, Follow, Def, Refs, TreeContext, Mode, Filter, ...), then a
+/// file's Undo and Redo (u, U); each runs from `:` as it ran from the tag.
+const Others = struct {
+ pane: *Pane,
+ kind: std.mem.TokenIterator(u8, .scalar),
+ edits: u8,
+
+ fn next(o: *Others) ?[]const u8 {
+ while (true) {
+ const word = o.kind.next() orelse edit: {
+ const all = [_][]const u8{ "Undo", "Redo" };
+ if (o.edits == all.len) return null;
+ o.edits += 1;
+ break :edit all[o.edits - 1];
+ };
+ var shown = tagWords(o.pane);
+ while (shown.next()) |w| {
+ if (std.mem.eql(u8, w, word)) break;
+ } else return word;
+ }
+ }
+};
+
+fn otherWords(pane: *Pane) Others {
+ // A query's text is its rows (Query.zig): none of a file's edits.
+ const edits = pane.file != null and pane.query == null;
+ return .{ .pane = pane, .kind = std.mem.tokenizeScalar(u8, tagline.kindTail(pane), ' '), .edits = if (edits) 0 else 2 };
+}
+
/// What row `at` of the rows stands for, as Tab writes it: an answer's
/// word, a tag's word, a command's name, a theme's, a setting's word, a
/// value, a file a pane shows, a pipe; null past them (a damaged image's).
@@ -299,6 +340,8 @@ fn rowOf(p: *Pardes, pane: *Pane, c: *const Command, at: usize) ?[]const u8 {
var words = tagWords(pane);
var i: usize = c.answers;
while (words.next()) |w| : (i += 1) if (i == at) return w;
+ var others = otherWords(pane);
+ while (others.next()) |w| : (i += 1) if (i == at) return w;
return null;
},
.themes => return if (at < colors.themes.len) colors.themes[at].name else null,
@@ -322,8 +365,9 @@ fn answerAt(p: *const Pardes, pane: *const Pane, c: *const Command, at: usize) ?
/// The command row `at` of the names is, by its index in `typed`.
fn typedAt(c: *const Command, at: usize) ?usize {
- if (c.rows != .names or at < @as(usize, c.answers) + c.words) return null;
- const t = at - c.answers - c.words;
+ const before = @as(usize, c.answers) + c.words + c.others;
+ if (c.rows != .names or at < before) return null;
+ const t = at - before;
return if (t < typed.len) t else null;
}
@@ -571,9 +615,9 @@ pub fn steps(p: *Pardes, arena: std.mem.Allocator, out: []Band.Step) !usize {
_ = Names.match(q, t, std.ascii.lowerString(&low, t), 0, &marks, &nmarks);
for (marks[0..nmarks]) |*m| m.* += lead;
}
- // The answers' last and the tag's last word ruled off from what is
- // under them.
- const last = c.rows == .names and i + 1 < s.nhits and (at + 1 == c.answers or at + 1 == @as(usize, c.answers) + c.words);
+ // The answers' last, the tag's last word and the pane's last other
+ // ruled off from what is under them.
+ const last = c.rows == .names and i + 1 < s.nhits and (at + 1 == c.answers or at + 1 == @as(usize, c.answers) + c.words or at + 1 == @as(usize, c.answers) + c.words + c.others);
row.* = .{ .text = text.items, .on = i == s.rows.at, .key = if (ans != null) 1 else 0, .marks = try arena.dupe(u16, marks[0..nmarks]), .index = @intCast(i), .under = last };
}
out[0] = .{ .rows = rows };
@@ -582,14 +626,14 @@ pub fn steps(p: *Pardes, arena: std.mem.Allocator, out: []Band.Step) !usize {
return 2;
}
-/// What row `at` says on its right: a tag's word `in the tag`, what a
-/// command takes, the theme in use, a setting's value now (its line of
+/// What row `at` says on its right: a tag's word `in the tag`, the pane's
+/// others `for this pane`, what a command takes, the theme in use, a setting's value now (its line of
/// the settings' text `now`), the value it has.
fn saidOf(p: *Pardes, arena: std.mem.Allocator, c: *const Command, at: usize, name: []const u8, now: []const u8) ![]const u8 {
switch (c.rows) {
.names => {
if (at < c.answers) return "answers the question";
- const t = typed[typedAt(c, at) orelse return "in the tag"];
+ const t = typed[typedAt(c, at) orelse return wordSaid(c, at)];
return if (t.arg.len > 0) try std.fmt.allocPrint(arena, "<{s}>", .{t.arg}) else "";
},
.themes => return if (p.custom_theme == null and at == p.settings.theme) "in use" else "",
@@ -607,6 +651,11 @@ fn saidOf(p: *Pardes, arena: std.mem.Allocator, c: *const Command, at: usize, na
}
}
+/// What a word row says: in the tag, or one of the pane's others.
+fn wordSaid(c: *const Command, at: usize) []const u8 {
+ return if (at < @as(usize, c.answers) + c.words) "in the tag" else "for this pane";
+}
+
/// Setting `k`'s value now, as its word is written: `on`, `walk`.
fn valueNow(p: *Pardes, k: u8, buf: []u8) []const u8 {
const st = config.Settings.settings[@min(k, config.Settings.settings.len - 1)];
@@ -648,7 +697,7 @@ fn docRows(p: *Pardes, arena: std.mem.Allocator, pane: *Pane, c: *const Command,
return rows;
}
const name = rowOf(p, pane, c, at) orelse "";
- rows[0] = .{ .text = try std.fmt.allocPrint(arena, "{s} in the tag", .{name}), .key = @intCast(name.len), .index = none };
+ rows[0] = .{ .text = try std.fmt.allocPrint(arena, "{s} {s}", .{ name, wordSaid(c, at) }), .key = @intCast(name.len), .index = none };
rows[1] = .{ .text = if (std.meta.stringToEnum(pardes.Builtin, name)) |b| builtins.registry.doc(b).text else "A word of this pane's tag: ⏎ runs it, as B2 on it does.", .index = none };
return rows;
}
@@ -704,7 +753,7 @@ test ": opens a field in the tag after its key cell: the tag's own words first,
try std.testing.expectEqual(Prompt.Op.command, s.prompt.op);
try std.testing.expectEqual(panes.Pane.Focus.body, pane.focus);
// The head: its key cell, the field, the count, the hints.
- try std.testing.expect(has(try tagOf(p), ": 14 commands Tab complete · ⏎ run · C-r history · esc"));
+ try std.testing.expect(has(try tagOf(p), ": 18 commands Tab complete · ⏎ run · C-r history · esc"));
// The rows: the tag's words in its order, `in the tag`, the last ruled
// off; then the commands, each what it takes.
try std.testing.expect(has(try bandRow(p, a, 0), "▶ Save "));
@@ -715,8 +764,11 @@ test ": opens a field in the tag after its key cell: the tag's own words first,
const band = (try Band.of(p, a, pane, p.view().active)).?;
const first = band.steps[0].rows;
try std.testing.expect(first[2].under and !first[1].under);
- try std.testing.expect(has(first[3].text, "write w"));
- try std.testing.expect(has(first[5].text, "theme") and has(first[5].text, "<theme>"));
+ // Then its kind's words the tag does not show (UX K'4), ruled off too.
+ try std.testing.expect(has(first[3].text, "Term for this pane"));
+ try std.testing.expect(first[6].under and has(first[6].text, "Redo"));
+ try std.testing.expect(has(first[7].text, "write w"));
+ try std.testing.expect(has(first[9].text, "theme") and has(first[9].text, "<theme>"));
// Typing filters both, by the scorer, in their order.
typeKeys(p, "th");
try std.testing.expect(has(try tagOf(p), ": th = Exec th 1 command "));
@@ -995,3 +1047,43 @@ test "a question waiting on the pane lists its answers first, each after its key
try std.testing.expect(has(try bandRow(p, a, 0), "▶ Save "));
p.update(.{ .key = .{ .cp = Key.escape } });
}
+
+test ": lists the words of the pane's kind its tag does not show now, `for this pane`: Save while the file is clean, Collapse, Undo; Enter runs any builtin as B2 does, Joincol too (UX K'4)" {
+ const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 160, .rows = 40 });
+ defer p.deinit();
+ var frame = std.heap.ArenaAllocator.init(std.testing.allocator);
+ defer frame.deinit();
+ const a = frame.allocator();
+ const pane = try p.setTestFile("one\n");
+ const id = p.view().active;
+ // A file reading, clean: its tag's word `Del` (`Keep` is its walk's,
+ // after its path); the words its kind had before UX K' and a file's
+ // edits are the rest, in that order.
+ typeKeys(p, ":");
+ const s = &p.view().tag_state;
+ try std.testing.expectEqual(@as(u8, 1), s.prompt.command.words);
+ try std.testing.expectEqual(@as(u8, 6), s.prompt.command.others);
+ const rows = (try Band.of(p, a, pane, id)).?.steps[0].rows;
+ try std.testing.expect(has(rows[0].text, "Del in the tag") and rows[0].under);
+ try std.testing.expect(has(rows[1].text, "Save for this pane"));
+ try std.testing.expect(has(rows[3].text, "Collapse for this pane"));
+ try std.testing.expect(has(rows[5].text, "Undo for this pane"));
+ try std.testing.expect(has(rows[6].text, "Redo for this pane") and rows[6].under);
+ try std.testing.expect(has(rows[7].text, "write w"));
+ // Its doc is the builtin's, said for this pane.
+ typeKeys(p, "Coll");
+ try std.testing.expect(has(try bandRow(p, a, 0), "▶ Collapse "));
+ try std.testing.expect(has(try bandRow(p, a, 0), "Collapse for this pane"));
+ p.update(.{ .key = .{ .cp = Key.escape } });
+ // Enter runs the line as B2 runs a word: Joincol, in no pane's tag,
+ // from two columns folds this one into the one on its right.
+ try std.testing.expect(p.executeBuiltinLine(id, "Newcol"));
+ tagline.exitHeader(p);
+ p.view().active = id;
+ p.sync();
+ try std.testing.expectEqual(@as(usize, 2), p.view().ncol);
+ typeKeys(p, ":Joincol");
+ p.update(.{ .key = .{ .cp = Key.enter } });
+ try std.testing.expectEqual(@as(usize, 1), p.view().ncol);
+ try std.testing.expectEqualStrings("one\n", pane.file.?.content);
+}
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;
}
diff --git a/core/tagline.zig b/core/tagline.zig
index b05a3d4a..8e8c5d2d 100644
--- a/core/tagline.zig
+++ b/core/tagline.zig
@@ -161,15 +161,21 @@ fn headerWidth(p: *const Pardes, t: *const Text) usize {
/// column 0's tag from the inset, `column` cells (its text and its caret's
/// cell; none but while layout.columnInWindowRow), and the window's tag
/// from `words` to the right edge, its last cell the caret's, a server's
-/// progress after its text while one runs (draw.zig). Draw, the mouse,
-/// workspaceBlank and a pixel shell's grid read it.
+/// progress after its text while one runs and the row has room for it
+/// (draw.zig). Draw, the mouse, workspaceBlank and a pixel shell's grid
+/// read it.
pub const WindowRow = struct { column: u16, words: u16 };
pub fn windowRow(p: *const Pardes) WindowRow {
const v = p.view();
const inset = @min(TAG_TEXT_INSET, v.screen_w);
const column = if (layout.columnInWindowRow(p)) @min(cellsFor(p, headerWidth(p, &v.col_tags[0]) + 1), v.screen_w - inset) else 0;
var glyphs = headerWidth(p, &p.global_tag) + 1;
- if (sessionProgress(p)) |said| glyphs += 2 + progressWidth(p, said);
+ // The progress where the row has room for it beside the column's
+ // words; else it is not drawn (draw.zig), and moves nothing.
+ if (sessionProgress(p)) |said| {
+ const with = glyphs + 2 + progressWidth(p, said);
+ if (cellsFor(p, with) <= v.screen_w -| (inset + column)) glyphs = with;
+ }
return .{ .column = column, .words = @max(v.screen_w -| cellsFor(p, glyphs), inset + column) };
}
@@ -1072,3 +1078,19 @@ test "a dump of a build before UX K' restores a header's old default own text as
try std.testing.expectEqualStrings(config.topbar_terminal_str ++ " Mine", kept.global_tag.own.?);
try std.testing.expectEqualStrings("New Term New Mine", columnTag(kept, 0));
}
+
+test "a server's progress goes after the window's words where the row has room for it, and moves them by nothing where it has not (UX K'2)" {
+ const p = try Pardes.init(std.testing.allocator, .{ .cols = 84, .rows = 20, .tty_only = true });
+ defer p.deinit();
+ _ = try p.setTestFile("one\n");
+ const alone = windowRow(p).words;
+ try std.testing.expectEqual(@as(u16, 84 - "Find Grep Newcol Help Exit ".len - 1), alone);
+ // Too long for the row beside the column's words: not drawn, and the
+ // words stay where they were.
+ _ = Messages.say(p, .progress, pardes.MAX_PANES, "lsp zls ready \u{2014} /tmp/claude-1000/a/long/session/directory");
+ try std.testing.expectEqual(alone, windowRow(p).words);
+ // Short: after the words, two cells between, the words left by as
+ // much (`⋯ zls 3/9`, 9 cells).
+ _ = Messages.say(p, .progress, pardes.MAX_PANES, "zls 3/9");
+ try std.testing.expectEqual(alone - 2 - 9, windowRow(p).words);
+}
diff --git a/core/tutor.txt b/core/tutor.txt
index 5b0fd23d..62f71402 100644
--- a/core/tutor.txt
+++ b/core/tutor.txt
@@ -59,18 +59,19 @@
The workspace tag, a column's, and a file's, a terminal's, a PDF's
and an image's:
-| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
-| New Term Find Grep Joincol Delcol
-| Save Term Collapse Follow Del
-| Term Save Mode Filter Collapse Del
-| Term PdfSections PdfTint PdfFit Collapse Del
-| Term Collapse Follow Del
+| Find Grep Newcol Help Exit
+| New Term Joincol Delcol
+| Save Undo Del
+| Del Term
+| PdfSections PdfTint PdfFit Del
+| Del
- 1. Press : here: the keyboard goes to this pane's tag, on `Save`.
- Press A, type a space and Help, press Esc, then Tab: `Help`
+ 1. Press : twice here: the keyboard goes to this pane's tag, after
+ its words. Press i, type Help, press Esc, then Tab: `Help`
runs and its list takes the keyboard. Esc brings you back.
- 2. Click `Collapse` in this tag: the pane folds to its tag. Click
- it again.
+ 2. A tag shows the words that act now; its kind's others run from
+ :, listed for this pane. Press :, type Coll, press Enter: the
+ pane folds to its tag. The same again unfolds it.
3. Drag the box left of the tag down a few rows, then back.
-> Guide: Tags
diff --git a/docs/typ/README b/docs/typ/README
index 88f24343..0f82ae98 100644
--- a/docs/typ/README
+++ b/docs/typ/README
@@ -65,8 +65,8 @@ new function instead.
chord(..bs) a chord: the first button held, each next clicked.
#chord("B2", "B1") #chord("B1", "B2", "B3")
tag(words, path:)
- a whole default tagline; words must be a default tag.
- #tag("Save Term Collapse Del", path: "/home/me/notes.txt")
+ a whole tagline at rest; words must be a tag's own.
+ #tag("Save Undo Del", path: "/home/me/notes.txt")
addr(a) a look address. #addr("file:12:5")
file(p) a 9P path. #file("pane/N/addr")
cmd(c) a shell line, as a block. #cmd("echo Save > $m/pane/$n/ctl")
diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ
index 4f55b514..3b815592 100644
--- a/docs/typ/cheatsheet.typ
+++ b/docs/typ/cheatsheet.typ
@@ -24,11 +24,13 @@ Over a program that takes the mouse, Shift swaps: #btn("B1", shift: true) select
One button: Alt/Option-click is #btn("B2"), Cmd/Super-click #btn("B3"), sweeps too (a terminal passes only Alt); Ctrl-click is a definition; a program that takes the mouse gets the plain click.
== Tags
-#tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit")
-#tag("New Term Find Grep Joincol Delcol")
-#tag("Save Term Collapse Follow Del", path: "/home/me/notes.txt")
-#tag("Term+bash Save Mode Filter Collapse Del", path: "/home/me/src")
-#tag("Term PdfSections PdfTint PdfFit Collapse Del", path: "[1/12] … manual.pdf")
+#tag("Find Grep Newcol Help Exit")
+#tag("New Term Joincol Delcol")
+#tag("Save Undo Del", path: "/home/me/notes.txt")
+#tag("Del Term+bash", path: "/home/me/src")
+#tag("PdfSections PdfTint PdfFit Del", path: "[1/12] … manual.pdf")
+- A tag's first words act now (#word("Save") and #word("Undo") once the text changes); what you type goes after them. The rest of its kind's words run from `:`, listed for this pane, and typed anywhere.
+- One column: its #word("New") #word("Term") sit at the window row's left; a second column brings the column tags' row.
- #word("Del") over unsaved text refuses once; again discards. #word("Del") `j`: rows below. #key("SPC d") between two panes takes #key("k") (rows above) or #key("j") (below), asking only if you pause.
- #word("Undo") #word("Redo") #word("Edit") #word("Mode") work typed anywhere. #doc("tags")
@@ -114,7 +116,7 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla
== Terminals and commands
- #key("Ctrl-b"): raw (`$`) or normal. #word("Mode") cycles raw, normal, insert. #word("Filter"), #word("Term+bash").
-- #btn("B2") on a non-builtin line runs it in a *command pane*: #tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0")
+- #btn("B2") on a non-builtin line runs it in a *command pane*: #tag("Del", path: "/home/me/src (make) exit 0")
- #word("Kill") `make` stops it; #word("Exit") quits. #word("Repl") `python`: `.py` clicks go to it.
== Reviewing diffs
diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ
index 66d3bb00..f528d8a2 100644
--- a/docs/typ/guide.typ
+++ b/docs/typ/guide.typ
@@ -103,13 +103,18 @@ the registers. #key("SPC y") and #key("SPC p") use the system clipboard.
= Tags <tags>
-#tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit")
-#tag("New Term Find Grep Joincol Delcol")
-#tag("Save Term Collapse Follow Del", path: "/home/me/notes.txt")
+#tag("Find Grep Newcol Help Exit")
+#tag("New Term Joincol Delcol")
+#tag("Save Undo Del", path: "/home/me/notes.txt")
-A tag is text with undo. Type `make` into one and #word("Exec") it, or
-delete the words you never use. Any word runs from any tag: #word("Exit")
-in a pane's tag quits too.
+A tag is text with undo. Its first words are the ones that act now, made
+again as the pane changes: #word("Save") and #word("Undo") come with an
+edit, #word("Keep") while a file reads. What you type goes after them and
+stays: type `make` into one and #word("Exec") it. Any word runs from any
+tag: #word("Exit") in a pane's tag quits too. The words a tag does not
+show run from `:`, listed for this pane, and typed anywhere. With one
+column its #word("New") #word("Term") sit at the window row's left; a
+second column brings a row of column tags.
#pairs(
[#key(":")], [the keyboard to the tag, on #word("Save") the first time; #key("Tab") runs it, #key(":") comes back],
@@ -136,7 +141,7 @@ A file's text and tag run in its directory: `make` from `README` at the
project root is right, from `src/main.c` it is not. The keyboard stays
where it was. The command pane's tag ends in `running`, then `exit N`:
-#tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0")
+#tag("Del", path: "/home/me/src (make) exit 0")
Click into the command pane: #key("n") selects the next `file:line`,
#key("Enter") opens it, and #key("n") from there goes on to the next error.
@@ -242,7 +247,7 @@ do nothing.
= Terminals <terminals>
-#tag("Term+bash Save Mode Filter Collapse Del", path: "/home/me/src")
+#tag("Del Term+bash", path: "/home/me/src")
- #word("Term") opens a terminal in the pane's directory, #key("Alt-n") one in
the session's directory; #word("Term+bash") picks the shell.