Foobar2000:Preferences:Default User Interface:Playlist View

From Hydrogenaudio Knowledgebase
Revision as of 23:55, 28 May 2014 by Foosion (Talk | contribs)

Jump to: navigation, search
Foobar2000_Logo.png foobar2000
Preferences
Screenshot of the Playlist View page

Deprecated pages


Pages marked * are added via third-party components.

This preferences page allows you to create and edit custom columns for the Default User Interface's default playlist view.

Custom Columns

Custom columns are user-configured columns which can be displayed in the Playlist View of the Default User Interface in addition to the built-in columns. The table in upper part of the preferences page contains the configured custom columns. Each row represents on custom column which is defined by three properties.

Name
The name of the column is displayed in header of the column in the playlist view. A custom column can have the same name as a built-in column or as another custom column. However this might be confusing.
Pattern
The title formatting expression which defines the content of the column. This expression is evaluated for each track in the playlist. The result is displayed in the playlist view. The expression may contain a limited form of markup to dim or highlight parts of the test. See the section "Dimming and Highlighting Text" below for details.
Alignment
The horizontal alignment of the column determines whether the column is displayed left-aligned, right-aligned or centered.

The built-in columns are hard-coded in the Default User Interface and cannot be changed. They also support features like icons in the "Playing" column which are not available for custom columns.

Editing Custom Columns

The following editing functions are available for custom columns. Some functions can be accessed through the context menu of the custom columns table or through keyboard shortcuts when the custom column table has the focus.

Add a custom column
Click the "Add New" button above the custom column table. Alternatively, press Ctrl+N or choose "Add New Entry" from the context menu. Double-clicking an empty entry also works. You can immediately edit the pattern of the added column.
Remove a custom colum
Click the "Remove" button above the custom column table to remove the selected custom column. Alternatively, press Del or choose "Delete Entry" from the context menu.
Change name
Click the name field of the entry. Alternatively, press Shift+F2 or choose "Edit Name" from the context menu. Press Return or Enter to confirm your changes or press Esc to discard them.
Change format
Click the format field of the entry. Alternatively, press F2 or choose "Edit Pattern" from the context menu. Press Return or Enter to confirm your changes or press Esc to discard them.
Change alignment
Click the alignment field of the entry and choose the desired alignment. Alternatively, choose the desired alignment from the "Alignment" submenu of the context menu.

Dimming and Highlighting Text

Parts of the displayed text in a custom column can be dimmed or highlighted using the characters < and >. Dimming and highlighting are both available in three levels. The color of dimmed text will be a blend of the text color and the background color. The color of highlighted text will be a blend of the text color and the highlight color. See the preferences page Colors and Fonts for details.

The following table shows examples for the available markups. The examples assume that the text color is black, the background color is white and the highlight color is blue.

Text with markup Displayed text
>>>strongly highlighted<<< strongly highlighted
>>highlighted<< highlighted
>lightly highlighted< lightly highlighted
normal normal
<lightly dimmed> lightly dimmed
<<dimmed>> dimmed
<<<strongly dimmed>>> strongly dimmed

Custom Grouping Schemes

This list lets you configure custom grouping schemes, available in the Default User Interface Playlist View apart from the standard grouping schemes.

Format

The custom columns and grouping schemes tables have editable fields. To create a new entry, just double-click on what you want to edit. Once created and saved, the custom column or grouping scheme is available for use.

  • Name is any name you want to give the column or grouping scheme so you can toggle it from the right-click menu for the playlist column header. For columns, it is also the name that will actually appear in the header row.
  • Pattern is a pattern in the title formatting syntax.

For a column, the pattern will produce the actual text that appears in that column, for each entry in the playlist.

For a grouping scheme, the pattern won't produce visible text, because a grouping scheme is like a invisible column that's only used for pre-sorting playlist items. The text produced by the pattern will be used internally as a unique key for each group. It should be crafted to produce an identical text string for every item you want to be in the same group.

When crafting a new grouping scheme pattern, it can be helpful to create a temporary column with the same pattern in it, so you know what string is being produced.

Examples

The names don't matter.

Custom column pattern to display the duration, to 3 decimal places of precision:

  • %length_ex%

Custom column pattern to display the track number, with disc number (if available), and an indicator of whether the track is currently playing:

  • $if(%isplaying%,♫ )$if(%discnumber%,%discnumber% | ,)[%tracknumber%]

The spaces are important. The musical note character (♫) is only visible in some fonts; perhaps replace it with a large bullet (•) if you don't want to change fonts.

Custom grouping scheme pattern to have separate groups for Internet streams, songs with album tags, and songs without album tags:

  • $if($stricmp($left(%path%,7),'http://'),<Internet streams>,$if($meta_test(band),%band%,$if($meta_test(albumartist),%albumartist%,$if(%album artist%,%album artist%,$if2(%artist%,<non-album tracks>))))[ – %album%])