diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 16:40:06 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 2d1ae5034dfcfe9265689e7fa53c5a85b683a7a1 (patch) | |
| tree | bcb6d6f1481fef311a7555007ef24e2e736674aa /src | |
| parent | bdbab17204efdb785b6ab3cc2022484485c0ded2 (diff) | |
| download | pardes-2d1ae5034dfcfe9265689e7fa53c5a85b683a7a1.tar.gz pardes-2d1ae5034dfcfe9265689e7fa53c5a85b683a7a1.zip | |
Alt-u and Alt-U undo and redo
helix's earlier/later walk its history tree by time; pardes's history is a
line, where earlier and later are undo and redo, so the keys are aliases.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.zig b/src/config.zig index 993b6fe0..80c08cce 100644 --- a/src/config.zig +++ b/src/config.zig @@ -569,8 +569,10 @@ pub const unindent: []const Chord = &.{.{ .cp = '<' }}; pub const format: []const Chord = &.{.{ .cp = '=' }}; pub const increment: []const Chord = &.{.{ .cp = 'a', .ctrl = true }}; pub const decrement: []const Chord = &.{.{ .cp = 'x', .ctrl = true }}; -pub const undo: []const Chord = &.{.{ .cp = 'u' }}; -pub const redo: []const Chord = &.{.{ .cp = 'U' }}; +// pardes's history is linear, so helix's earlier/later (Alt-u, Alt-U) are +// undo and redo themselves +pub const undo: []const Chord = &.{ .{ .cp = 'u' }, .{ .cp = 'u', .alt = true } }; +pub const redo: []const Chord = &.{ .{ .cp = 'U' }, .{ .cp = 'U', .alt = true } }; pub const comment_toggle: []const Chord = &.{.{ .cp = 'c', .ctrl = true }}; // Body-normal Esc runs Last; other modes cancel input or leave insert mode. |
