Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 1 | #! rockbox/tagbrowser/2.0 |
| 2 | # ^ Version header must be the first line of every file |
| 3 | |
| 4 | # Tag Browser configuration file, do not edit as changes will be lost! |
| 5 | # Instead, you can modify "/.rockbox/tagnavi_custom.config" which will never |
| 6 | # get overwritten automatically. |
| 7 | |
Miika Pekkarinen | b89b5ba | 2006-10-15 11:01:18 +0000 | [diff] [blame] | 8 | # Basic format declarations |
Dan Everton | f4a61f0 | 2007-08-03 10:00:42 +0000 | [diff] [blame] | 9 | %format "fmt_title" "%d.%02d. %s" discnum tracknum title ? discnum > "0" |
Miika Pekkarinen | 9d9937a | 2007-04-12 20:14:05 +0000 | [diff] [blame] | 10 | %format "fmt_title" "%02d. %s - %02d:%02d" tracknum title Lm Ls ? tracknum > "0" |
| 11 | %format "fmt_title" "%s - %02d:%02d" title Lm Ls |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 12 | %format "fmt_mostplayed" "%2d|%3d %s (%s)" playcount autoscore title artist %sort = "inverse" %limit = "100" |
Miika Pekkarinen | 02df5a8 | 2006-10-24 16:20:48 +0000 | [diff] [blame] | 13 | %format "fmt_lastplayed" "%06d%s - %s" lastplayed artist title %sort = "inverse" %limit = "99" %strip = "6" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 14 | %format "fmt_forgotten" "%06d%s - %s" lastplayed artist title %limit = "99" %strip = "6" |
| 15 | %format "fmt_best_tracks" "%02d. %s (%3d)" tracknum title autoscore |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 16 | %format "fmt_score" "(%3d) %s-%s" autoscore title artist |
Miika Pekkarinen | 0b5998c | 2007-04-07 11:23:08 +0000 | [diff] [blame] | 17 | %format "fmt_rating" "(%2d) %s-%s" rating title artist %sort = "inverse" |
Miika Pekkarinen | b89b5ba | 2006-10-15 11:01:18 +0000 | [diff] [blame] | 18 | |
Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 19 | # Include our custom menu |
| 20 | %include "/.rockbox/tagnavi_custom.config" |
| 21 | |
| 22 | # |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 23 | # === Begin of "A to Z" sub menus |
| 24 | # |
| 25 | |
| 26 | # Define the A to Z Artist sub menu |
| 27 | %menu_start "custom_artist" "Artist A to Z" |
| 28 | "Numeric" -> artist ? artist < "A" -> album -> title = "fmt_title" |
| 29 | "A" -> artist ? artist ^ "A" -> album -> title = "fmt_title" |
| 30 | "B" -> artist ? artist ^ "B" -> album -> title = "fmt_title" |
| 31 | "C" -> artist ? artist ^ "C" -> album -> title = "fmt_title" |
| 32 | "D" -> artist ? artist ^ "D" -> album -> title = "fmt_title" |
| 33 | "E" -> artist ? artist ^ "E" -> album -> title = "fmt_title" |
| 34 | "F" -> artist ? artist ^ "F" -> album -> title = "fmt_title" |
| 35 | "G" -> artist ? artist ^ "G" -> album -> title = "fmt_title" |
| 36 | "H" -> artist ? artist ^ "H" -> album -> title = "fmt_title" |
| 37 | "I" -> artist ? artist ^ "I" -> album -> title = "fmt_title" |
| 38 | "J" -> artist ? artist ^ "J" -> album -> title = "fmt_title" |
| 39 | "K" -> artist ? artist ^ "K" -> album -> title = "fmt_title" |
| 40 | "L" -> artist ? artist ^ "L" -> album -> title = "fmt_title" |
| 41 | "M" -> artist ? artist ^ "M" -> album -> title = "fmt_title" |
| 42 | "N" -> artist ? artist ^ "N" -> album -> title = "fmt_title" |
| 43 | "O" -> artist ? artist ^ "O" -> album -> title = "fmt_title" |
| 44 | "P" -> artist ? artist ^ "P" -> album -> title = "fmt_title" |
| 45 | "Q" -> artist ? artist ^ "Q" -> album -> title = "fmt_title" |
| 46 | "R" -> artist ? artist ^ "R" -> album -> title = "fmt_title" |
| 47 | "S" -> artist ? artist ^ "S" -> album -> title = "fmt_title" |
Steve Bavin | a25b76e | 2007-10-17 13:53:48 +0000 | [diff] [blame] | 48 | "T" -> artist ? artist ^ "T" -> album -> title = "fmt_title" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 49 | "U" -> artist ? artist ^ "U" -> album -> title = "fmt_title" |
| 50 | "V" -> artist ? artist ^ "V" -> album -> title = "fmt_title" |
| 51 | "W" -> artist ? artist ^ "W" -> album -> title = "fmt_title" |
| 52 | "X" -> artist ? artist ^ "X" -> album -> title = "fmt_title" |
| 53 | "Y" -> artist ? artist ^ "Y" -> album -> title = "fmt_title" |
| 54 | "Z" -> artist ? artist ^ "Z" -> album -> title = "fmt_title" |
| 55 | |
| 56 | # ^ An empy line ends the menu |
| 57 | |
| 58 | # Define the A to Z album sub menu |
| 59 | %menu_start "custom_album" "Album A to Z" |
| 60 | "Numeric" -> album ? album < "A" -> title = "fmt_title" |
| 61 | "A" -> album ? album ^ "A" -> title = "fmt_title" |
| 62 | "B" -> album ? album ^ "B" -> title = "fmt_title" |
| 63 | "C" -> album ? album ^ "C" -> title = "fmt_title" |
| 64 | "D" -> album ? album ^ "D" -> title = "fmt_title" |
| 65 | "E" -> album ? album ^ "E" -> title = "fmt_title" |
| 66 | "F" -> album ? album ^ "F" -> title = "fmt_title" |
| 67 | "G" -> album ? album ^ "G" -> title = "fmt_title" |
| 68 | "H" -> album ? album ^ "H" -> title = "fmt_title" |
| 69 | "I" -> album ? album ^ "I" -> title = "fmt_title" |
| 70 | "J" -> album ? album ^ "J" -> title = "fmt_title" |
| 71 | "K" -> album ? album ^ "K" -> title = "fmt_title" |
| 72 | "L" -> album ? album ^ "L" -> title = "fmt_title" |
| 73 | "M" -> album ? album ^ "M" -> title = "fmt_title" |
| 74 | "N" -> album ? album ^ "N" -> title = "fmt_title" |
| 75 | "O" -> album ? album ^ "O" -> title = "fmt_title" |
| 76 | "P" -> album ? album ^ "P" -> title = "fmt_title" |
| 77 | "Q" -> album ? album ^ "Q" -> title = "fmt_title" |
| 78 | "R" -> album ? album ^ "R" -> title = "fmt_title" |
| 79 | "S" -> album ? album ^ "S" -> title = "fmt_title" |
Steve Bavin | a25b76e | 2007-10-17 13:53:48 +0000 | [diff] [blame] | 80 | "T" -> album ? album ^ "T" -> title = "fmt_title" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 81 | "U" -> album ? album ^ "U" -> title = "fmt_title" |
| 82 | "V" -> album ? album ^ "V" -> title = "fmt_title" |
| 83 | "W" -> album ? album ^ "W" -> title = "fmt_title" |
| 84 | "X" -> album ? album ^ "X" -> title = "fmt_title" |
| 85 | "Y" -> album ? album ^ "Y" -> title = "fmt_title" |
| 86 | "Z" -> album ? album ^ "Z" -> title = "fmt_title" |
| 87 | |
Steve Bavin | b1caffc | 2007-10-17 12:23:21 +0000 | [diff] [blame] | 88 | # Define the A to Z track sub menu |
| 89 | %menu_start "custom_track" "Track A to Z" |
| 90 | "Numeric" -> title ? title < "A" -> title = "fmt_title" |
| 91 | "A" -> title ? title ^ "A" -> title = "fmt_title" |
| 92 | "B" -> title ? title ^ "B" -> title = "fmt_title" |
| 93 | "C" -> title ? title ^ "C" -> title = "fmt_title" |
| 94 | "D" -> title ? title ^ "D" -> title = "fmt_title" |
| 95 | "E" -> title ? title ^ "E" -> title = "fmt_title" |
| 96 | "F" -> title ? title ^ "F" -> title = "fmt_title" |
| 97 | "G" -> title ? title ^ "G" -> title = "fmt_title" |
| 98 | "H" -> title ? title ^ "H" -> title = "fmt_title" |
| 99 | "I" -> title ? title ^ "I" -> title = "fmt_title" |
| 100 | "J" -> title ? title ^ "J" -> title = "fmt_title" |
| 101 | "K" -> title ? title ^ "K" -> title = "fmt_title" |
| 102 | "L" -> title ? title ^ "L" -> title = "fmt_title" |
| 103 | "M" -> title ? title ^ "M" -> title = "fmt_title" |
| 104 | "N" -> title ? title ^ "N" -> title = "fmt_title" |
| 105 | "O" -> title ? title ^ "O" -> title = "fmt_title" |
| 106 | "P" -> title ? title ^ "P" -> title = "fmt_title" |
| 107 | "Q" -> title ? title ^ "Q" -> title = "fmt_title" |
| 108 | "R" -> title ? title ^ "R" -> title = "fmt_title" |
| 109 | "S" -> title ? title ^ "S" -> title = "fmt_title" |
Steve Bavin | a25b76e | 2007-10-17 13:53:48 +0000 | [diff] [blame] | 110 | "T" -> title ? title ^ "T" -> title = "fmt_title" |
Steve Bavin | b1caffc | 2007-10-17 12:23:21 +0000 | [diff] [blame] | 111 | "U" -> title ? title ^ "U" -> title = "fmt_title" |
| 112 | "V" -> title ? title ^ "V" -> title = "fmt_title" |
| 113 | "W" -> title ? title ^ "W" -> title = "fmt_title" |
| 114 | "X" -> title ? title ^ "X" -> title = "fmt_title" |
| 115 | "Y" -> title ? title ^ "Y" -> title = "fmt_title" |
| 116 | "Z" -> title ? title ^ "Z" -> title = "fmt_title" |
| 117 | |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 118 | # Define the A to Z sub menu |
| 119 | %menu_start "a2z" "A to Z..." |
| 120 | "Artists" ==> "custom_artist" |
| 121 | "Albums" ==> "custom_album" |
Steve Bavin | b1caffc | 2007-10-17 12:23:21 +0000 | [diff] [blame] | 122 | "Tracks" ==> "custom_track" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 123 | |
| 124 | # |
Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 125 | # === Begin of "Search by..." sub menu |
| 126 | # |
| 127 | |
| 128 | # Define the search sub menu |
| 129 | %menu_start "search" "Search by..." |
Miika Pekkarinen | b89b5ba | 2006-10-15 11:01:18 +0000 | [diff] [blame] | 130 | "Artist" -> artist ? artist ~ "" -> album -> title = "fmt_title" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 131 | "Album Artist" -> albumartist ? albumartist ~ "" -> album -> title = "fmt_title" |
Miika Pekkarinen | b89b5ba | 2006-10-15 11:01:18 +0000 | [diff] [blame] | 132 | "Album" -> album ? album ~ "" -> title = "fmt_title" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 133 | "Title" -> title = "fmt_title" ? title ~ "" |
| 134 | "Album by year" -> album ? year = "" -> title = "fmt_title" |
| 135 | "Artist between years" -> artist ? year >= "" & year <= "" -> album -> title = "fmt_title" |
| 136 | "Album between years" -> album ? year >= "" & year <= "" -> title = "fmt_title" |
Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 137 | "Filename" -> filename ? filename ~ "" |
Miika Pekkarinen | b89b5ba | 2006-10-15 11:01:18 +0000 | [diff] [blame] | 138 | "Score" -> title = "fmt_score" ? autoscore > "" |
Miika Pekkarinen | 0b5998c | 2007-04-07 11:23:08 +0000 | [diff] [blame] | 139 | "User Rating" -> title = "fmt_rating" ? rating > "" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 140 | "Comment" -> album ? comment ~ "" -> title = "fmt_title" |
Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 141 | |
Jonathan Gordon | 4d18aa3 | 2007-10-29 12:02:55 +0000 | [diff] [blame] | 142 | # Define the "same as current" sub menu |
| 143 | %menu_start "same" "Same as current" |
Robert Kukla | c436657 | 2007-10-30 10:02:57 +0000 | [diff] [blame] | 144 | "Directory" -> title ? filename ^ "#directory#" |
| 145 | "Title" -> title = "fmt_title" ? title = "#title#" |
Jonathan Gordon | 4d18aa3 | 2007-10-29 12:02:55 +0000 | [diff] [blame] | 146 | "Artist" -> album ? artist = "#artist#" -> title = "fmt_title" |
Robert Kukla | dd12c6c | 2007-11-02 16:44:13 +0000 | [diff] [blame] | 147 | "Album" -> title = "fmt_title" ? album = "#album#" |
Robert Kukla | c436657 | 2007-10-30 10:02:57 +0000 | [diff] [blame] | 148 | "Composer" -> title = "fmt_title" ? composer = "#composer#" |
Jonathan Gordon | 4d18aa3 | 2007-10-29 12:02:55 +0000 | [diff] [blame] | 149 | |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 150 | # Define the runtime sub menu |
| 151 | %menu_start "runtime" "Play history" |
| 152 | "Most played (Plays|Score)" -> title = "fmt_mostplayed" ? playcount > "0" |
| 153 | "Recently played tracks" -> title = "fmt_lastplayed" ? playcount > "0" |
| 154 | "Never played tracks" -> artist ? playcount == "0" -> album -> title = "fmt_title" |
| 155 | "Favourite artists" -> artist ? playcount > "3" & autoscore > "85" -> album -> title = "fmt_best_tracks" |
| 156 | "Favourite albums" -> album ? playcount > "3" & autoscore > "85" -> title = "fmt_best_tracks" |
| 157 | "Recent favourites" -> title = "fmt_lastplayed" ? playcount > "3" & autoscore > "85" |
Miika Pekkarinen | 1e16e0e | 2007-12-16 13:51:39 +0000 | [diff] [blame] | 158 | "New favourites" -> artist ? playcount <= "3" & autoscore > "85" -> album -> title = "fmt_best_tracks" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 159 | "Forgotten favourites" -> title = "fmt_forgotten" ? playcount > "3" & autoscore > "85" |
Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 160 | |
| 161 | # |
| 162 | # === Begin of main menu |
| 163 | # |
| 164 | |
| 165 | # Define the title of the main menu |
Steve Bavin | 387e081 | 2008-01-07 12:16:50 +0000 | [diff] [blame^] | 166 | %menu_start "main" "Database" |
Miika Pekkarinen | b89b5ba | 2006-10-15 11:01:18 +0000 | [diff] [blame] | 167 | "Artist" -> artist -> album -> title = "fmt_title" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 168 | "Album Artist" -> albumartist -> album -> title = "fmt_title" |
Miika Pekkarinen | b89b5ba | 2006-10-15 11:01:18 +0000 | [diff] [blame] | 169 | "Album" -> album -> title = "fmt_title" |
| 170 | "Genre" -> genre -> artist -> album -> title = "fmt_title" |
| 171 | "Composer" -> composer -> album -> title = "fmt_title" |
Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 172 | "Track" -> title |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 173 | "Year" -> year ? year > "0" -> artist -> album -> title = "fmt_title" |
Miika Pekkarinen | 0b5998c | 2007-04-07 11:23:08 +0000 | [diff] [blame] | 174 | "User Rating" -> rating -> title = "fmt_title" |
Miika Pekkarinen | cf5671d | 2007-03-31 17:03:48 +0000 | [diff] [blame] | 175 | "Recently Added" -> album ? entryage < "4" & commitid > "0" -> title = "fmt_title" |
| 176 | "A to Z..." ==> "a2z" |
| 177 | "History..." ==> "runtime" |
Jonathan Gordon | 4d18aa3 | 2007-10-29 12:02:55 +0000 | [diff] [blame] | 178 | "Same as current..." ==> "same" |
Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 179 | "Search..." ==> "search" |
Miika Pekkarinen | ba34c37 | 2006-09-19 11:54:33 +0000 | [diff] [blame] | 180 | "Custom view..." ==> "custom" |
| 181 | |
| 182 | # And finally set main menu as our root menu |
| 183 | %root_menu "main" |