feat: add numbercursorfmt option (#2395)

* feat: add `numbercursorfmt` option

* docs: add documentation

* docs: update `CHANGELOG.md`
This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-02-18 15:18:28 +01:00
1 parent b2f23e6078
commit 59494d1ff8
7 files changed
+27 -8

No files matched your search

+5 -2
View File
@@ -302,6 +302,7 @@ The following options can be used to customize the behavior of lf:
mergeindicators bool (default false)
mouse bool (default false)
number bool (default false)
numbercursorfmt string (default '')
numberfmt string (default "\033[33m")
period int (default 0)
preload bool (default false)
@@ -1112,9 +1113,11 @@ pane. When the relativenumber option is enabled, only the current line
shows the absolute position and relative positions are shown for the
rest.
numberfmt (string) (default \033[33m)
numberfmt (string) (default \033[33m), numbercursorfmt (string) (default ``)
Format string of the position number for each line.
Format strings for highlighting line numbers. numberfmt applies to all
lines. numbercursorfmt applies to the cursor line and falls back to
numberfmt when left empty.
period (int) (default 0)