hzeller / timg

A terminal image and video viewer.
GNU General Public License v2.0
1.97k stars 74 forks source link

Customize title #67

Closed xeruf closed 2 years ago

xeruf commented 2 years ago

I would like to have a way to pass a command for generating the title shown above each image, e.g. to include its size

hzeller commented 2 years ago

The --title now allows a format string, so you could for instnace say --title="%f (%wx%h)" to also print the image dimensions. Since filenames can be long with the full path, %b is just showing the basename.