about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-06-08 00:40:43 +0200
committerhut <hut@lavabit.com>2010-06-08 00:40:43 +0200
commit1d895690f81f2cb3a308416c29b280e91e681e36 (patch)
tree52eb794bc0042952c99ff346152c21ee9c432787 /ranger
parentdd7f4e5c27fc04cb2abb93e659c3ec1c4411a662 (diff)
downloadranger-1d895690f81f2cb3a308416c29b280e91e681e36.tar.gz
preview: renamed script to "scripts/scope.sh"
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/options.py2
-rw-r--r--[-rwxr-xr-x]ranger/scripts/scope.sh (renamed from ranger/ext/preview.sh)1
2 files changed, 2 insertions, 1 deletions
diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py
index feb02a58..4ff774c6 100644
--- a/ranger/defaults/options.py
+++ b/ranger/defaults/options.py
@@ -40,7 +40,7 @@ hidden_filter = regexp(
 show_hidden = False
 
 # Which script is used to generate file previews?
-preview_script = relpath('ext/preview.sh')  # relative to rangers path
+preview_script = relpath('scripts/scope.sh')  # relative to rangers path
 
 # Show dotfiles in the bookmark preview box?
 show_hidden_bookmarks = True
diff --git a/ranger/ext/preview.sh b/ranger/scripts/scope.sh
index 80186e4d..998476dc 100755..100644
--- a/ranger/ext/preview.sh
+++ b/ranger/scripts/scope.sh
@@ -1,4 +1,5 @@
 #!/bin/bash
+# This script is responsible to generate the previews for ranger.
 mimetype=$(file --mime-type -Lb "$1")
 basetype=$(echo "$mimetype" | grep -o '^[^/]\+')
 extension=$(echo "$1" | grep '\.' | grep -o '[^.]\+$')