diff options
author | hut <hut@lavabit.com> | 2010-04-17 19:34:35 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-17 19:34:35 +0200 |
commit | eafe24e15e84d64e893ca756272466e29e3f2a49 (patch) | |
tree | d08686dc4cbda3bc7c95db7e1903b4a3bdaafde7 | |
parent | 0abb72df8f740d4e9504f91f5d3657ed8712ce3f (diff) | |
download | ranger-eafe24e15e84d64e893ca756272466e29e3f2a49.tar.gz |
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.
-rw-r--r-- | ranger/defaults/options.py | 3 | ||||
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 3 |
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): |