From 2cd55f67e6fd74337d48936ff4020cbe7f60c476 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Tue, 15 Jun 2004 13:31:19 +0000 Subject: [PATCH] Renamed %basename% format %shortfile% git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1498 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- doc/config.sample | 2 +- src/ncmpc.h | 2 +- src/strfsong.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/config.sample b/doc/config.sample index ecbc8cc..b0097dc 100644 --- a/doc/config.sample +++ b/doc/config.sample @@ -12,7 +12,7 @@ #list-format = "%name%|[%artist% - ]%title%|%file%" ## status-format -#status-format = "[%artist% - ]%title%|%basename%" +#status-format = "[%artist% - ]%title%|%shortfile%" ## diff --git a/src/ncmpc.h b/src/ncmpc.h index 6416053..6efe55a 100644 --- a/src/ncmpc.h +++ b/src/ncmpc.h @@ -43,7 +43,7 @@ #define LIST_FORMAT (options.list_format ? options.list_format : DEFAULT_LIST_FORMAT) /* song format - status window */ -#define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%basename%" +#define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%" #define STATUS_FORMAT (options.status_format ? options.status_format : DEFAULT_STATUS_FORMAT) #endif /* NCMPC_H */ diff --git a/src/strfsong.c b/src/strfsong.c index a7eb011..8014472 100644 --- a/src/strfsong.c +++ b/src/strfsong.c @@ -145,7 +145,7 @@ _strfsong(gchar *s, n = end - p + 1; if(*end != '%') n--; - else if (strncmp("%basename%", p, n) == 0) + else if (strncmp("%shortfile%", p, n) == 0) temp = utf8_to_locale(basename(song->file)); else if (strncmp("%file%", p, n) == 0) temp = utf8_to_locale(song->file); -- 2.30.2