From 908d4f084d6796248344aab5880dd207a322cef8 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 1 Feb 2018 17:18:56 -0800 Subject: [PATCH] add comment and example --- assets/default/fish/functions/__fzf_complete.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/default/fish/functions/__fzf_complete.fish b/assets/default/fish/functions/__fzf_complete.fish index 9fab9b4..d3195cf 100644 --- a/assets/default/fish/functions/__fzf_complete.fish +++ b/assets/default/fish/functions/__fzf_complete.fish @@ -1,3 +1,7 @@ +# __fzf_complete +# Usage: Edit an existing completion and update the command to pipe the results or pass them into this function +# Example example: complete -c cat -a "(ls | __fzf_complete)" +# Author: ViViDboarder function __fzf_complete --description "Prints values passed as args or through stdin for completion through fzf, if available. This can be disabled by using ENABLE_FZF_COMPLETE" set -l cmd "" if count $argv > /dev/null