From 8ed17a9a7a9ac21c7685815cf7679e0d4e9fe614 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 1 Mar 2026 21:32:28 +0200 Subject: 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 --- config.h.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index 933ce46..05bdc6e 100644 --- a/config.h.in +++ b/config.h.in @@ -68,6 +68,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. -- cgit v1.2.3