From 0ff1fc99eb870f8a1e714a71c1a853066737c822 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 20:54:21 -0300 Subject: rename: the terminal frontend is the tui (-Dplatform=tui, src/tui/tui.zig, --tui with --tty kept as its old spelling, the process tests' backend .tui and --backend=tui, docs/typ/builtins-tui.json, the Settings report's platform), and the builtin Tty is Term (its registry entry, SPC n t, every default tag, the docs, tests and snap scripts), Tty still run as Term through exec.acme_words, Tty+fish too on a tag and a ctl; tty as a pane's raw mode and as the OS's terminal unchanged Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/config.zig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/config.zig') diff --git a/src/config.zig b/src/config.zig index 603e51f2..4f2802cc 100644 --- a/src/config.zig +++ b/src/config.zig @@ -100,7 +100,7 @@ pub const leader_path = paths: { .ClipReplace = "R", .Save = "fs", .New = "fn", - .Tty = "nt", + .Term = "nt", .Find = "ff", .Recent = "fr", .Grep = "fg", @@ -341,23 +341,23 @@ pub const child_term_program = "pardes"; pub const topbar_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit"; -pub const pane_builtins_str = "Tty Collapse Del"; -pub const pdf_pane_builtins_str = "Tty PdfSections PdfTint PdfFit Collapse Del"; -pub const file_pane_builtins_str = "Save Tty Collapse Del"; +pub const pane_builtins_str = "Term Collapse Del"; +pub const pdf_pane_builtins_str = "Term PdfSections PdfTint PdfFit Collapse Del"; +pub const file_pane_builtins_str = "Save Term Collapse Del"; /// After a file's, on one a language server speaks for. pub const lsp_pane_builtins_str = "Def Refs"; /// A diff's (a .diff, a .patch, a +Pager holding one): Diff. -pub const diff_pane_builtins_str = "Save Tty Diff Collapse Del"; +pub const diff_pane_builtins_str = "Save Term Diff Collapse Del"; /// A +Pager's (`pardes -`): Filter, as a terminal's. -pub const pager_pane_builtins_str = "Save Tty Filter Collapse Del"; +pub const pager_pane_builtins_str = "Save Term Filter Collapse Del"; /// A +Pager holding a diff (`git show`): Diff too. -pub const pager_diff_pane_builtins_str = "Save Tty Filter Diff Collapse Del"; +pub const pager_diff_pane_builtins_str = "Save Term Filter Diff Collapse Del"; /// A +Diff's: Diff again, the diff it stacks as text. -pub const diff_view_builtins_str = "Save Tty Diff Collapse Del"; -pub const terminal_pane_builtins_str = "Tty Save Mode Filter Collapse Del"; +pub const diff_view_builtins_str = "Save Term Diff Collapse Del"; +pub const terminal_pane_builtins_str = "Term Save Mode Filter Collapse Del"; pub const command_pane_builtins_str = "Kill Save Collapse Del"; /// A directory pane's (Dir.zig): Get reads it again, as acme's does. -pub const dir_pane_builtins_str = "Get Tty Collapse Del"; +pub const dir_pane_builtins_str = "Get Term Collapse Del"; // Each mode badge is one codepoint. pub const tag_normal = " "; @@ -1965,7 +1965,7 @@ pub const Runtime = struct { var defaults: Runtime = .{}; var defaults_context = context; defaults_context.startup_config_path = null; - defaults_context.platform = "tty"; + defaults_context.platform = "tui"; defaults_context.hover_delay_frames = null; defaults_context.native_images = false; defaults_context.capabilities = .{ @@ -2316,7 +2316,7 @@ test "docs/typ names only words, keys and default tags that exist" { var found: [3]std.ArrayList([]const u8) = @splat(.empty); // The arena's: gone with this test, so no later test reads it. defer doc_typ.other_build = ""; - for ([_][]const u8{ "builtins-tty.json", "builtins-gui.json" }) |f| { + for ([_][]const u8{ "builtins-tui.json", "builtins-gui.json" }) |f| { const text = dir.readFileAlloc(io, f, gpa, .limited(1 << 20)) catch continue; doc_typ.other_build = try std.mem.concat(gpa, u8, &.{ doc_typ.other_build, text }); } -- cgit v1.3