diff options
author | hut <hut@lavabit.com> | 2010-10-06 03:46:01 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-10-06 03:46:01 +0200 |
commit | 8a38db1aff96a0e04ce692a326c643afe0ede4d0 (patch) | |
tree | afb123177d3818bdbfd850c58115bc534f364315 | |
parent | 34fa7e334f559768be8fd094141a2e716d879807 (diff) | |
download | ranger-8a38db1aff96a0e04ce692a326c643afe0ede4d0.tar.gz |
gui.widgets.statusbar: Added filter notifier in statusbar
-rw-r--r-- | ranger/gui/context.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ranger/gui/context.py b/ranger/gui/context.py index 1e127a2e..20ce2817 100644 --- a/ranger/gui/context.py +++ b/ranger/gui/context.py @@ -22,7 +22,7 @@ CONTEXT_KEYS = ['reset', 'error', 'badinfo', 'selected', 'empty', 'main_column', 'message', 'background', 'good', 'bad', 'space', 'permissions', 'owner', 'group', 'mtime', 'nlink', - 'scroll', 'all', 'bot', 'top', 'percentage', + 'scroll', 'all', 'bot', 'top', 'percentage', 'filter', 'marked', 'tagged', 'tag_marker', 'cut', 'copied', 'help_markup', 'seperator', 'key', 'special', 'border', diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 4b8a730e..fb3e6b21 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -217,6 +217,11 @@ class StatusBar(Widget): max_pos = len(target) - self.column.hei base = 'scroll' + if self.env.cwd.filter: + right.add(" f=", base, 'filter') + right.add(repr(self.env.cwd.filter), base, 'filter') + right.add(", ", "space") + if target.marked_items: if len(target.marked_items) == len(target.files): right.add(human_readable(target.disk_usage, seperator='')) |