summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 15:33:48 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit122281b0ea3473f8950910765c487ef3fc82e7d4 (patch)
tree577eee8e03338446a2f600a74c775dc5af97f50b /src/config.zig
parent4315121885bebd48f8c03a2b1c7b0bd943c67afd (diff)
downloadpardes-122281b0ea3473f8950910765c487ef3fc82e7d4.tar.gz
pardes-122281b0ea3473f8950910765c487ef3fc82e7d4.zip
Alt-( and Alt-) rotate the text of the selections
helix-golf swaps keys and values with rotate_selection_contents (webS_to_ <ret><A-(>, then per line). Each range's text moves to the next range (the previous one for Alt-(), in one edit; a count rotates by that many ranges, each range comes back over the text it now holds in its own direction, and the primary follows its text. That is the harness's helix; 25.07.1 read the count as a group size and left the primary alone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig
index 372c4884..edc73837 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -539,6 +539,8 @@ 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 rotate_contents_fwd: []const Chord = &.{.{ .cp = ')', .alt = true }};
+pub const rotate_contents_back: []const Chord = &.{.{ .cp = '(', .alt = true }};
pub const indent: []const Chord = &.{.{ .cp = '>' }};
pub const unindent: []const Chord = &.{.{ .cp = '<' }};
pub const format: []const Chord = &.{.{ .cp = '=' }};