From 156a53780c7b27aeb7b4de7de56450f26c55a192 Mon Sep 17 00:00:00 2001 From: qsmodo <75080827+qsmodo@users.noreply.github.com> Date: Sun, 12 Sep 2021 15:26:07 -0300 Subject: set title based on prefix and suffix (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: NRK Co-authored-by: Berke Kocaoğlu --- sxiv.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sxiv.h') diff --git a/sxiv.h b/sxiv.h index c914837..902446d 100644 --- a/sxiv.h +++ b/sxiv.h @@ -116,6 +116,12 @@ typedef enum { FF_TN_INIT = 4 } fileflags_t; +typedef enum { + SUFFIX_EMPTY, + SUFFIX_BASENAME, + SUFFIX_FULLPATH, +} suffixmode_t; + typedef struct { const char *name; /* as given by user */ const char *path; /* always absolute */ @@ -280,6 +286,8 @@ struct opt { long embed; char *geometry; char *res_name; + const char *title_prefix; + suffixmode_t title_suffixmode; /* misc flags: */ bool quiet; -- cgit v1.2.3-54-g00ecf