From 2aa806202d2a451068f9ad419f39bd7cb7087d25 Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Fri, 11 Jun 2021 18:52:21 +0530 Subject: [PATCH] fzf: refresh wording of examples (#6112) Co-authored-by: Muhammad Falak Wani --- pages/common/fzf.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/common/fzf.md b/pages/common/fzf.md index 715e18e72..e60fcadbb 100644 --- a/pages/common/fzf.md +++ b/pages/common/fzf.md @@ -1,28 +1,29 @@ # fzf > Command-line fuzzy finder. +> Similar to `sk`. > More information: . -- Start finder on all files from arbitrary locations: +- Start fzf on all files in the specified directory: -`find {{path/to/search}} -type f | fzf` +`find {{path/to/directory}} -type f | fzf` -- Start finder on running processes: +- Start fzf for running processes: `ps aux | fzf` - Select multiple files with `Shift + Tab` and write to a file: -`find {{path/to/search_files}} -type f | fzf -m > {{filename}}` +`find {{path/to/directory}} -type f | fzf --multi > {{filename}}` -- Start finder with a given query: +- Start fzf with a specified query: -`fzf -q "{{query}}"` +`fzf --query "{{query}}"` -- Start finder on entries that start with core and end with either go, rb, or py: +- Start fzf on entries that start with core and end with either go, rb, or py: -`fzf -q "^core go$ | rb$ | py$"` +`fzf --query "^core go$ | rb$ | py$"` -- Start finder on entries that not match pyc and match exactly travis: +- Start fzf on entries that not match pyc and match exactly travis: -`fzf -q "!pyc 'travis"` +`fzf --query "!pyc 'travis"`