summary refs log tree commit diff stats
path: root/doc/examples/rifle_different_file_opener.conf
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-09 18:48:02 +0100
committerhut <hut@lavabit.com>2013-03-09 18:48:02 +0100
commitd2c7d024290ee95afa418975c728ad64172dcfec (patch)
treeeea0659eab7bb0c7b9cc2026468c840d7f22a5c9 /doc/examples/rifle_different_file_opener.conf
parent62af277734f05f27f20467393c9d997012ddd2b4 (diff)
downloadranger-d2c7d024290ee95afa418975c728ad64172dcfec.tar.gz
move examples to doc/examples
Diffstat (limited to 'doc/examples/rifle_different_file_opener.conf')
-rw-r--r--doc/examples/rifle_different_file_opener.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/examples/rifle_different_file_opener.conf b/doc/examples/rifle_different_file_opener.conf
new file mode 100644
index 00000000..4a8250b8
--- /dev/null
+++ b/doc/examples/rifle_different_file_opener.conf
@@ -0,0 +1,9 @@
+# Compatible with ranger 1.6.*
+#
+# Replace your rifle.conf with this file to use xdg-open as your file opener.
+# This is, of course, adaptable for use with any other file opener.
+else = xdg-open "$1"
+
+# You need an "editor" and "pager" in order to use certain functions in ranger:
+label editor = "$EDITOR" -- "$@"
+label pager  = "$PAGER" -- "$@"