summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-24 23:00:52 -0300
committerGabriel Schneider <[email protected]>2026-08-25 09:42:07 -0300
commit28c70cabb6ceb7e5fecfd74f6984f5a995269f01 (patch)
tree3785f3dde630e9d33725f4e76a37ea6e8803c634 /src/config.zig
parent08eadb3b46dc70a297ff89308dd1cd26237785d6 (diff)
downloadpardes-28c70cabb6ceb7e5fecfd74f6984f5a995269f01.tar.gz
pardes-28c70cabb6ceb7e5fecfd74f6984f5a995269f01.zip
builtins + config: Save reaches every pane holding text of its own, and takes a path argument
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/config.zig b/src/config.zig
index 63f97db1..3e3f2cb0 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -418,14 +418,16 @@ pub const tty_blank: enum { prompt, prompt_and_input } = .prompt;
// pane's mode is consulted: Help works in tty mode, which earns its width.
pub const topbar_str = "New Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill";
-/// the default editable tail of a pane's tag, per kind (an output buffer has
-/// no file to Save, so it gets the plain one). Terminals alone expose Filter,
-/// the pane-local theme-keyed colour projection. Save stays first on real
-/// files: `:` parks at the tail boundary, so the established `:w<Tab>`
-/// spelling still walks to Save while New remains visible on every pane.
+/// The default editable tail of a pane's tag, per kind. Save LEADS wherever the
+/// pane holds text of its own to write — a file, an output buffer, a terminal's
+/// scrollback — because `:` parks at the tail boundary and the established
+/// `:w<Tab>` spelling walks to the first word from there. Images and PDFs get
+/// the plain tail: their bytes on disk already are exactly what they are, so
+/// there is nothing of the pane's own left to save. Terminals alone expose
+/// Filter, the pane-local theme-keyed colour projection.
pub const pane_builtins_str = "New Newtty Del";
pub const file_pane_builtins_str = "Save New Newtty Del";
-pub const terminal_pane_builtins_str = "New Newtty Del Filter";
+pub const terminal_pane_builtins_str = "Save New Newtty Del Filter";
/// Columns kept clear to the RIGHT of a tagline's builtins. The path stays at
/// the left edge and the builtins are pushed over to end this far short of the
@@ -754,9 +756,10 @@ pub const find_marker = " Find /";
pub const grep_marker = " Grep /";
pub const rename_marker = " Rename /";
pub const symbol_marker = " WsSymbols /";
-/// Save on a scratch buffer or a terminal: the tail is the whole PATH to write
-/// (no `/` separator, since a path is made of them), prefilled with the pane's
-/// directory so only a filename need be typed.
+/// Save on a pane with no file of its own yet — an output buffer or a terminal:
+/// the tail is the whole PATH to write (no `/` separator, since a path is made
+/// of them), prefilled with the pane's directory so only a filename need be
+/// typed.
pub const save_marker = " Save ";
/// helix `s` / `S`. The only two markers whose word is NOT a builtin — there
/// is no Select/Split command to run from a tag, they name the key that armed