From 08eadb3b46dc70a297ff89308dd1cd26237785d6 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 24 Aug 2026 22:18:24 -0300 Subject: syntax + pdf_pane + file_pane: prose grammars paint, pdf Esc cancels, gj/gk walk wrapped rows --- src/config.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/config.zig') 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- toggles raw tty mode in and out (terminals only); tty is -- cgit v1.3