summaryrefslogtreecommitdiff
path: root/apps/tagnavi.config
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-09-19 11:54:33 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-09-19 11:54:33 +0000
commitba34c379676f629d94b80d0c4076e6b08ade171e (patch)
tree5aa0ad237f799c01f8b80a25dddb2a974399b767 /apps/tagnavi.config
parent1d5b248f7b8ed9a82f63587f9090556a45885405 (diff)
Improved tag browser configuration file syntax with submenus and
includes (custom user menu, without overwriting by default menu). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagnavi.config')
-rw-r--r--apps/tagnavi.config61
1 files changed, 46 insertions, 15 deletions
diff --git a/apps/tagnavi.config b/apps/tagnavi.config
index 55418718bf..9821c30faf 100644
--- a/apps/tagnavi.config
+++ b/apps/tagnavi.config
@@ -1,15 +1,46 @@
-"Artist" artist : album : title = "%02d. %s" tracknum title
-"Album" album : title = "%02d. %s" tracknum title
-"Genre" genre : artist : album : title = "%02d. %s" tracknum title
-"Composer" composer : album : title = "%02d. %s" tracknum title
-"Track" title
-"Year" year ? year > "1000" & year < "2008" : artist : album : title = "%02d. %s" tracknum title
-"Search by artist" artist ? artist ~ "" : album : title = "%02d. %s" tracknum title
-"Search by album" album ? album ~ "" : title = "%02d. %s" tracknum title
-"Search by title" title ? title ~ ""
-"Search by filename" filename ? filename ~ ""
-"Search by score" title = "(%3d) %s" autoscore title ? autoscore > ""
-"Most played tracks" title = "(%3d) %s" playcount title %sort = "inverse" %limit = "100" ? playcount > "0"
-"Never played tracks" artist ? playcount == "0" : album : title = "%02d. %s" tracknum title
-"Best tracks" artist ? playcount > "1" & autoscore > "85" : album : title = "%02d. %s (%3d)" tracknum title autoscore
-"List played tracks" title = "(%3d/%d) %s" autoscore playcount title ? playcount > "0"
+#! rockbox/tagbrowser/2.0
+# ^ Version header must be the first line of every file
+
+# Tag Browser configuration file, do not edit as changes will be lost!
+# Instead, you can modify "/.rockbox/tagnavi_custom.config" which will never
+# get overwritten automatically.
+
+# Include our custom menu
+%include "/.rockbox/tagnavi_custom.config"
+
+#
+# === Begin of "Search by..." sub menu
+#
+
+# Define the search sub menu
+%menu_start "search" "Search by..."
+"Artist" -> artist ? artist ~ "" -> album -> title = "%02d. %s" tracknum title
+"Artist -> (score > 85)" artist ? artist ~ "" & autoscore >= "85" -> album -> title = "%02d. %s" tracknum title
+"Album" -> album ? album ~ "" -> title = "%02d. %s" tracknum title
+"Title" -> title ? title ~ ""
+"Filename" -> filename ? filename ~ ""
+"Score" -> title = "(%3d) %s" autoscore title ? autoscore > ""
+
+# ^ An empy line ends the menu
+
+#
+# === Begin of main menu
+#
+
+# Define the title of the main menu
+%menu_start "main" "Browse by..."
+"Artist" -> artist -> album -> title = "%02d. %s" tracknum title
+"Album" -> album -> title = "%02d. %s" tracknum title
+"Genre" -> genre -> artist -> album -> title = "%02d. %s" tracknum title
+"Composer" -> composer -> album -> title = "%02d. %s" tracknum title
+"Track" -> title
+"Year" -> year ? year > "1000" & year < "2008" -> artist -> album -> title = "%02d. %s" tracknum title
+"Search..." ==> "search"
+"Most played tracks" -> title = "(%3d) %s" playcount title %sort = "inverse" %limit = "100" ? playcount > "0"
+"Never played tracks" -> artist ? playcount == "0" -> album -> title = "%02d. %s" tracknum title
+"Best tracks" -> artist ? playcount > "1" & autoscore > "85" -> album -> title = "%02d. %s (%3d)" tracknum title autoscore
+"List played tracks" -> title = "(%3d/%d) %s" autoscore playcount title ? playcount > "0"
+"Custom view..." ==> "custom"
+
+# And finally set main menu as our root menu
+%root_menu "main"