mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 20:52:06 -07:00
Update ADVANCED.md
This commit is contained in:
10
ADVANCED.md
10
ADVANCED.md
@@ -1,7 +1,7 @@
|
|||||||
Advanced fzf examples
|
Advanced fzf examples
|
||||||
======================
|
======================
|
||||||
|
|
||||||
*(Last update: 2021/04/06)*
|
*(Last update: 2021/04/09)*
|
||||||
|
|
||||||
<!-- vim-markdown-toc GFM -->
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
@@ -242,10 +242,16 @@ IFS=: read -ra selected < <(
|
|||||||
And run it with an initial query string.
|
And run it with an initial query string.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# Make the script executable
|
||||||
chmod +x rfv
|
chmod +x rfv
|
||||||
|
|
||||||
|
# Run it with the initial query "algo"
|
||||||
./rfv algo
|
./rfv algo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Ripgrep will perform the initial search and list all the lines that contain
|
||||||
|
`algo`. Then we further narrow down the list on fzf.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
I know it's a lot to digest, let's try to break down the code.
|
I know it's a lot to digest, let's try to break down the code.
|
||||||
@@ -266,7 +272,7 @@ I know it's a lot to digest, let's try to break down the code.
|
|||||||
- We customize how fzf colors various text elements using `--color` option.
|
- We customize how fzf colors various text elements using `--color` option.
|
||||||
`-1` tells fzf to keep the original color from the input. See `man fzf` for
|
`-1` tells fzf to keep the original color from the input. See `man fzf` for
|
||||||
available color options.
|
available color options.
|
||||||
- The value of `--preview-window` options consists of 5 components delimited
|
- The value of `--preview-window` option consists of 5 components delimited
|
||||||
by `,`
|
by `,`
|
||||||
1. `up` — Position of the preview window
|
1. `up` — Position of the preview window
|
||||||
1. `60%` — Size of the preview window
|
1. `60%` — Size of the preview window
|
||||||
|
Reference in New Issue
Block a user