diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 15:31:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 4315121885bebd48f8c03a2b1c7b0bd943c67afd (patch) | |
| tree | b9072c654cd486a7e817c7c3377bc49716e3afd2 /src/config.zig | |
| parent | e35e4654c34cf303cf3bc6077a3cbffee70f7909 (diff) | |
| download | pardes-4315121885bebd48f8c03a2b1c7b0bd943c67afd.tar.gz pardes-4315121885bebd48f8c03a2b1c7b0bd943c67afd.zip | |
Alt-J joins lines and selects the spaces it put in
helix-golf's text_into_array turns lines into an array with %<A-s>ms"<A-J>i,:
join_selections_space joins like J and leaves one cursor on each space it
inserted. J and Alt-J now make one edit over every range, as helix does,
rather than J being replayed per range; that is what lets Alt-J hand back
all the spaces as the new selection.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig index 9ad9cc7e..372c4884 100644 --- a/src/config.zig +++ b/src/config.zig @@ -538,6 +538,7 @@ pub const switch_case: []const Chord = &.{.{ .cp = '~' }}; pub const to_lowercase: []const Chord = &.{.{ .cp = '`' }}; pub const to_uppercase: []const Chord = &.{.{ .cp = '`', .alt = true }}; pub const join_lines: []const Chord = &.{.{ .cp = 'J' }}; +pub const join_select_space: []const Chord = &.{.{ .cp = 'J', .alt = true }}; pub const indent: []const Chord = &.{.{ .cp = '>' }}; pub const unindent: []const Chord = &.{.{ .cp = '<' }}; pub const format: []const Chord = &.{.{ .cp = '=' }}; |
