lltag_formats(5)

πŸ’– lltag_formats(5) β€” the formats tea πŸ’–

okay bestie, so this is the manual for lltag_formats β€” the File Formats Manual page, and it's literally all about the internal formats database file for lltag. it's giving "config file lore" and honestly? we're obsessed. πŸŽ€


✨ NAME ✨

formats β€” the internal formats database file for lltag, no cap πŸ’…


🌸 DESCRIPTION 🌸

so the internal format database is usually chilling at /etc/lltag/formats, right? that's its home base. but β€” and this is the fun part β€” you can override that whole thing by defining a $HOME/.lltag/formats. and listen, if that file exists, the system-wide one is ignored. like, fully ghosted. πŸ™ˆ


these files contain entries that start with a line like this:

[%n - %a - %t]

a title between brackets that gets displayed at runtime. cute, right? it's the lil name tag for your format. ✨

then, the following 3 lines must be given to explain how the format is actually used to parse filenames:

  • type = basename β€” the type is either basename (to parse the last part of the path to a file) or path (to parse the directory part of the path to a file). and when you're actually parsing the path to target files, the basename and path parsers get assembled together β€” all possible combinations will be tried. she's thorough, okay? 😌
  • regexp = %L%N%S-%S%A%S-%S%A%L β€” a string composed of any characters, but with these special fields that do the heavy lifting:
    • %L for delimiter (empty by default, or multiple spaces if --spaces was given)
    • %S for a space (or multiple spaces if --spaces was given)
    • %N for numbers
    • %A for an alphanumeric string without /
    • %P for any path (alphanumeric string with /)
    • %% for %
  • indices = NUMBER,ARTIST,TITLE β€” a list of fields to match (either given by their full name or their associated letter) corresponding to each %N or %A field in the previous format. it may be:
    • AUTHOR (or a)
    • ALBUM (A)
    • GENRE (g)
    • NUMBER (n)
    • TITLE (t)
    • DATE (d)
    • COMMENT (c)
    • IGNORE (i)
also, see FORMAT in the manpage of lltag for the details about these fields. iykyk 🧚

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Brice Goglin


and that's the whole page, bestie β€” this little beauty dropped in November 2006, lives in the File Formats Manual section, and goes by lltag_formats(5). slay. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from