mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-09 20:03:48 -05:00
Compare commits
7 Commits
devel
...
adjust-def
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afc955771c | ||
|
|
c134c6f898 | ||
|
|
95697b96f8 | ||
|
|
3809ebb0c8 | ||
|
|
ca9b4d5a49 | ||
|
|
04888f5b94 | ||
|
|
3072b46218 |
@@ -4,6 +4,7 @@ CHANGELOG
|
|||||||
0.66.0
|
0.66.0
|
||||||
------
|
------
|
||||||
- Style changes
|
- Style changes
|
||||||
|
- Updated `--color base16` (alias: `16`) theme so that it works better with both dark and light themes.
|
||||||
- Narrowed the gutter column by using the left-half block character (`▌`).
|
- Narrowed the gutter column by using the left-half block character (`▌`).
|
||||||
- Removed background colors from markers.
|
- Removed background colors from markers.
|
||||||
- Added `--gutter CHAR` option for customizing the gutter column. Some examples using [box-drawing characters](https://en.wikipedia.org/wiki/Box-drawing_characters):
|
- Added `--gutter CHAR` option for customizing the gutter column. Some examples using [box-drawing characters](https://en.wikipedia.org/wiki/Box-drawing_characters):
|
||||||
|
|||||||
@@ -246,11 +246,11 @@ color mappings. Each entry is separated by a comma and/or whitespaces.
|
|||||||
|
|
||||||
.RS
|
.RS
|
||||||
.B BASE SCHEME:
|
.B BASE SCHEME:
|
||||||
(default: \fBdark\fR on 256-color terminal, otherwise \fB16\fR; If \fBNO_COLOR\fR is set, \fBbw\fR)
|
(default: \fBdark\fR on 256-color terminal, otherwise \fBbase16\fR; If \fBNO_COLOR\fR is set, \fBbw\fR)
|
||||||
|
|
||||||
\fBdark \fRColor scheme for dark 256-color terminal
|
\fBdark \fRColor scheme for dark terminal
|
||||||
\fBlight \fRColor scheme for light 256-color terminal
|
\fBlight \fRColor scheme for light terminal
|
||||||
\fB16 \fRColor scheme for 16-color terminal
|
\fBbase16 \fRColor scheme using base 16 colors (alias: \fB16\fR)
|
||||||
\fBbw \fRNo colors (equivalent to \fB\-\-no\-color\fR)
|
\fBbw \fRNo colors (equivalent to \fB\-\-no\-color\fR)
|
||||||
|
|
||||||
.B COLOR NAMES:
|
.B COLOR NAMES:
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ Usage: fzf [options]
|
|||||||
|
|
||||||
GLOBAL STYLE
|
GLOBAL STYLE
|
||||||
--style=PRESET Apply a style preset [default|minimal|full[:BORDER_STYLE]
|
--style=PRESET Apply a style preset [default|minimal|full[:BORDER_STYLE]
|
||||||
--color=COLSPEC Base scheme (dark|light|16|bw) and/or custom colors
|
--color=COLSPEC Base scheme (dark|light|base16|bw) and/or custom colors
|
||||||
--no-color Disable colors
|
--no-color Disable colors
|
||||||
--no-bold Do not use bold text
|
--no-bold Do not use bold text
|
||||||
|
|
||||||
@@ -1325,7 +1325,7 @@ func parseTheme(defaultTheme *tui.ColorTheme, str string) (*tui.ColorTheme, erro
|
|||||||
theme = dupeTheme(tui.Dark256)
|
theme = dupeTheme(tui.Dark256)
|
||||||
case "light":
|
case "light":
|
||||||
theme = dupeTheme(tui.Light256)
|
theme = dupeTheme(tui.Light256)
|
||||||
case "16":
|
case "base16", "16":
|
||||||
theme = dupeTheme(tui.Default16)
|
theme = dupeTheme(tui.Default16)
|
||||||
case "bw", "no":
|
case "bw", "no":
|
||||||
theme = tui.NoColorTheme()
|
theme = tui.NoColorTheme()
|
||||||
|
|||||||
@@ -303,6 +303,14 @@ const (
|
|||||||
colMagenta
|
colMagenta
|
||||||
colCyan
|
colCyan
|
||||||
colWhite
|
colWhite
|
||||||
|
colGrey
|
||||||
|
colBrightRed
|
||||||
|
colBrightGreen
|
||||||
|
colBrightYellow
|
||||||
|
colBrightBlue
|
||||||
|
colBrightMagenta
|
||||||
|
colBrightCyan
|
||||||
|
colBrightWhite
|
||||||
)
|
)
|
||||||
|
|
||||||
type FillReturn int
|
type FillReturn int
|
||||||
@@ -923,19 +931,19 @@ func init() {
|
|||||||
SelectedFg: ColorAttr{colUndefined, AttrUndefined},
|
SelectedFg: ColorAttr{colUndefined, AttrUndefined},
|
||||||
SelectedBg: ColorAttr{colUndefined, AttrUndefined},
|
SelectedBg: ColorAttr{colUndefined, AttrUndefined},
|
||||||
SelectedMatch: ColorAttr{colUndefined, AttrUndefined},
|
SelectedMatch: ColorAttr{colUndefined, AttrUndefined},
|
||||||
DarkBg: ColorAttr{colBlack, AttrUndefined},
|
DarkBg: ColorAttr{colGrey, AttrUndefined},
|
||||||
Prompt: ColorAttr{colBlue, AttrUndefined},
|
Prompt: ColorAttr{colBlue, AttrUndefined},
|
||||||
Match: ColorAttr{colGreen, AttrUndefined},
|
Match: ColorAttr{colGreen, AttrUndefined},
|
||||||
Current: ColorAttr{colYellow, AttrUndefined},
|
Current: ColorAttr{colBrightWhite, AttrUndefined},
|
||||||
CurrentMatch: ColorAttr{colGreen, AttrUndefined},
|
CurrentMatch: ColorAttr{colBrightGreen, AttrUndefined},
|
||||||
Spinner: ColorAttr{colGreen, AttrUndefined},
|
Spinner: ColorAttr{colGreen, AttrUndefined},
|
||||||
Info: ColorAttr{colWhite, AttrUndefined},
|
Info: ColorAttr{colYellow, AttrUndefined},
|
||||||
Cursor: ColorAttr{colRed, AttrUndefined},
|
Cursor: ColorAttr{colRed, AttrUndefined},
|
||||||
Marker: ColorAttr{colMagenta, AttrUndefined},
|
Marker: ColorAttr{colMagenta, AttrUndefined},
|
||||||
Header: ColorAttr{colCyan, AttrUndefined},
|
Header: ColorAttr{colCyan, AttrUndefined},
|
||||||
Footer: ColorAttr{colCyan, AttrUndefined},
|
Footer: ColorAttr{colCyan, AttrUndefined},
|
||||||
Border: ColorAttr{colBlack, AttrUndefined},
|
Border: ColorAttr{colDefault, Dim},
|
||||||
BorderLabel: ColorAttr{colWhite, AttrUndefined},
|
BorderLabel: ColorAttr{colDefault, AttrUndefined},
|
||||||
Ghost: ColorAttr{colUndefined, Dim},
|
Ghost: ColorAttr{colUndefined, Dim},
|
||||||
Disabled: ColorAttr{colUndefined, AttrUndefined},
|
Disabled: ColorAttr{colUndefined, AttrUndefined},
|
||||||
PreviewFg: ColorAttr{colUndefined, AttrUndefined},
|
PreviewFg: ColorAttr{colUndefined, AttrUndefined},
|
||||||
|
|||||||
Reference in New Issue
Block a user