From db1721dd9c6fdae2de44a4c8b39cc310a37cbdc0 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 9 Feb 2010 11:35:32 +0100 Subject: fixed #54: max_dirsize_for_autopreview option not working --- TODO | 4 ++-- ranger/defaults/options.py | 1 - ranger/gui/widgets/browsercolumn.py | 9 --------- ranger/shared/settings.py | 2 +- 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 -- -- cgit 1.4.1-2-gfad0