From eafe24e15e84d64e893ca756272466e29e3f2a49 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 17 Apr 2010 19:34:35 +0200 Subject: removed option "max_filesize_for_preview" I see no point in keeping it. Even very large files will only have the first few lines loaded and binary files aren't previewed anyway. --- ranger/defaults/options.py | 3 +-- ranger/gui/widgets/browsercolumn.py | 3 --- 2 files changed, 1 insertion(+), 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): -- cgit 1.4.1-2-gfad0