diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-24 13:44:56 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-24 15:41:50 -0300 |
| commit | 578710b72755503ef2ef40a0ae301e608af3e3af (patch) | |
| tree | 9d7c3574fcff5bbe7f975c802425446b6cc41065 /src/config.zig | |
| parent | b32447e0b265f25ad7807760956bedf8cf42664d (diff) | |
| download | pardes-578710b72755503ef2ef40a0ae301e608af3e3af.tar.gz pardes-578710b72755503ef2ef40a0ae301e608af3e3af.zip | |
The Del question is a hint: shown on the notice band only after 400 ms of waiting for k or j
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig index 2cb66c0a..e8016434 100644 --- a/src/config.zig +++ b/src/config.zig @@ -395,6 +395,11 @@ pub const search_submit: []const Chord = &.{.{ .cp = Key.enter }}; // Del from the keyboard on a pane with open panes both above and below it // asks which of them takes its rows. One key answers; any other keeps the pane. pub const del_question = "Del: give space to k above j below"; +// The question waits this long before it shows: SPC d j typed at speed +// never sees it, and a hand that pauses after SPC d (it pressed Del and +// nothing closed) gets it as a hint. Typed in one go the answer lands +// 100-250 ms after the d; a hesitation is longer than that. +pub const del_question_delay_ns: u64 = 400 * std.time.ns_per_ms; pub const del_above: []const Chord = &.{ .{ .cp = 'k' }, .{ .cp = Key.up } }; pub const del_below: []const Chord = &.{ .{ .cp = 'j' }, .{ .cp = Key.down } }; |
