diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-06 21:08:40 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:07 -0300 |
| commit | f442004dcd8e91114765a918201ecabe99f69eeb (patch) | |
| tree | 141d8991a753e82cb3d897c8a717230c2c82913e /src/tty.zig | |
| parent | 49f8c696ea208d2653521699d77d7e8f48cac183 (diff) | |
| download | pardes-f442004dcd8e91114765a918201ecabe99f69eeb.tar.gz pardes-f442004dcd8e91114765a918201ecabe99f69eeb.zip | |
horizontal scroll for file panes (terminals wrap at pty width — nothing to scroll): pane.hscroll cuts content columns after the lineno gutter in bodyText (post edit-splice, so typed runs shift with the text), no scrollbar. Drivers: horizontal wheel (new wheel_left/right Mouse.Buttons, SGR 66/67 via vaxis on the tty, SDL wheel.x on the gui, ±4 cols, clamped at 0, right overscroll allowed) and keyboard movement — ensureCursorVisible grew the horizontal mirror of the scrolloff reconcile, so $ pulls the view right with 3 columns of margin and 0 reels it home; the wheel never moves the cursor. Shifted alongside: syntax recolor pass, modal cursor paint (hidden when off-view), vsel highlight, click->content-col mapping, cursorWordSel. Byte columns like the rest of the file-pane code. New hscroll.snap golden: wheel shift with fixed gutter, left clamp, $ margin follow, 0 home. 30/30.
Diffstat (limited to 'src/tty.zig')
| -rw-r--r-- | src/tty.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tty.zig b/src/tty.zig index c62ace3d..f503303a 100644 --- a/src/tty.zig +++ b/src/tty.zig @@ -163,6 +163,8 @@ pub fn run(init: std.process.Init, opts: pardes.Options) !void { .right => .right, .wheel_up => .wheel_up, .wheel_down => .wheel_down, + .wheel_left => .wheel_left, + .wheel_right => .wheel_right, .none => .none, // button-less motion: hover tracking else => null, }; |
