um-next takes a list of tags, as a comma separated string

remove the '+' logic from the shell component.

i'm getting closer to just moving all logic into elisp. but that awk is so great.
This commit is contained in:
bth 2024-08-30 17:21:38 -07:00
commit 124954420a
3 changed files with 31 additions and 16 deletions

View file

@ -31,13 +31,7 @@ NEXTFILE=`echo $LASTFILE | awk -f $UMBASEPATH/next.awk -v arg=$1`
# tag is optional second arg to this script
if [ $2 ]; then
# + means insert the string descriptor as tag
if [ $2 = '+' ]; then
UMTAG="$1"
else
UMTAG="$2"
fi
UMELISP=$(printf '(um-next "%s" "%s")' "$NEXTFILE" "$UMTAG")
UMELISP=$(printf '(um-next "%s" "%s")' "$NEXTFILE" "$2")
else
UMELISP=$(printf '(um-next "%s")' "$NEXTFILE")
fi