diff options
author | Delisa Mason <iskanamagus@gmail.com> | 2015-03-08 12:49:55 -0700 |
---|---|---|
committer | Delisa Mason <iskanamagus@gmail.com> | 2015-03-08 12:49:55 -0700 |
commit | 9e53848cf8351d68d830d8dafeab333121556c17 (patch) | |
tree | c2b6d835d74bbdbf16121463f3dc9f9b25d20b7d /ranger | |
parent | dccce1ef1d094cf5260b1f19a6a742d95014e779 (diff) | |
download | ranger-9e53848cf8351d68d830d8dafeab333121556c17.tar.gz |
Add configuration options for image preview modes
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/rc.conf | 10 | ||||
-rw-r--r-- | ranger/container/settings.py | 2 |
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, |