new menus

This commit is contained in:
Never Gude 2025-12-30 22:04:10 +01:00
parent 93dc9e6ea5
commit fac4425ace
7 changed files with 41 additions and 15 deletions

View 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