From ee92bc748880cbebd36cc2de800ed137bc57209b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Loli=C3=A9e?= Date: Thu, 4 Feb 2016 20:54:58 +0100 Subject: [PATCH] fzf: add page --- pages/common/fzf.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/fzf.md diff --git a/pages/common/fzf.md b/pages/common/fzf.md new file mode 100644 index 0000000000..b8e05ccd94 --- /dev/null +++ b/pages/common/fzf.md @@ -0,0 +1,27 @@ +# fzf + +> Command line fuzzy finder. + +- Start finder on all files from arbitrary locations: + +`find {{path/to/search}} -type f | fzf` + +- Start finder on running processes: + +`ps axu | fzf` + +- Select mutliple files with `Shift-TAB` and write to a file: + +`find {{path/to/search_files}} -type f | fzf -m > {{filename}}` + +- Start finder with a given query: + +`fzf -q "{{query}}"` + +- Start finder on entries that start with core and end with either go, rb, or py: + +`fzf -q "^core go$ | rb$ | py$"` + +- Start finder on entries that not match pyc and match exactly travis: + +`fzf -q "!pyc 'travis"`