summaryrefslogtreecommitdiff
path: root/src/edit.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 00:20:16 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:17:28 -0300
commit3b31e0484bd06658f10cd9165b76cb1ca3b198bd (patch)
treed12169502b6b3a5b38be989ca4f0afd9e78a7ebd /src/edit.zig
parent26649273cc253319fdd833923928aa883e3f884c (diff)
downloadpardes-3b31e0484bd06658f10cd9165b76cb1ca3b198bd.tar.gz
pardes-3b31e0484bd06658f10cd9165b76cb1ca3b198bd.zip
modal, normal, pdf_view, Text, syntax, edit: one key layer: an Action is the role the key named and what it was given (a count, a literal, ] or [), not a second union of sixteen sub-enums the roles were mapped onto one if at a time; a context's roles are tried in their enum order, the pending prefix and m sub-key are roles too, the text's executor and the PDF's switch flat on the role, and pdf_view.applyNormal(core, pane, action) does what a page cannot (Last, the leader, the tag, a search) instead of handing a seven-value enum back; no key does anything new; Text.normal's walked shape changes (wire semantics); helix-keys.md says how the keys are read
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/edit.zig')
-rw-r--r--src/edit.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.zig b/src/edit.zig
index 41859273..93a6f308 100644
--- a/src/edit.zig
+++ b/src/edit.zig
@@ -182,7 +182,7 @@ pub fn clipYank(p: *Pardes, pane: *Pane, main_only: bool) void {
return;
};
if (pane.body.nsel > 0 and !main_only) {
- normal.replaySels(p, &pane.body, .{ .normal = .{ .edit = .{ .kind = .yank, .count = 1 } } });
+ normal.replaySels(p, &pane.body, .{ .normal = .{ .role = .yank } });
} else {
const others = pane.body.nsel;
pane.body.nsel = 0;
@@ -1020,7 +1020,7 @@ fn insertEdit(p: *Pardes, t: *Text, key: Key) void {
const pane = t.pane() orelse break :smart;
const f = pane.file orelse break :smart;
if (!syntax.supportsPath(f.path)) break :smart;
- return normal.nodeSelect(p, pane, t, .parent_end);
+ return normal.nodeSelect(p, pane, t, .parent_node_end);
}
insertTab(p, t);
},