Rockbox General > Rockbox General Discussion

tagnavi.config v2.0 syntax

(1/20) > >>

rADo:
Having upgraded my iPod 60G to latest CVS code, I have found that tagcache does not work anymore. Only later I realized that my heavily modified tagnavi.config now need a different syntax.

Is there any documentation that describes v2.0 tagnavi.config format in detail?

Thanks.

This is what I am using right now:

--- Code: ---#! rockbox/tagbrowser/2.0
# ^ Version header must be the first line of every file

# Define the search sub menu
%menu_start "search" "Search by..."
"Artist" -> artist ? artist ~ "" -> 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 (sub)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
"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"
"Artist @ A" -> artist ? artist ^ "A"  -> album -> title = "%02d. %s" tracknum title
"Artist @ B" -> artist ? artist ^ "B"  -> album -> title = "%02d. %s" tracknum title
"Artist @ C" -> artist ? artist ^ "C"  -> album -> title = "%02d. %s" tracknum title
"Artist @ D" -> artist ? artist ^ "D"  -> album -> title = "%02d. %s" tracknum title
"Artist @ E" -> artist ? artist ^ "E"  -> album -> title = "%02d. %s" tracknum title
"Artist @ F" -> artist ? artist ^ "F"  -> album -> title = "%02d. %s" tracknum title
"Artist @ G" -> artist ? artist ^ "G"  -> album -> title = "%02d. %s" tracknum title
"Artist @ H" -> artist ? artist ^ "H"  -> album -> title = "%02d. %s" tracknum title
"Artist @ I" -> artist ? artist ^ "I"  -> album -> title = "%02d. %s" tracknum title
"Artist @ J" -> artist ? artist ^ "J"  -> album -> title = "%02d. %s" tracknum title
"Artist @ K" -> artist ? artist ^ "K"  -> album -> title = "%02d. %s" tracknum title
"Artist @ L" -> artist ? artist ^ "L"  -> album -> title = "%02d. %s" tracknum title
"Artist @ M" -> artist ? artist ^ "M"  -> album -> title = "%02d. %s" tracknum title
"Artist @ N" -> artist ? artist ^ "N"  -> album -> title = "%02d. %s" tracknum title
"Artist @ O" -> artist ? artist ^ "O"  -> album -> title = "%02d. %s" tracknum title
"Artist @ P" -> artist ? artist ^ "P"  -> album -> title = "%02d. %s" tracknum title
"Artist @ Q" -> artist ? artist ^ "Q"  -> album -> title = "%02d. %s" tracknum title
"Artist @ R" -> artist ? artist ^ "R"  -> album -> title = "%02d. %s" tracknum title
"Artist @ S" -> artist ? artist ^ "S"  -> album -> title = "%02d. %s" tracknum title
"Artist @ T" -> artist ? artist ^ "T"  -> album -> title = "%02d. %s" tracknum title
"Artist @ U" -> artist ? artist ^ "U"  -> album -> title = "%02d. %s" tracknum title
"Artist @ V" -> artist ? artist ^ "V"  -> album -> title = "%02d. %s" tracknum title
"Artist @ W" -> artist ? artist ^ "W"  -> album -> title = "%02d. %s" tracknum title
"Artist @ X" -> artist ? artist ^ "X"  -> album -> title = "%02d. %s" tracknum title
"Artist @ Y" -> artist ? artist ^ "Y"  -> album -> title = "%02d. %s" tracknum title
"Artist @ Z" -> artist ? artist ^ "Z"  -> album -> title = "%02d. %s" tracknum title

# And finally set main menu as our root menu
%root_menu "main"

--- End code ---

roolku:

--- Quote ---Only later I realized that my heavily modified tagnavi.config
--- End quote ---

'"heavily"? Don't you mean "slightly" ? ;)  ;)

Just kidding - thanks for sharing.

I have attached my work in progress.


--- Quote ---now need a different syntax.
--- End quote ---

Yes, I am not to fond of the "-->", but the submenus are a blessing.


--- Quote ---Is there any documentation that describes v2.0 tagnavi.config format in detail?
--- End quote ---

When I am having more time next month I was planning to update the wiki (unless someone beats me to it).

[attachment deleted by admin, too old]

rADo:

--- Quote from: roolku on September 24, 2006, 10:59:32 AM ---'"heavily"? Don't you mean "slightly" ? ;)  ;)
--- End quote ---

Yes, this one is very light mod :) Previous one was way better, but I have no docs for v2.0 syntax, that is why I am asking for it..

Btw, I like your menu. Thank you!

rADo:
Ok, I am happy with this file:


--- Code: ---#! rockbox/tagbrowser/2.0
# ^ Version header must be the first line of every file

# search sub menu
%menu_start "search" "Search by..."
"Artist" -> artist ? artist ~ "" -> 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 > ""

# artists sub menu
%menu_start "byartist" "Artists A-Z"
"Artist @ A" -> artist ? artist ^ "A"  -> album -> title = "%02d. %s" tracknum title
"Artist @ B" -> artist ? artist ^ "B"  -> album -> title = "%02d. %s" tracknum title
"Artist @ C" -> artist ? artist ^ "C"  -> album -> title = "%02d. %s" tracknum title
"Artist @ D" -> artist ? artist ^ "D"  -> album -> title = "%02d. %s" tracknum title
"Artist @ E" -> artist ? artist ^ "E"  -> album -> title = "%02d. %s" tracknum title
"Artist @ F" -> artist ? artist ^ "F"  -> album -> title = "%02d. %s" tracknum title
"Artist @ G" -> artist ? artist ^ "G"  -> album -> title = "%02d. %s" tracknum title
"Artist @ H" -> artist ? artist ^ "H"  -> album -> title = "%02d. %s" tracknum title
"Artist @ I" -> artist ? artist ^ "I"  -> album -> title = "%02d. %s" tracknum title
"Artist @ J" -> artist ? artist ^ "J"  -> album -> title = "%02d. %s" tracknum title
"Artist @ K" -> artist ? artist ^ "K"  -> album -> title = "%02d. %s" tracknum title
"Artist @ L" -> artist ? artist ^ "L"  -> album -> title = "%02d. %s" tracknum title
"Artist @ M" -> artist ? artist ^ "M"  -> album -> title = "%02d. %s" tracknum title
"Artist @ N" -> artist ? artist ^ "N"  -> album -> title = "%02d. %s" tracknum title
"Artist @ O" -> artist ? artist ^ "O"  -> album -> title = "%02d. %s" tracknum title
"Artist @ P" -> artist ? artist ^ "P"  -> album -> title = "%02d. %s" tracknum title
"Artist @ Q" -> artist ? artist ^ "Q"  -> album -> title = "%02d. %s" tracknum title
"Artist @ R" -> artist ? artist ^ "R"  -> album -> title = "%02d. %s" tracknum title
"Artist @ S" -> artist ? artist ^ "S"  -> album -> title = "%02d. %s" tracknum title
"Artist @ T" -> artist ? artist ^ "T"  -> album -> title = "%02d. %s" tracknum title
"Artist @ U" -> artist ? artist ^ "U"  -> album -> title = "%02d. %s" tracknum title
"Artist @ V" -> artist ? artist ^ "V"  -> album -> title = "%02d. %s" tracknum title
"Artist @ W" -> artist ? artist ^ "W"  -> album -> title = "%02d. %s" tracknum title
"Artist @ X" -> artist ? artist ^ "X"  -> album -> title = "%02d. %s" tracknum title
"Artist @ Y" -> artist ? artist ^ "Y"  -> album -> title = "%02d. %s" tracknum title
"Artist @ Z" -> artist ? artist ^ "Z"  -> album -> title = "%02d. %s" tracknum title

# albums sub menu
%menu_start "byalbum" "Albums A-Z"
"Album @ A" -> album ? album ^ "A"  -> title = "%02d. %s" tracknum title
"Album @ B" -> album ? album ^ "B"  -> title = "%02d. %s" tracknum title
"Album @ C" -> album ? album ^ "C"  -> title = "%02d. %s" tracknum title
"Album @ D" -> album ? album ^ "D"  -> title = "%02d. %s" tracknum title
"Album @ E" -> album ? album ^ "E"  -> title = "%02d. %s" tracknum title
"Album @ F" -> album ? album ^ "F"  -> title = "%02d. %s" tracknum title
"Album @ G" -> album ? album ^ "G"  -> title = "%02d. %s" tracknum title
"Album @ H" -> album ? album ^ "H"  -> title = "%02d. %s" tracknum title
"Album @ I" -> album ? album ^ "I"  -> title = "%02d. %s" tracknum title
"Album @ J" -> album ? album ^ "J"  -> title = "%02d. %s" tracknum title
"Album @ K" -> album ? album ^ "K"  -> title = "%02d. %s" tracknum title
"Album @ L" -> album ? album ^ "L"  -> title = "%02d. %s" tracknum title
"Album @ M" -> album ? album ^ "M"  -> title = "%02d. %s" tracknum title
"Album @ N" -> album ? album ^ "N"  -> title = "%02d. %s" tracknum title
"Album @ O" -> album ? album ^ "O"  -> title = "%02d. %s" tracknum title
"Album @ P" -> album ? album ^ "P"  -> title = "%02d. %s" tracknum title
"Album @ Q" -> album ? album ^ "Q"  -> title = "%02d. %s" tracknum title
"Album @ R" -> album ? album ^ "R"  -> title = "%02d. %s" tracknum title
"Album @ S" -> album ? album ^ "S"  -> title = "%02d. %s" tracknum title
"Album @ T" -> album ? album ^ "T"  -> title = "%02d. %s" tracknum title
"Album @ U" -> album ? album ^ "U"  -> title = "%02d. %s" tracknum title
"Album @ V" -> album ? album ^ "V"  -> title = "%02d. %s" tracknum title
"Album @ W" -> album ? album ^ "W"  -> title = "%02d. %s" tracknum title
"Album @ X" -> album ? album ^ "X"  -> title = "%02d. %s" tracknum title
"Album @ Y" -> album ? album ^ "Y"  -> title = "%02d. %s" tracknum title
"Album @ Z" -> album ? album ^ "Z"  -> title = "%02d. %s" tracknum title

# titles sub menu
%menu_start "bytitle" "Titles A-Z"
"Title @ A" -> title ? title ^ "A"
"Title @ B" -> title ? title ^ "B"
"Title @ C" -> title ? title ^ "C"
"Title @ D" -> title ? title ^ "D"
"Title @ E" -> title ? title ^ "E"
"Title @ F" -> title ? title ^ "F"
"Title @ G" -> title ? title ^ "G"
"Title @ H" -> title ? title ^ "H"
"Title @ I" -> title ? title ^ "I"
"Title @ J" -> title ? title ^ "J"
"Title @ K" -> title ? title ^ "K"
"Title @ L" -> title ? title ^ "L"
"Title @ M" -> title ? title ^ "M"
"Title @ N" -> title ? title ^ "N"
"Title @ O" -> title ? title ^ "O"
"Title @ P" -> title ? title ^ "P"
"Title @ Q" -> title ? title ^ "Q"
"Title @ R" -> title ? title ^ "R"
"Title @ S" -> title ? title ^ "S"
"Title @ T" -> title ? title ^ "T"
"Title @ U" -> title ? title ^ "U"
"Title @ V" -> title ? title ^ "V"
"Title @ W" -> title ? title ^ "W"
"Title @ X" -> title ? title ^ "X"
"Title @ Y" -> title ? title ^ "Y"
"Title @ Z" -> title ? title ^ "Z"

# decades sub menu
%menu_start "bydecades" "Decades"
""-> artist ? year == "0"                    -> album -> title = "%02d %s" tracknum title
"sixties"   -> artist ? year >= "1960" & year < "1970" -> album -> title = "%02d %s" tracknum title
"seventies" -> artist ? year >= "1970" & year < "1980" -> album -> title = "%02d %s" tracknum title
"eighties"  -> artist ? year >= "1980" & year < "1990" -> album -> title = "%02d %s" tracknum title
"nineties"  -> artist ? year >= "1990" & year < "2000" -> album -> title = "%02d %s" tracknum title
"2000ties"  -> artist ? year >= "2000" & year < "2010" -> album -> title = "%02d %s" tracknum title

# main menu
%menu_start "main" "Browse by..."
"Artists A-Z" ==> "byartist"
"Albums A-Z" ==> "byalbum"
"Titles A-Z" ==> "bytitle"
"Genres"    -> genre    -> artist -> album -> title = "%02d. %s" tracknum title
"Decades" ==> "bydecades"
"All Artists"   -> artist   -> album  -> title = "%02d. %s" tracknum title
"All Albums"    -> album    -> title = "%02d. %s" tracknum title
"Browse by Year"     -> year ? year > "1000" & year < "2008" -> artist -> album -> title = "%02d. %s" tracknum title
"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"
"Search..." ==> "search"

# And finally set main menu as our root menu
%root_menu "main"

--- End code ---

xlarge:

--- Quote from: roolku on September 24, 2006, 10:59:32 AM ---...I have attached my work in progress...
--- End quote ---

Just FYI my x5 doesn't boot with your tagnavi.config.

Don't know why yet...


edit; it does boot, but doesn't show me any interface... just freezes at the logotype.

Navigation

[0] Message Index

[#] Next page

Go to full version