diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 00:20:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:17:28 -0300 |
| commit | 3b31e0484bd06658f10cd9165b76cb1ca3b198bd (patch) | |
| tree | d12169502b6b3a5b38be989ca4f0afd9e78a7ebd /src/Query.zig | |
| parent | 26649273cc253319fdd833923928aa883e3f884c (diff) | |
| download | pardes-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/Query.zig')
| -rw-r--r-- | src/Query.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Query.zig b/src/Query.zig index a0ccd0e5..84725085 100644 --- a/src/Query.zig +++ b/src/Query.zig @@ -1985,7 +1985,7 @@ pub fn key(p: *Pardes, id: usize, k: Key) bool { // shown where it points, the keyboard staying), Enter on a hit row lands // on it, as Enter typing does. if (t.mode == .normal) { - if (t.normal.prefix != .none or k.ctrl or k.alt or t.normal.count != 0) return false; + if (t.normal.prefix != null or k.ctrl or k.alt or t.normal.count != 0) return false; if (k.cp == 'n' or k.cp == 'N') { step(p, id, if (k.cp == 'n') 1 else -1); // The caret on the rows goes to the current row, as j and k |
