summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feh.19
-rw-r--r--src/options.c15
2 files changed, 24 insertions, 0 deletions
diff --git a/feh.1 b/feh.1
index 2613521..3645b36 100644
--- a/feh.1
+++ b/feh.1
@@ -275,6 +275,15 @@ Enable thumbnail caching (in ~/.thumbnails)
.B -~, --thumb-title STRING
Set title for windows opened from thumbnail mode. See also FORMAT SPECIFIERS.
.TP 5
+.B --index-name BOOL
+Show/Don't show filename in thumbnail/index mode.
+.TP 5
+.B --index-size BOOL
+Show/Don't show filesize in thumbnail/index mode.
+.TP 5
+.B --index-dim BOOL
+Show/Don't show image dimensions in thumbnail/index mode.
+.TP 5
.B --bg-tile FILE
.TP 5
.B --bg-center FILE
diff --git a/src/options.c b/src/options.c
index a82dd8a..870388b 100644
--- a/src/options.c
+++ b/src/options.c
@@ -389,6 +389,9 @@ static void feh_parse_option_array(int argc, char **argv)
{"action7", 1, 0, 215},
{"action8", 1, 0, 216},
{"action9", 1, 0, 217},
+ {"index-name", 1, 0, 230},
+ {"index-size", 1, 0, 231},
+ {"index-dim", 1, 0, 232},
{0, 0, 0, 0}
};
int optch = 0, cmdx = 0, i = 0;
@@ -719,6 +722,15 @@ static void feh_parse_option_array(int argc, char **argv)
case 228:
opt.menu_ctrl_mask = 1;
break;
+ case 230:
+ opt.index_show_name = atoi(optarg);
+ break;
+ case 231:
+ opt.index_show_size = atoi(optarg);
+ break;
+ case 232:
+ opt.index_show_dim = atoi(optarg);
+ break;
default:
break;
}
@@ -942,6 +954,9 @@ void show_usage(void)
" Supports format specifiers, see there.\n"
" -I, --fullindex Same as index mode, but below each thumbnail you\n"
" get image name, size and dimensions\n"
+ " --index-name BOOL Show/Don't show filename in index/thumbnail mode\n"
+ " --index-size BOOL Show/Don't show filesize in index/thumbnail mode\n"
+ " --index-dim BOOL Show/Don't show dimensions in index/thumbnail mode\n"
" --bg-tile FILE\n"
" --bg-center FILE\n"
" --bg-scale FILE\n"