summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-09 11:35:32 +0100
committerhut <hut@lavabit.com>2010-02-09 11:35:32 +0100
commitdb1721dd9c6fdae2de44a4c8b39cc310a37cbdc0 (patch)
tree03c0c1f2d26d1b3d1e458abaf80166ca0bb6cae4
parentf40dc67a805bc7b82c75756a17eaa1b9a7756600 (diff)
downloadranger-db1721dd9c6fdae2de44a4c8b39cc310a37cbdc0.tar.gz
fixed #54: max_dirsize_for_autopreview option not working
-rw-r--r--TODO4
-rw-r--r--ranger/defaults/options.py1
-rw-r--r--ranger/gui/widgets/browsercolumn.py9
-rw-r--r--ranger/shared/settings.py2
4 files changed, 3 insertions, 13 deletions
diff --git a/TODO b/TODO
index d2aec2cf..55b31290 100644
--- a/TODO
+++ b/TODO
@@ -59,7 +59,7 @@ Bugs
    ( ) #46  10/01/19  old username displayed after using su
    (X) #49  10/01/19  fix unit tests :'(
    ( ) #52  10/01/23  special characters in tab completion
-   ( ) #54  10/01/23  max_dirsize_for_autopreview not working
+   (X) #54  10/01/23  max_dirsize_for_autopreview not working
    ( ) #60  10/02/05  utf support improvable
 
 
@@ -76,7 +76,7 @@ Ideas
 
 Goals for next minor version
 
-   ( ) #54  10/01/23  max_dirsize_for_autopreview not working
+   (X) #54  10/01/23  max_dirsize_for_autopreview not working
    ( ) #55  10/01/24  allow change of filename when pasting
    ( ) #61  10/02/09  show sum of size of marked files
 
diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py
index 0b57b259..71b4cad2 100644
--- a/ranger/defaults/options.py
+++ b/ranger/defaults/options.py
@@ -10,7 +10,6 @@ colorscheme = colorschemes.default
 
 max_history_size = 20
 scroll_offset = 2
-max_dirsize_for_autopreview = None
 preview_files = True
 flushinput = True
 
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 24ca6e1b..7ce3ae1f 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -180,15 +180,6 @@ class BrowserColumn(Pager, Widget):
 		self.win.move(0, 0)
 
 		if not self.target.content_loaded:
-			maxdirsize = self.settings.max_dirsize_for_autopreview
-			if not self.target.force_load and maxdirsize is not None \
-					and self.target.accessible \
-					and self.target.size > maxdirsize:
-				self.color(base_color, 'error')
-				self.win.addnstr("no preview", self.wid)
-				self.color_reset()
-				return
-
 			self.color(base_color)
 			self.win.addnstr("...", self.wid)
 			self.color_reset()
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py
index 3d634652..d5ef3be5 100644
--- a/ranger/shared/settings.py
+++ b/ranger/shared/settings.py
@@ -18,7 +18,7 @@ directories_first sort reverse
 preview_files max_history_size colorscheme
 collapse_preview update_title
 hidden_filter flushinput
-max_dirsize_for_autopreview autosave_bookmarks
+autosave_bookmarks
 """.split()
 
 # -- globalize the settings --