summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 16:41:26 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit686673bfb67ac80ed464351528d9ab1bceaa1d02 (patch)
tree95dea51e129d3705a323423713a6d842e94a7e2e /src/config.zig
parent2d1ae5034dfcfe9265689e7fa53c5a85b683a7a1 (diff)
downloadpardes-686673bfb67ac80ed464351528d9ab1bceaa1d02.tar.gz
pardes-686673bfb67ac80ed464351528d9ab1bceaa1d02.zip
Insert Ctrl-s commits an undo checkpoint mid-session
helix commit_undo_checkpoint: u after the insert session goes back to the text as it was at Ctrl-s, a second u to before the session. It pushes an undo snapshot where the session stands. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig
index 80c08cce..ecaa3357 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -582,6 +582,7 @@ pub const insert_backspace_alias: []const Chord = &.{.{ .cp = 'h', .ctrl = true
pub const insert_enter_alias: []const Chord = &.{.{ .cp = 'j', .ctrl = true }};
pub const insert_delete_alias: []const Chord = &.{.{ .cp = 'd', .ctrl = true }};
pub const insert_register: []const Chord = &.{.{ .cp = 'r', .ctrl = true }};
+pub const insert_checkpoint: []const Chord = &.{.{ .cp = 's', .ctrl = true }};
pub const delete_word_backward: []const Chord = &.{ .{ .cp = 'w', .ctrl = true }, .{ .cp = Key.backspace, .alt = true } };
pub const delete_word_forward: []const Chord = &.{ .{ .cp = 'd', .alt = true }, .{ .cp = Key.delete, .alt = true } };
pub const kill_to_line_start: []const Chord = &.{.{ .cp = 'u', .ctrl = true }};