[Abcde-users] [PATCH 5/6] Add option to re-show cddb match list

Snild Dolkow snild at dolkow.se
Sun Aug 20 08:36:57 BST 2023


By entering 'L' or 'l' at the prompt, the list is shown again.
---
 abcde | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/abcde b/abcde
index 097f0ef..6144c03 100755
--- a/abcde
+++ b/abcde
@@ -2921,10 +2921,12 @@ do_cddbedit ()
 					ENTRYLIST=$(IFS=,; echo "${ENTRYLIST[*]}") # if I had the real seq, I could use `-s,`
 					# I'll take CDDB read #3 for $400, Alex
 					while [ $CDCHOICENUM -lt 0 ] || [ $CDCHOICENUM -gt $NUM_CDDB_MATCHES ]; do
-						echo -n "Which entry would you like abcde to use? [0,$ENTRYLIST,d,?]: " >&2
+						echo -n "Which entry would you like abcde to use? [0,$ENTRYLIST,d,L,?]: " >&2
 						read CDDBCHOICE
 						if [ "$CDDBCHOICE" = "d" ]; then
 							echo "To diff two entries, input two numbers separated by a comma, e.g. 1,2 or 3,5" >&2
+						elif [ "$CDDBCHOICE" = "L" -o "$CDDBCHOICE" = "l" ]; then
+							page "${ABCDETEMPDIR}/cddbchoices"
 						elif echo $CDDBCHOICE | grep -E "[[:space:]]*[[:digit:]]+,[[:digit:]]+[[:space:]]*" > /dev/null 2>&1 ; then
 							if [ ! X"$DIFF" = "X" ]; then
 								PARSECHOICE1=$(echo $CDDBCHOICE | cut -d"," -f1 | xargs printf %d 2>/dev/null)
@@ -2962,6 +2964,7 @@ do_cddbedit ()
 							echo "<number>: Continue with the selected match; you will be able to make adjustments." >&2
 							echo "<n>,<m>: Show a diff between entries n and m, e.g. 1,2 or 3,5." >&2
 							echo "d: Just a hint that diffing is possible; outputs instructions for how to do it." >&2
+							echo "L: Show the list of matches again." >&2
 							echo "?: Show this help text." >&2
 						fi
 					done
-- 
2.41.0




More information about the Abcde-users mailing list