-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |