update doc
This commit is contained in:
parent
c1814c8a4e
commit
f9382f72d4
6
doc.go
6
doc.go
@ -1258,11 +1258,7 @@ Second, you can set the values of environmental variables mentioned above for
|
|||||||
fine grained customization. This is useful to change colors used for different
|
fine grained customization. This is useful to change colors used for different
|
||||||
file types and extensions. '$LS_COLORS' is more powerful than '$LSCOLORS' and it
|
file types and extensions. '$LS_COLORS' is more powerful than '$LSCOLORS' and it
|
||||||
can be used even when GNU programs are not installed on the system. You can
|
can be used even when GNU programs are not installed on the system. You can
|
||||||
combine this second method with the first method for best results. lf can also
|
combine this second method with the first method for best results.
|
||||||
be configured to ignore your terminal theme and output colors "as they were
|
|
||||||
intended" by translating all numbered colors into a 24-bit output that matches
|
|
||||||
the description; this can be enabled by setting the environment variable
|
|
||||||
'$TCELL_TRUECOLOR' to "on" (or any text except ""/nothing or "disable").
|
|
||||||
|
|
||||||
Lastly, you may also want to configure the colors of the prompt line to match
|
Lastly, you may also want to configure the colors of the prompt line to match
|
||||||
the rest of the colors. Colors of the prompt line can be configured using the
|
the rest of the colors. Colors of the prompt line can be configured using the
|
||||||
|
@ -121,7 +121,7 @@ The following options can be used to customize the behavior of lf:
|
|||||||
period int (default 0)
|
period int (default 0)
|
||||||
preview bool (default on)
|
preview bool (default on)
|
||||||
previewer string (default '')
|
previewer string (default '')
|
||||||
promptfmt string (default "\033[32;1m%u@%h\033[0m:\033[34;1m%w/\033[0m\033[1m%f\033[0m")
|
promptfmt string (default "\033[32;1m%u@%h\033[0m:\033[34;1m%w\033[0m\033[1m%f\033[0m")
|
||||||
ratios []int (default '1:2:3')
|
ratios []int (default '1:2:3')
|
||||||
relativenumber bool (default off)
|
relativenumber bool (default off)
|
||||||
reverse bool (default off)
|
reverse bool (default off)
|
||||||
@ -1344,11 +1344,7 @@ for fine grained customization. This is useful to change colors used for
|
|||||||
different file types and extensions. '$LS_COLORS' is more powerful than
|
different file types and extensions. '$LS_COLORS' is more powerful than
|
||||||
'$LSCOLORS' and it can be used even when GNU programs are not installed on
|
'$LSCOLORS' and it can be used even when GNU programs are not installed on
|
||||||
the system. You can combine this second method with the first method for
|
the system. You can combine this second method with the first method for
|
||||||
best results. lf can also be configured to ignore your terminal theme and
|
best results.
|
||||||
output colors "as they were intended" by translating all numbered colors
|
|
||||||
into a 24-bit output that matches the description; this can be enabled by
|
|
||||||
setting the environment variable '$TCELL_TRUECOLOR' to "on" (or any text
|
|
||||||
except ""/nothing or "disable").
|
|
||||||
|
|
||||||
Lastly, you may also want to configure the colors of the prompt line to
|
Lastly, you may also want to configure the colors of the prompt line to
|
||||||
match the rest of the colors. Colors of the prompt line can be configured
|
match the rest of the colors. Colors of the prompt line can be configured
|
||||||
|
2
lf.1
2
lf.1
@ -1292,6 +1292,6 @@ It is worth noting that lf uses as many colors are advertised by your terminal's
|
|||||||
.PP
|
.PP
|
||||||
Keeping this in mind, you can configure lf colors in two different ways. First, you can configure 8 basic colors used by your terminal and lf should pick up those colors automatically. Depending on your terminal, you should be able to select your colors from a 24-bit palette. This is the recommended approach as colors used by other programs will also match each other.
|
Keeping this in mind, you can configure lf colors in two different ways. First, you can configure 8 basic colors used by your terminal and lf should pick up those colors automatically. Depending on your terminal, you should be able to select your colors from a 24-bit palette. This is the recommended approach as colors used by other programs will also match each other.
|
||||||
.PP
|
.PP
|
||||||
Second, you can set the values of environmental variables mentioned above for fine grained customization. This is useful to change colors used for different file types and extensions. '$LS_COLORS' is more powerful than '$LSCOLORS' and it can be used even when GNU programs are not installed on the system. You can combine this second method with the first method for best results. lf can also be configured to ignore your terminal theme and output colors "as they were intended" by translating all numbered colors into a 24-bit output that matches the description; this can be enabled by setting the environment variable '$TCELL_TRUECOLOR' to "on" (or any text except ""/nothing or "disable").
|
Second, you can set the values of environmental variables mentioned above for fine grained customization. This is useful to change colors used for different file types and extensions. '$LS_COLORS' is more powerful than '$LSCOLORS' and it can be used even when GNU programs are not installed on the system. You can combine this second method with the first method for best results.
|
||||||
.PP
|
.PP
|
||||||
Lastly, you may also want to configure the colors of the prompt line to match the rest of the colors. Colors of the prompt line can be configured using the 'promptfmt' option which can include hardcoded colors as ansi escapes. See the default value of this option to have an idea about how to color this line.
|
Lastly, you may also want to configure the colors of the prompt line to match the rest of the colors. Colors of the prompt line can be configured using the 'promptfmt' option which can include hardcoded colors as ansi escapes. See the default value of this option to have an idea about how to color this line.
|
||||||
|
Loading…
Reference in New Issue
Block a user