mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-04-07 01:31:51 +00:00
parent
04db44067d
commit
aee417c46a
@ -482,7 +482,7 @@ color mappings.
|
|||||||
|
|
||||||
.RS
|
.RS
|
||||||
.B BASE SCHEME:
|
.B BASE SCHEME:
|
||||||
(default: dark on 256-color terminal, otherwise 16)
|
(default: \fBdark\fR on 256-color terminal, otherwise \fB16\fR; If \fBNO_COLOR\fR is set, \fBbw\fR)
|
||||||
|
|
||||||
\fBdark \fRColor scheme for dark 256-color terminal
|
\fBdark \fRColor scheme for dark 256-color terminal
|
||||||
\fBlight \fRColor scheme for light 256-color terminal
|
\fBlight \fRColor scheme for light 256-color terminal
|
||||||
|
@ -481,6 +481,13 @@ func defaultPreviewOpts(command string) previewOpts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func defaultOptions() *Options {
|
func defaultOptions() *Options {
|
||||||
|
var theme *tui.ColorTheme
|
||||||
|
if os.Getenv("NO_COLOR") != "" {
|
||||||
|
theme = tui.NoColorTheme()
|
||||||
|
} else {
|
||||||
|
theme = tui.EmptyTheme()
|
||||||
|
}
|
||||||
|
|
||||||
return &Options{
|
return &Options{
|
||||||
Bash: false,
|
Bash: false,
|
||||||
Zsh: false,
|
Zsh: false,
|
||||||
@ -502,7 +509,7 @@ func defaultOptions() *Options {
|
|||||||
Multi: 0,
|
Multi: 0,
|
||||||
Ansi: false,
|
Ansi: false,
|
||||||
Mouse: true,
|
Mouse: true,
|
||||||
Theme: tui.EmptyTheme(),
|
Theme: theme,
|
||||||
Black: false,
|
Black: false,
|
||||||
Bold: true,
|
Bold: true,
|
||||||
MinHeight: 10,
|
MinHeight: 10,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user