Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Alternate sort for the list of hits from Database->Search->Title?
« previous next »
  • Print
Pages: [1]

Author Topic: Alternate sort for the list of hits from Database->Search->Title?  (Read 92 times)

Offline iPodVT

  • Member
  • *
  • Posts: 497
Alternate sort for the list of hits from Database->Search->Title?
« on: June 29, 2025, 05:48:19 PM »
I'm trying to add a variant of Database->Search->Title (temporarily named Title2) to my tagnavi_user.config file that will sort the list of hits primarily by album and secondarily by title and then display only the titles.  Is this doable?  I can't seem to come up with a variant of %format "fmt_title" (temporarily named %format "fmt_title2") that will achieve this.  Thanks.

[Edit additional]  I already have Title by Album worked out, which gives me a list of albums with submenus for the tracks.  But I'm hoping to unify that into a single menu that has a list of all hits sorted first for albums and then for titles.  Again, thanks.
« Last Edit: June 29, 2025, 06:12:38 PM by iPodVT »
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 497
Re: Alternate sort for the list of hits from Database->Search->Title?
« Reply #1 on: June 29, 2025, 11:51:58 PM »
I figured out a near solution that I think is actually probably better than what I was trying to accomplish.

The new item in my Search menu is tentatively named "Title (album • title)", with the code

"Title (album • title)" -> title = "fmt_title2" ? title ~ ""

It's the same code as the original Rockbox "Title" item except for the new name and the reference to the new formatting string.

The new formatting string (which does the new magic that I need) is

%format "fmt_title2"   "%s • %02d.%s" album tracknum title

which produces a list of albums and titles with tracknums, primarily sorted by album and secondarily sorted by tracknum.  By including the album name it is less ambiguous than what I was originally shooting for, and for my purposes the sorting is more logical and useful than the original Rockbox Title search.  I will use it when searching for things like an Op. (Opus) number or K (Köchel) number that will produce a number of hits - typically 3 or 4 per album in the list - that would be more logically ordered by album first and then tracknum rather than solely by track number (which is what the original Rockbox Title search does).

(As usual, I made a misstatement in my original post where I said I was looking for primary sorting by album and secondary sorting by title.  It should have been secondary sorting by tracknum.)
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 497
Re: Alternate sort for the list of hits from Database->Search->Title?
« Reply #2 on: June 30, 2025, 09:40:00 AM »
I'm still curious to know whether or not it's possible (and if so, how?) to code the format string to do the primary sort on album without having the albums included in the displayed list of hits.

Thanks.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Alternate sort for the list of hits from Database->Search->Title?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.032 seconds with 17 queries.