aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2018-05-08 20:22:29 +0100
committerHarry Jeffery <harry@exec64.co.uk>2018-05-08 20:43:02 +0100
commit713c559c1eed3ea91f470afe729cfbd17f99c4a7 (patch)
treef6c15a3c8e86e5708492d8aa3ee7d6d1c807faec
parent6882c7a41284191c05497f715d214213a89d7b35 (diff)
downloadimv-713c559c1eed3ea91f470afe729cfbd17f99c4a7.tar.gz
Update README
-rw-r--r--README.md47
1 files changed, 36 insertions, 11 deletions
diff --git a/README.md b/README.md
index 12c0680..12e3a1d 100644
--- a/README.md
+++ b/README.md
@@ -12,12 +12,19 @@ Features
* Photoshop PSD files
* Animated GIFS
* Various RAW formats
+* Configurable key bindings and behaviour
-Usage
------
+Example Usage
+-------------
+
+The following examples are a quick illustration of how you can use imv.
+For full documentation see the man page.
### Opening images
- imv image1.png another_image.jpeg yet_another.TIFF
+ imv image1.png another_image.jpeg a_directory
+
+### Opening a directory recursively
+ imv -r Photos
### Opening images via stdin
find . "*.png" | imv
@@ -31,20 +38,38 @@ Usage
### Viewing images from stdin
curl http://somesi.te/img.png | imv -
-### Image picker
+### Advanced use
imv can be used to select images in a pipeline by using the `p` hotkey to print
the current image's path to stdout. The `-l` flag can also be used to tell imv
to list the remaining paths on exit for a "open set of images, close unwanted
ones with `x`, then quit imv to pass the remaining images through" workflow.
-#### Picking a wallpaper
- custom-set-wallpaper-script "$(find ./wallpaper -type f -name '*.jpg' | imv | tail -n1)"
+Through custom bindings, imv can be configured to perform almost any action
+you like.
#### Deleting unwanted images
- find -type f -name '*.jpg' | imv | xargs rm -v
+In your imv config:
+
+ [binds]
+ <Shift+x> = exec rm $imv_current_file
+
+Then press 'X' within imv to delete the image.
+
+#### Rotate an image
+In your imv config:
+
+ [binds]
+ <Shift+r> = exec mogrify -rotate 90 $imv_current_file
+
+Then press 'R' within imv to rotate the image 90 degrees using imagemagick.
+
+#### Tag images from imv using dmenu as a prompt
+In your imv config:
+
+ [binds]
+ u = exec echo $imv_current_file >> ~/tags/$(ls ~/tags | dmenu -p "tag")
-#### Choosing pictures to email
- find ./holiday_pics -type f -name '*.jpg' | imv | xargs cp -t ~/outbox
+Then press 'u' within imv to tag the current image.
#### Viewing images from the web
curl -Osw '%{filename_effective}\n' 'http://www.example.com/[1-10].jpg' | imv
@@ -92,6 +117,6 @@ Tests
License
-------
-`imv` is published under the [MIT](LICENSE.MIT) license, but due to the use of
-a GPLv2 library `imv` is also published under the terms of the
+`imv`'s source is published under the [MIT](LICENSE.MIT) license, but due to
+the use of a GPLv2 library `imv` is also published under the terms of the
[GPLv2](LICENSE.GPL) license.