summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-30 23:33:40 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:18 -0300
commitd93579184a16f72e14e5bfdc4551b89e6217b70d (patch)
treebfe1bec4127831473a30f1c651f35784f2b9c071
parentb4bfcbbe3d35b966a1655968e71165b25dca89a2 (diff)
downloadpardes-d93579184a16f72e14e5bfdc4551b89e6217b70d.tar.gz
pardes-d93579184a16f72e14e5bfdc4551b89e6217b70d.zip
The leader key's comment says where it applies: every normal mode, a tag's and a PDF's too, never a raw terminal's
config.zig said leader paths apply in body normal mode only, but normal.zig takes the leader action for every target it handles, tags and the column and workspace tags included, and a PDF pane passes it through. The behaviour is the useful one; the comment is corrected. Co-Authored-By: Claude Opus 5.5 <[email protected]>
-rw-r--r--src/config.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.zig b/src/config.zig
index c997f836..86951e27 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -17,7 +17,9 @@ pub const Chord = struct {
shift: bool = false,
};
-// Leader paths apply in body normal mode, not tags or raw terminals.
+// Leader paths apply wherever normal mode reads keys: a body's, a tag's
+// (column and workspace tags too) and a PDF's, never a raw terminal's
+// (normal.zig takes `.leader` for every target).
pub const leader: []const Chord = &.{.{ .cp = ' ' }};
pub const leader_help: u8 = '?';