diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-05 15:57:48 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 1891a51ed2b64eec3964d3af3807be90d08a14c2 (patch) | |
| tree | 1f8e3afb3d2e765ade98ca8f41b3a416db396d24 /src/builtins.zig | |
| parent | 68d208e1a0ff37eaef4a2a97b04797a1a6df277c (diff) | |
| download | pardes-1891a51ed2b64eec3964d3af3807be90d08a14c2.tar.gz pardes-1891a51ed2b64eec3964d3af3807be90d08a14c2.zip | |
soft-wrap long lines behind a toggle
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index 9bd955bd..aaeab5fa 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -181,6 +181,16 @@ pub const Colors = struct { } }; +/// Soft wrap: a file line too long for the pane renders across several body +/// rows instead of running off the right edge. Global like Colors, and off by +/// default for the same reason — it changes what every file pane looks like, +/// so it is a switch you flip once rather than something a pane carries. +pub const Wrap = struct { + pub fn run(c: Ctx) void { + c.p.wrap_on = !c.p.wrap_on; + } +}; + /// One step along the ring. With 228 themes in it this is no longer a way to /// REACH a theme — ThemeSel is — but it is still the way to browse one, and the /// browse got better rather than worse: the generated half is sorted by name, so |
