Skip to content

Commit 65db735

Browse files
committed
0.58.0
1 parent a4db8bd commit 65db735

File tree

5 files changed

+55
-7
lines changed

5 files changed

+55
-7
lines changed

CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ CHANGELOG
33

44
0.58.0
55
------
6+
_Release highlights: https://junegunn.github.io/fzf/releases/0.58.0/_
67

78
This version introduces three new border types, `--list-border`, `--input-border`, and `--header-border`, offering much greater flexibility for customizing the user interface.
89

@@ -67,8 +68,7 @@ Also, fzf now offers "style presets" for quick customization, which can be activ
6768
declare -f |
6869
perl -0 -pe 's/^}\n/}\0/gm' |
6970
bat --plain --language bash --color always |
70-
fzf --read0 --ansi --layout reverse --multi --highlight-line \
71-
--gap
71+
fzf --read0 --ansi --layout reverse --multi --highlight-line --gap
7272
```
7373
* You can customize the line using `--gap-line[=STR]`.
7474
- You can specify `border-native` to `--tmux` so that native tmux border is used instead of `--border`. This can be useful if you start a different program from inside the popup.
@@ -101,7 +101,7 @@ Also, fzf now offers "style presets" for quick customization, which can be activ
101101
- A single-character delimiter is now treated as a plain string delimiter rather than a regular expression delimiter, even if it's a regular expression meta-character.
102102
- This means you can just write `--delimiter '|'` instead of escaping it as `--delimiter '\|'`
103103
- Bug fixes
104-
- Bug fixes in fish scripts (thanks to @bitraid)
104+
- Bug fixes and improvements in fish scripts (thanks to @bitraid)
105105

106106
0.57.0
107107
------

README.md

+49-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Table of Contents
6767
* [`--tmux` mode](#--tmux-mode)
6868
* [Search syntax](#search-syntax)
6969
* [Environment variables](#environment-variables)
70+
* [Customizing the look](#customizing-the-look)
7071
* [Options](#options)
7172
* [Demo](#demo)
7273
* [Examples](#examples)
@@ -423,9 +424,56 @@ or `py`.
423424
>
424425
> The available options are described later in this document.
425426
427+
### Customizing the look
428+
429+
The user interface of fzf is fully customizable with a large number of
430+
configuration options. For a quick setup, you can start with one of the style
431+
presets — `default`, `full`, or `minimal` — using the `--style` option.
432+
433+
```sh
434+
fzf --style full \
435+
--preview 'fzf-preview.sh {}' --bind 'focus:transform-header:file --brief {}'
436+
```
437+
438+
| Preset | Screenshot |
439+
| :--- | :--- |
440+
| `default` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-default.png"/> |
441+
| `full` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-full.png"/> |
442+
| `minimal` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-minimal.png"/> |
443+
444+
Here's an example based on the `full` preset:
445+
446+
<img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-4-borders.png"/>
447+
448+
<details>
449+
450+
```sh
451+
git ls-files | fzf --style full \
452+
--border --padding 1,2 \
453+
--border-label ' Demo ' --input-label ' Input ' --header-label ' File Type ' \
454+
--preview 'fzf-preview.sh {}' \
455+
--bind 'result:transform-list-label:
456+
if [[ -z $FZF_QUERY ]]; then
457+
echo " $FZF_MATCH_COUNT items "
458+
else
459+
echo " $FZF_MATCH_COUNT matches for [$FZF_QUERY] "
460+
fi
461+
' \
462+
--bind 'focus:transform-preview-label:[[ -n {} ]] && printf " Previewing [%s] " {}' \
463+
--bind 'focus:+transform-header:file --brief {} || echo "No file selected"' \
464+
--bind 'ctrl-r:change-list-label( Reloading the list )+reload(sleep 2; git ls-files)' \
465+
--color 'border:#aaaaaa,label:#cccccc' \
466+
--color 'preview-border:#9999cc,preview-label:#ccccff' \
467+
--color 'list-border:#669966,list-label:#99cc99' \
468+
--color 'input-border:#996666,input-label:#ffcccc' \
469+
--color 'header-border:#6699cc,header-label:#99ccff'
470+
```
471+
472+
</details>
473+
426474
### Options
427475
428-
See the man page (`man fzf`) for the full list of options.
476+
See the man page (`fzf --man` or `man fzf`) for the full list of options.
429477
430478
### Demo
431479
If you learn by watching videos, check out this screencast by [@samoshkin](https://github.com/samoshkin) to explore `fzf` features.

install

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -u
44

5-
version=0.57.0
5+
version=0.58.0
66
auto_completion=
77
key_bindings=
88
update_config=2

install.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$version="0.57.0"
1+
$version="0.58.0"
22

33
$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition
44

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/junegunn/fzf/src/protector"
1212
)
1313

14-
var version = "0.57"
14+
var version = "0.58"
1515
var revision = "devel"
1616

1717
//go:embed shell/key-bindings.bash

0 commit comments

Comments
 (0)