summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/display.cpp14
-rw-r--r--src/settings.cpp2
-rw-r--r--src/song.cpp8
3 files changed, 12 insertions, 12 deletions
diff --git a/src/display.cpp b/src/display.cpp
index 42800938..a700a68b 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -63,8 +63,8 @@ std::string Display::Columns()
case 'f':
tag = "Filename";
break;
- case 'F':
- tag = "Full filename";
+ case 'D':
+ tag = "Directory";
break;
case 'a':
tag = "Artist";
@@ -147,8 +147,8 @@ void Display::SongsInColumns(const MPD::Song &s, void *, Menu<MPD::Song> *menu)
case 'l':
get = &MPD::Song::GetLength;
break;
- case 'F':
- get = &MPD::Song::GetFile;
+ case 'D':
+ get = &MPD::Song::GetDirectory;
break;
case 'f':
get = &MPD::Song::GetName;
@@ -252,11 +252,11 @@ void Display::Songs(const MPD::Song &s, void *data, Menu<MPD::Song> *menu)
else
buf << TO_WSTRING(s.GetLength());
break;
- case 'F':
+ case 'D':
if (!right)
- *menu << s.GetFile();
+ *menu << s.GetDirectory();
else
- buf << TO_WSTRING(s.GetFile());
+ buf << TO_WSTRING(s.GetDirectory());
break;
case 'f':
if (!right)
diff --git a/src/settings.cpp b/src/settings.cpp
index d0b82360..6875a7fc 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -248,7 +248,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.song_library_format = "{%n - }{%t}|{%f}";
conf.tag_editor_album_format = "{(%y) }%b";
conf.new_header_first_line = "$b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b";
- conf.new_header_second_line = "{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}";
+ conf.new_header_second_line = "{{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}";
conf.browser_playlist_prefix << clRed << "(playlist)" << clEnd << ' ';
conf.pattern = "%n - %t";
conf.selected_item_prefix << clMagenta;
diff --git a/src/song.cpp b/src/song.cpp
index 5346dbec..bf44697e 100644
--- a/src/song.cpp
+++ b/src/song.cpp
@@ -317,8 +317,8 @@ std::string MPD::Song::Format_ParseBraces(std::string::const_iterator &it, std::
case 'l':
get = &MPD::Song::GetLength;
break;
- case 'F':
- get = &MPD::Song::GetFile;
+ case 'D':
+ get = &MPD::Song::GetDirectory;
break;
case 'f':
get = &MPD::Song::GetName;
@@ -404,8 +404,8 @@ std::string MPD::Song::toString(const std::string &format) const
case 'l':
result += GetLength();
break;
- case 'F':
- result += GetFile();
+ case 'D':
+ result += GetDirectory();
break;
case 'f':
result += GetName();