flow/src/tui/status
CJ van den Berg fa68164b5e
feat: add more modes to linenumstate status bar widget
There are now four modes.

- default (Ln ln, Col col)
- compact (ln:col)
- total (ln:col/total)
- percent (pct% ln:col)

The mode can be configured in the 'bottom_bar' (or 'top_bar') configuration
option by appending values to the 'linenumber' widget. The format is now as
follows:

'linenumber:{width},{Leader},{DigitStyle},{Mode}'

All values are optional and can be left empty for defaults.

width - minimum width of numeric fields
Leader - 'space' or 'zero'
DigitStyle - 'ascii', 'digital', 'subscript' or 'superscript'
Mode - 'default', 'compact', 'total' or 'percent'

e.g: linenumber:2,zero,,percent

see #470
2026-01-26 15:59:22 +01:00
..
bar.zig fix: reset background style when rendering status bar grip 2026-01-22 13:06:02 +01:00
blank.zig refactor: improve create pattern to avoid leaks 2025-07-19 00:03:30 +02:00
branch.zig feat: update vcs changed files info when click on branch status 2025-10-28 22:20:36 +01:00
clock.zig refactor: add source location tracing for need_render calls 2026-01-15 17:51:38 +01:00
diagstate.zig fix: store button click locations as signed values 2025-10-10 16:05:50 +02:00
filestate.zig refactor: remove unused error return in Plane.put_yx and Plane.cursor_move_yx 2026-01-13 16:19:47 +01:00
keybindstate.zig refactor: lots more writergate fixes - first successful build 2025-09-25 22:01:29 +02:00
keystate.zig refactor: remove unused error return in Plane.put_yx and Plane.cursor_move_yx 2026-01-13 16:19:47 +01:00
linenumstate.zig feat: add more modes to linenumstate status bar widget 2026-01-26 15:59:22 +01:00
minilog.zig refactor: lots more writergate fixes - first successful build 2025-09-25 22:01:29 +02:00
modestate.zig feat: render red lock symbol in modestate when running as root 2025-11-24 13:24:55 +01:00
modstate.zig refactor: improve create pattern to avoid leaks 2025-07-19 00:03:30 +02:00
selectionstate.zig harmonize selection display 2025-08-03 18:07:58 +02:00
tabs.zig refactor: use enum type for buffer references 2026-01-22 14:32:44 +01:00
widget.zig refactor: clean-up std.StaticStringMap naming 2025-07-15 13:17:04 +02:00