new menus
This commit is contained in:
parent
93dc9e6ea5
commit
fac4425ace
7 changed files with 41 additions and 15 deletions
11
.config/fish/functions/menu.fish
Normal file
11
.config/fish/functions/menu.fish
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
function menu --description 'Opens a menu of a list of Strings and writes the result to stdout'
|
||||
argparse h/help -- $argv
|
||||
or return
|
||||
|
||||
if set -ql _flag_help
|
||||
echo "menu [-h|--help] [STRING ...]"
|
||||
return 0
|
||||
end
|
||||
|
||||
string join -- \n $argv | fuzzel --dmenu -l (count $argv) || exit 0
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue