improved new selector

This commit is contained in:
Ämin Baumeler 2025-06-11 10:12:30 +02:00
parent ad32fcdb0f
commit 9291137b94

View File

@ -350,7 +350,7 @@ if [ "${1:-}" = "--goto" ]; then
fi
if [ "${1:-}" = "--new" ]; then
collection=$(echo "$COLLECTION_LABELS" | tr ';' '\n' | $FZF --delimiter='=' --with-nth=2 --accept-nth=1)
collection=$(echo "$COLLECTION_LABELS" | tr ';' '\n' | awk '/./ {print}' | $FZF --margin="30%" --no-info --delimiter='=' --with-nth=2 --accept-nth=1)
fpath=""
while [ -f "$fpath" ] || [ -z "$fpath" ]; do
uuid=$($UUIDGEN)