Add options for customizing the appearance of the menu (#2123)

* Refactor for loop

* Save menu selection

* Add options to customize menu style

* Add documentation
This commit is contained in:
Joe Lim authored and GitHub committed 2025-08-27 19:49:07 +10:00
1 parent f2d2bb0f2c
commit 7297e4f522
7 files changed
+87 -24

No files matched your search

+15
View File
@@ -177,6 +177,9 @@ The following options can be used to customize the behavior of lf:
info []string (default '')
infotimefmtnew string (default 'Jan _2 15:04')
infotimefmtold string (default 'Jan _2 2006')
menufmt string (default "\033[0m")
menuheaderfmt string (default "\033[1m")
menuselectfmt string (default "\033[7m")
mouse bool (default false)
number bool (default false)
numberfmt string (default "\033[33m")
@@ -868,6 +871,18 @@ Format string of the file time shown in the info column when it matches this yea
Format string of the file time shown in the info column when it doesn't match this year.
## menufmt (string) (default `\033[0m`)
Format string of the menu.
## menuheaderfmt (string) (default `\033[1m`)
Format string of the header row in the menu.
## menuselectfmt (string) (default `\033[7m`)
Format string of the currently selected item in the menu.
## mouse (bool) (default false)
Send mouse events as input.