From 06986d27f06528c8eb9f672a8f4913d3e3e7a307 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 23 Sep 2024 03:23:36 -0400 Subject: Generate A-Z menus in the tagtree this adds a new command %byfirstletter %byfirstletter "custom_track" "Track A to Z" "title" ^ command ^menu name ^menu title ^subitem need a better name for subitem btw.. this patch also allows us to tell when we are in the BFL menu by checking customaction == ONPLAY_CUSTOMACTION_FIRSTLETTER we then enable spelling of the letters in the menu it spells Numeric too but that shouldn't matter with the upcoming voice patch Change-Id: I59815f697a4ef84a8cb540783b620d15f6670e00 --- apps/tagnavi.config | 93 +++-------------------------------------------------- 1 file changed, 5 insertions(+), 88 deletions(-) (limited to 'apps/tagnavi.config') diff --git a/apps/tagnavi.config b/apps/tagnavi.config index b599f9577c..6335610253 100644 --- a/apps/tagnavi.config +++ b/apps/tagnavi.config @@ -30,96 +30,13 @@ # # Define the A to Z Artist sub menu -%menu_start "custom_artist" "Artist A to Z" -"Numeric" -> canonicalartist ? canonicalartist < "A" -> album -> title = "fmt_title" -"A" -> canonicalartist ? canonicalartist ^ "A" -> album -> title = "fmt_title" -"B" -> canonicalartist ? canonicalartist ^ "B" -> album -> title = "fmt_title" -"C" -> canonicalartist ? canonicalartist ^ "C" -> album -> title = "fmt_title" -"D" -> canonicalartist ? canonicalartist ^ "D" -> album -> title = "fmt_title" -"E" -> canonicalartist ? canonicalartist ^ "E" -> album -> title = "fmt_title" -"F" -> canonicalartist ? canonicalartist ^ "F" -> album -> title = "fmt_title" -"G" -> canonicalartist ? canonicalartist ^ "G" -> album -> title = "fmt_title" -"H" -> canonicalartist ? canonicalartist ^ "H" -> album -> title = "fmt_title" -"I" -> canonicalartist ? canonicalartist ^ "I" -> album -> title = "fmt_title" -"J" -> canonicalartist ? canonicalartist ^ "J" -> album -> title = "fmt_title" -"K" -> canonicalartist ? canonicalartist ^ "K" -> album -> title = "fmt_title" -"L" -> canonicalartist ? canonicalartist ^ "L" -> album -> title = "fmt_title" -"M" -> canonicalartist ? canonicalartist ^ "M" -> album -> title = "fmt_title" -"N" -> canonicalartist ? canonicalartist ^ "N" -> album -> title = "fmt_title" -"O" -> canonicalartist ? canonicalartist ^ "O" -> album -> title = "fmt_title" -"P" -> canonicalartist ? canonicalartist ^ "P" -> album -> title = "fmt_title" -"Q" -> canonicalartist ? canonicalartist ^ "Q" -> album -> title = "fmt_title" -"R" -> canonicalartist ? canonicalartist ^ "R" -> album -> title = "fmt_title" -"S" -> canonicalartist ? canonicalartist ^ "S" -> album -> title = "fmt_title" -"T" -> canonicalartist ? canonicalartist ^ "T" -> album -> title = "fmt_title" -"U" -> canonicalartist ? canonicalartist ^ "U" -> album -> title = "fmt_title" -"V" -> canonicalartist ? canonicalartist ^ "V" -> album -> title = "fmt_title" -"W" -> canonicalartist ? canonicalartist ^ "W" -> album -> title = "fmt_title" -"X" -> canonicalartist ? canonicalartist ^ "X" -> album -> title = "fmt_title" -"Y" -> canonicalartist ? canonicalartist ^ "Y" -> album -> title = "fmt_title" -"Z" -> canonicalartist ? canonicalartist ^ "Z" -> album -> title = "fmt_title" - -# ^ An empy line ends the menu - +%byfirstletter "custom_artist" "Artist A to Z" "canonicalartist" # Define the A to Z album sub menu -%menu_start "custom_album" "Album A to Z" -"Numeric" -> album ? album < "A" -> title = "fmt_title" -"A" -> album ? album ^ "A" -> title = "fmt_title" -"B" -> album ? album ^ "B" -> title = "fmt_title" -"C" -> album ? album ^ "C" -> title = "fmt_title" -"D" -> album ? album ^ "D" -> title = "fmt_title" -"E" -> album ? album ^ "E" -> title = "fmt_title" -"F" -> album ? album ^ "F" -> title = "fmt_title" -"G" -> album ? album ^ "G" -> title = "fmt_title" -"H" -> album ? album ^ "H" -> title = "fmt_title" -"I" -> album ? album ^ "I" -> title = "fmt_title" -"J" -> album ? album ^ "J" -> title = "fmt_title" -"K" -> album ? album ^ "K" -> title = "fmt_title" -"L" -> album ? album ^ "L" -> title = "fmt_title" -"M" -> album ? album ^ "M" -> title = "fmt_title" -"N" -> album ? album ^ "N" -> title = "fmt_title" -"O" -> album ? album ^ "O" -> title = "fmt_title" -"P" -> album ? album ^ "P" -> title = "fmt_title" -"Q" -> album ? album ^ "Q" -> title = "fmt_title" -"R" -> album ? album ^ "R" -> title = "fmt_title" -"S" -> album ? album ^ "S" -> title = "fmt_title" -"T" -> album ? album ^ "T" -> title = "fmt_title" -"U" -> album ? album ^ "U" -> title = "fmt_title" -"V" -> album ? album ^ "V" -> title = "fmt_title" -"W" -> album ? album ^ "W" -> title = "fmt_title" -"X" -> album ? album ^ "X" -> title = "fmt_title" -"Y" -> album ? album ^ "Y" -> title = "fmt_title" -"Z" -> album ? album ^ "Z" -> title = "fmt_title" - +%byfirstletter "custom_album" "Album A to Z" "album" # Define the A to Z track sub menu -%menu_start "custom_track" "Track A to Z" -"Numeric" -> title ? title < "A" -> title = "fmt_title" -"A" -> title ? title ^ "A" -> title = "fmt_title" -"B" -> title ? title ^ "B" -> title = "fmt_title" -"C" -> title ? title ^ "C" -> title = "fmt_title" -"D" -> title ? title ^ "D" -> title = "fmt_title" -"E" -> title ? title ^ "E" -> title = "fmt_title" -"F" -> title ? title ^ "F" -> title = "fmt_title" -"G" -> title ? title ^ "G" -> title = "fmt_title" -"H" -> title ? title ^ "H" -> title = "fmt_title" -"I" -> title ? title ^ "I" -> title = "fmt_title" -"J" -> title ? title ^ "J" -> title = "fmt_title" -"K" -> title ? title ^ "K" -> title = "fmt_title" -"L" -> title ? title ^ "L" -> title = "fmt_title" -"M" -> title ? title ^ "M" -> title = "fmt_title" -"N" -> title ? title ^ "N" -> title = "fmt_title" -"O" -> title ? title ^ "O" -> title = "fmt_title" -"P" -> title ? title ^ "P" -> title = "fmt_title" -"Q" -> title ? title ^ "Q" -> title = "fmt_title" -"R" -> title ? title ^ "R" -> title = "fmt_title" -"S" -> title ? title ^ "S" -> title = "fmt_title" -"T" -> title ? title ^ "T" -> title = "fmt_title" -"U" -> title ? title ^ "U" -> title = "fmt_title" -"V" -> title ? title ^ "V" -> title = "fmt_title" -"W" -> title ? title ^ "W" -> title = "fmt_title" -"X" -> title ? title ^ "X" -> title = "fmt_title" -"Y" -> title ? title ^ "Y" -> title = "fmt_title" -"Z" -> title ? title ^ "Z" -> title = "fmt_title" +%byfirstletter "custom_track" "Track A to Z" "title" + +# ^ An empy line ends the menu # Define the A to Z sub menu %menu_start "a2z" "A to Z..." -- cgit v1.2.3