Expose filepath in columns view (#530)

* Expose filepath in columns view

* update
This commit is contained in:
djvs
2024-07-24 12:15:02 -04:00
committed by GitHub
parent b218d90193
commit 8ecbb8b49b
4 changed files with 6 additions and 0 deletions

View File

@@ -172,6 +172,7 @@
## ##
## %l - length ## %l - length
## %f - filename ## %f - filename
## %F - full filepath
## %D - directory ## %D - directory
## %a - artist ## %a - artist
## %A - album artist ## %A - album artist

View File

@@ -472,6 +472,7 @@ For song format you can use:
%l - length %l - length
%f - filename %f - filename
%F - full filepath
%D - directory %D - directory
%a - artist %a - artist
%A - album artist %A - album artist

View File

@@ -47,6 +47,8 @@ const wchar_t *toColumnName(char c)
return L"Filename"; return L"Filename";
case 'D': case 'D':
return L"Directory"; return L"Directory";
case 'F':
return L"Filepath";
case 'a': case 'a':
return L"Artist"; return L"Artist";
case 'A': case 'A':

View File

@@ -168,6 +168,8 @@ MPD::Song::GetFunction charToGetFunction(char c)
return &MPD::Song::getDirectory; return &MPD::Song::getDirectory;
case 'f': case 'f':
return &MPD::Song::getName; return &MPD::Song::getName;
case 'F':
return &MPD::Song::getURI;
case 'a': case 'a':
return &MPD::Song::getArtist; return &MPD::Song::getArtist;
case 'A': case 'A':