summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/rc.conf10
-rw-r--r--ranger/container/settings.py2
2 files changed, 11 insertions, 1 deletions
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index 682de60d..e569d602 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -58,10 +58,18 @@ set vcs_backend_git enabled
 set vcs_backend_hg disabled
 set vcs_backend_bzr disabled
 
+# Use one of the supported image preview protocols
+set preview_images false
+
 # Preview images in full color with the external command "w3mimgpreview"?
 # This requires the console web browser "w3m" and a supported terminal.
 # It has been successfully tested with "xterm" and "urxvt" without tmux.
-set preview_images false
+set use_w3m_image_preview false
+
+# Preview images in full color using iTerm2 image previews
+# (http://iterm2.com/images.html). This requires using iTerm2 compiled
+# with image preview support.
+set use_iterm2_image_preview false
 
 # Use a unicode "..." character to mark cut-off filenames?
 set unicode_ellipsis false
diff --git a/ranger/container/settings.py b/ranger/container/settings.py
index ddcc7d14..6adc62ea 100644
--- a/ranger/container/settings.py
+++ b/ranger/container/settings.py
@@ -55,6 +55,8 @@ ALLOWED_SETTINGS = {
     'update_title': bool,
     'update_tmux_title': bool,
     'use_preview_script': bool,
+    'use_iterm2_image_preview': bool,
+    'use_w3m_image_preview' : bool,
     'vcs_aware': bool,
     'vcs_backend_bzr': str,
     'vcs_backend_git': str,