diff options
author | hut <hut@lavabit.com> | 2010-01-13 20:02:50 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-13 20:02:50 +0100 |
commit | f70ee6b2209af6785cf9a030b1a8893f09a770ac (patch) | |
tree | 1d89c0bc23f1ad64e09235fcabfafe2c6f782ada /ranger | |
parent | e7733577e2ff3c4451a8dbcf03e3f34ee3934b85 (diff) | |
download | ranger-f70ee6b2209af6785cf9a030b1a8893f09a770ac.tar.gz |
browserview: hide certain bookmarks in the list
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/browserview.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index 27a14c1e..7a7e43e6 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -71,7 +71,9 @@ class BrowserView(Widget, DisplayableContainer): def _draw_bookmarks(self): self.need_clear = True - sorted_bookmarks = sorted(self.fm.bookmarks) + sorted_bookmarks = sorted(item for item in self.fm.bookmarks \ + if item[0] != '`' and '/.' not in item[1].path) + def generator(): return zip(range(self.hei), sorted_bookmarks) |