diff options
author | qsmodo <75080827+qsmodo@users.noreply.github.com> | 2021-09-12 20:26:07 +0200 |
---|---|---|
committer | Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr> | 2021-09-16 21:55:31 +0200 |
commit | 156a53780c7b27aeb7b4de7de56450f26c55a192 (patch) | |
tree | 6d8820c2b8d862e7b878cb9cf9bf31d32e26eb56 /sxiv.h | |
parent | 91d9b3128eb5502306f688e68c42e83b3020cb56 (diff) | |
download | nsxiv-156a53780c7b27aeb7b4de7de56450f26c55a192.tar.zst |
set title based on prefix and suffix (#23)
Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com>
Co-authored-by: NRK <nrk@disroot.org>
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'sxiv.h')
-rw-r--r-- | sxiv.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |