From 0892709cb912f85a8579c32f51016205193f314c Mon Sep 17 00:00:00 2001 From: Patrick Fong Date: Sat, 4 Nov 2023 23:44:56 -0700 Subject: [PATCH] only consider up to cursor --- functions/_fzf_search_completions.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/_fzf_search_completions.fish b/functions/_fzf_search_completions.fish index 7243c49..6b571d7 100644 --- a/functions/_fzf_search_completions.fish +++ b/functions/_fzf_search_completions.fish @@ -5,7 +5,8 @@ # is a file or argument can only be determined via a heuristic. function _fzf_search_completions --description "Search the completions for the current command line. Replace the current token with the selected completions." set -l selected_completions ( - complete --do-complete | string join0 | + complete --do-complete (commandline --cut-at-cursor) | + string join0 | _fzf_wrapper \ --read0 \ --print0 \