summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 15:38:50 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit9bade7130bc0aa8cbcea82c446fc5747453b1360 (patch)
tree0e701ba5a58f0698957edb792751f348e1a06428 /src/config.zig
parentccd3075cac77044498a8c35d2482c8b4cb8f56e7 (diff)
downloadpardes-9bade7130bc0aa8cbcea82c446fc5747453b1360.tar.gz
pardes-9bade7130bc0aa8cbcea82c446fc5747453b1360.zip
& aligns the selections into columns
helix-golf's enumerate_and_align ends on %s |\d+<ret>&. align_selections treats the k-th range of each line as column k and puts spaces before each range until its head reaches the widest head of its column, measured in display cells, which File.rawDisplayCol already gives. A range over several lines refuses, as in helix. The example itself still needs more than 64 ranges, which the selection model does not hold. 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 edc73837..85a6bc59 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -541,6 +541,7 @@ 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 align_selections: []const Chord = &.{.{ .cp = '&' }};
pub const indent: []const Chord = &.{.{ .cp = '>' }};
pub const unindent: []const Chord = &.{.{ .cp = '<' }};
pub const format: []const Chord = &.{.{ .cp = '=' }};