diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2021-04-09 13:43:16 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2021-04-09 13:43:16 +0900 |
commit | 252fd7ecb17e1b08306a8eb6feecd708be881322 (patch) | |
tree | 896e4d0a4270feb81adc2eb909b585048edc3960 | |
parent | 7fa89dddb4e95e42e39dc660a31bf929fac7b7c9 (diff) |
Update ADVANCED.md
-rw-r--r-- | ADVANCED.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ADVANCED.md b/ADVANCED.md index 58529889..28c6e79a 100644 --- a/ADVANCED.md +++ b/ADVANCED.md @@ -1,7 +1,7 @@ Advanced fzf examples ====================== -*(Last update: 2021/04/06)* +*(Last update: 2021/04/09)* <!-- vim-markdown-toc GFM --> @@ -242,10 +242,16 @@ IFS=: read -ra selected < <( And run it with an initial query string. ```sh +# Make the script executable chmod +x rfv + +# Run it with the initial query "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. + ![image](https://user-images.githubusercontent.com/700826/113683873-a42a6200-96ff-11eb-9666-26ce4091b0e4.png) 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. `-1` tells fzf to keep the original color from the input. See `man fzf` for 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 `,` 1. `up` — Position of the preview window 1. `60%` — Size of the preview window |