Krolyxon
Commit bb85d3d

Branches

Refs →

nsxivbb85d3d

Updated doc for thumbnail cache

Author
Bert
Date
2011-04-08 17:07 +0200
Parent
dc54981
Commit
bb85d3dca6d6618c6e02c3fe6030029730d5c973

+25 −1

2 files changed

  1. M README.md +1 −0
  2. M sxiv.1 +24 −1
M README.md View
@@ -36,6 +36,7 @@ sxiv supports the following command-line options:
3636
3737 -a Display all given files, do not filter out unsupported files
3838 (shorter startup time for long file list or slow file types)
39+ -C Remove all orphaned cache files from thumbnail cache and exit
3940 -d Scale all images to 100%, but fit large images into window
4041 -F Use size-hints to make the window fixed/floating
4142 -f Start in fullscreen mode
M sxiv.1 View
@@ -3,7 +3,7 @@
33 sxiv \- Simple (or small or suckless) X Image Viewer
44 .SH SYNOPSIS
55 .B sxiv
6−.RB [ \-adFfhpqrstvZ ]
6+.RB [ \-aCdFfhpqrstvZ ]
77 .RB [ \-g
88 .IR GEOMETRY ]
99 .RB [ \-z
@@ -24,6 +24,9 @@ sxiv has two modes of operation: image and thumbnail mode. The default is image
2424 mode, in which only the current image is shown. In thumbnail mode a grid of
2525 small previews is displayed, making it easy to choose an image to open.
2626 .P
27+sxiv can also cache its thumbnails. Please see the section THUMBNAIL CACHING
28+for information on how to enable this feature.
29+.P
2730 Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
2831 manager.
2932 .SH OPTIONS
@@ -33,6 +36,9 @@ Display all given files, do not filter out unsupported files. This might result
3336 in a much shorter startup time, when the file list is very long or contains
3437 large files of slow loadable types, e.g. gif and progressive jpg.
3538 .TP
39+.B \-C
40+Remove all orphaned cache files from the thumbnail cache directory and exit.
41+.TP
3642 .B \-d
3743 Scale all images to 100%, but fit large images into window.
3844 .TP
@@ -191,6 +197,23 @@ Pan image left.
191197 .TP
192198 .B Shift+ScrollDown
193199 Pan image right.
200+.SH THUMBNAIL CACHING
201+To enable thumbnail caching, please make sure to create the directory
202+.I ~/.sxiv/
203+with write permissions. sxiv will then store all thumbnails inside this
204+directory, but it will not create this directory by itself. It rather uses the
205+existance of this directory as an affirmation, that the user wants thumbnails
206+to be cached.
207+.P
208+Use the command line option
209+.I \-C
210+to keep the cache directory clean by removing all orphaned cache files.
211+Additionally, run the following command afterwards inside the cache directory
212+to remove empty subdirectories:
213+.P
214+.RS
215+find -type d -empty -delete
216+.RE
194217 .SH AUTHORS
195218 .EX
196219 Bert Muennich <ber.t at gmx.com>