summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/options.py3
-rw-r--r--ranger/gui/widgets/browsercolumn.py3
2 files changed, 1 insertions, 5 deletions
diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py
index 43129652..7c1be4a3 100644
--- a/ranger/defaults/options.py
+++ b/ranger/defaults/options.py
@@ -48,10 +48,9 @@ show_hidden_bookmarks = True
 colorscheme = 'default'
 
 # Preview files on the rightmost column?
-# And collapse the last column if there is nothing to preview?
+# And collapse (shrink) the last column if there is nothing to preview?
 preview_files = True
 preview_directories = True
-max_filesize_for_preview = 300 * 1024  # 300kb
 collapse_preview = True
 
 # Save the console history on exit?
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index c0b60a2e..73f1e61e 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -179,9 +179,6 @@ class BrowserColumn(Pager):
 				and not target.stat.st_mode & stat.S_IFIFO):
 			return False
 
-		maxsize = self.settings.max_filesize_for_preview
-		if maxsize is not None and target.size > maxsize:
-			return False
 		if PREVIEW_WHITELIST.search(target.basename):
 			return True
 		if PREVIEW_BLACKLIST.search(target.basename):
4b8d7'>^
30b5f112 ^
a4b4ed71 ^


a4b4ed71 ^



a4b4ed71 ^
b21edfaa ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50