This commit is contained in:
Never Gude 2026-03-08 23:06:13 +01:00
parent 40fa47aa34
commit 78faa96e1f
11 changed files with 313 additions and 21 deletions

View file

@ -2,7 +2,7 @@
# VERSION: 3.0
SETUVAR --export EDITOR:nvim
SETUVAR LESS:RAW\x2dCONTROL\x2dCHARS
SETUVAR QT_QPA_PLATFORMTHEME:qt6ct
SETUVAR --export QT_QPA_PLATFORMTHEME:qt6ct
SETUVAR __fish_initialized:3800
SETUVAR fish_color_autosuggestion:white
SETUVAR fish_color_cancel:white\x1e\x2d\x2dbold

View file

@ -9,7 +9,6 @@ function fish_prompt
set_color white --background 3c3836
printf ' %s ' (prompt_pwd -D 8)
echo
if test -n "$VIRTUAL_ENV"

View file

@ -21,5 +21,5 @@ function menu --description 'Opens a menu of a list of Strings and writes the re
set -a fuzzel_args "--index"
end
string join -- \n $argv | fuzzel --dmenu -l (count $argv) $fuzzel_args || exit 0
string join -- \n $argv | fuzzel --dmenu $fuzzel_args
end

View file

@ -1,9 +1,9 @@
function prompt --description 'Opens a menu of a list of Strings and writes the result to stdout'
argparse h/help p/prompt=? placeholder=? password -- $argv
argparse h/help p/prompt=? placeholder=? mesg=? password -- $argv
or return
if set -ql _flag_help
echo "menu [-h|--help] [-p|--prompt=?] [--placeholder=?] [--password] [STRING ...]"
echo "menu [-h|--help] [-p|--prompt=?] [--placeholder=?] [--mesg=?] [--password] [STRING ...]"
return 0
end
@ -17,9 +17,13 @@ function prompt --description 'Opens a menu of a list of Strings and writes the
set -a fuzzel_args "--placeholder=$_flag_placeholder"
end
if set -ql _flag_password
set -a fuzzel_args "--password=●"
if set -ql _flag_mesg
set -a fuzzel_args "--mesg=$_flag_mesg"
end
string join -- \n $argv | fuzzel --dmenu --prompt-only='' $fuzzel_args || exit 0
if set -ql _flag_password
set -a fuzzel_args "--password"
end
string join -- \n $argv | fuzzel --dmenu --prompt-only='' $fuzzel_args
end