From 39b565d35f8e778b7ff7f9a32ac3aa4e58b289b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0sa=20Mert=20G=C3=BCrb=C3=BCz?= Date: Thu, 14 Mar 2019 01:37:46 +0300 Subject: [PATCH] fix method documentation --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 7987636..dfaf2e4 100644 --- a/README.md +++ b/README.md @@ -237,6 +237,16 @@ Another example: #:program "sxiv %f" #:view "sxiv %f" #:edit "gimp %f") + +;; As you can see, `#:view` and `#:program` are just the same thing, +;; you can use `#:view #t` to avoid duplication, so this means the +;; same thing with above: + +(assoc + #:pattern "image/.*" + #:program "sxiv %f" + #:view #t + #:edit "gimp %f") ``` Now you can use `jaro --method=view path/to/file` or `jaro --method=edit path/to/file` to open an image. You can define aliases in your shell for these different opening modes, like for bash: