summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-24 22:18:24 -0300
committerGabriel Schneider <[email protected]>2026-08-25 09:42:07 -0300
commit08eadb3b46dc70a297ff89308dd1cd26237785d6 (patch)
tree66152ea18a3639dd216b6e658d9cd5503201afdc /src/config.zig
parentc3d0b84b7961ae26d2d654e7120821cc2d83d20d (diff)
downloadpardes-08eadb3b46dc70a297ff89308dd1cd26237785d6.tar.gz
pardes-08eadb3b46dc70a297ff89308dd1cd26237785d6.zip
syntax + pdf_pane + file_pane: prose grammars paint, pdf Esc cancels, gj/gk walk wrapped rows
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig
index 685d083a..63f97db1 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -328,6 +328,16 @@ pub const topbar_down: []const Chord = &.{.{ .cp = 'j' }};
pub const topbar_left: []const Chord = &.{.{ .cp = 'h' }};
pub const topbar_right: []const Chord = &.{.{ .cp = 'l' }};
+/// LEAVE the pane you are in — the `Last` builtin — from a pane whose own
+/// plain Escape already means something else. A terminal in raw tty mode has
+/// had it since it existed (tty_toggle_alt below, same chord, same job); a PDF
+/// needs it because Escape there cancels the selection and the search overlay
+/// without moving focus out of the document you are reading.
+///
+/// On a host that reports no modifier on Escape it arrives as a plain Escape
+/// and still means what Escape always means in that pane.
+pub const leave_pane: []const Chord = &.{.{ .cp = Key.escape, .shift = true }};
+
// ---- raw tty mode ----
/// Ctrl-<this> toggles raw tty mode in and out (terminals only); tty is