aboutsummaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2026-03-01 21:32:28 +0200
committerDylan Araps <dylan.araps@gmail.com>2026-03-01 21:32:28 +0200
commit8ed17a9a7a9ac21c7685815cf7679e0d4e9fe614 (patch)
tree862adfd2fe9aa13e924bb1de5c8fe4e03165674d /config.h.in
parent0dbc6f7a2ab11488363b78d0c325e81867b26457 (diff)
dfm: truncate entry but keep end
Works with utf8 too. Before: Kamisama.Mou.Sukoshi.Dake.EP01.1080p.FOD.WEB-DL.AAC Kamisama.Mou.Sukoshi.Dake.EP01.1080p.FOD.WEB-DL.AAC After: Kamisama.Mou.Sukoshi.Dake.EP01.1080p.FOD....tar.mkv Kamisama.Mou.Sukoshi.Dake.EP01.1080p.FOD....tar.srt
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 933ce46..05bdc6e 100644
--- a/config.h.in
+++ b/config.h.in
@@ -69,6 +69,20 @@
// #define DFM_CLEAR_EXIT
//
+// Truncation string.
+// Shown when names are too long for the window: blablabla...bla.jpg
+// NOTE: Width must be set to the display width of the string.
+//
+#define DFM_TRUNC_STR "..."
+#define DFM_TRUNC_WIDTH 3
+
+//
+// Truncation length.
+// Where to cut the truncated string in two and draw DFM_TRUNC_STR.
+//
+#define DFM_TRUNC_LEN 7
+
+//
// Disable colors.
// Uncomment to disable all colors.
//