From e79be0d0f5e86d174f3508f3a6e2ffeae873c343 Mon Sep 17 00:00:00 2001 From: Zack Hsi Date: Wed, 2 Dec 2020 09:28:58 +0800 Subject: [PATCH 1/2] Document FZFTselect abbreviation --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 88d625b..009441d 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,9 @@ To override the default jump-to-tag binding: ```vim nmap (fzf_tags) ``` + +Additionally, `fzf-tags` exposes a fuzzy `:tselect`. To replace the default `:ts`: + +```vim +noreabbrev ts getcmdtype() == ":" && getcmdline() == 'ts' ? 'FZFTselect' : 'ts' +``` From 798eac5248442e19fda2fe3fbd1a0f48eb0d389b Mon Sep 17 00:00:00 2001 From: Lakshay Garg Date: Tue, 1 Dec 2020 20:54:02 -0800 Subject: [PATCH 2/2] Add some documentation for FZFTselect --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 009441d..61d1794 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,20 @@ fzf-tags It combines `:tag` and `:tselect` into a single improved command. -`fzf-tags` looks up the identifier under the cursor. +`:FZFTags` looks up the identifier under the cursor. - If there are 0 or 1 definitions, the behavior is same as `:tag`. - When there are multiple definitions, the results are piped to fzf for interactive filtering (https://github.com/junegunn/fzf#search-syntax). -`fzf-tags` uses the built-in `:tag` command under the hood, which yields a -couple benefits. -- Tag stack management works as expected (CTRL-T or `:pop` return you to your - previous location). +`:FZFTselect` behaves just like `:tselect`. +- Loads the tags matching the argument into an FZF window. +- If no argument is provided, the last tag on the tag-stack is used. + +This plugin uses the built-in `:tag` command under the hood, which +yields a couple benefits. + +- Tag stack management works as expected (CTRL-T or `:pop` return you + to your previous location). - Tag priority works as expected (`:help tag-priority`). Installation