Skip to content

Commit

Permalink
only consider up to cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickF1 committed Nov 5, 2023
1 parent 45aad94 commit 0892709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/_fzf_search_completions.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0892709

Please sign in to comment.