summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 '[^.]\+$')