Skip to content

Commit

Permalink
Add fzy completion (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicant authored Dec 16, 2024
2 parents 2913eca + a19512f commit 291a87b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions share/completion/fzy
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# (C) 2024 unrealapex

# Completion script for fzy

function completion/fzy {

typeset OPTIONS ARGOPT PREFIX
OPTIONS=( #>#
"l: --lines:; how many lines to display"
"p: --prompt:; input prompt"
"s --show-scores; show the scores for each item"
"t: --tty:; use tty instead of the default tty device"
"q: --query:; use query as the initial search query"
"e: --show-matches:; non-interactive mode"
) #<#

command -f completion//parseoptions -es
case $ARGOPT in
(-)
command -f completion//completeoptions
;;
esac

}


# vim: set ft=sh ts=8 sts=8 sw=8 et:

0 comments on commit 291a87b

Please sign in to comment.