diff options
-rw-r--r-- | ranger/fsobject/directory.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index a71b00a9..0c4f10bd 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -41,6 +41,8 @@ def accept_file(fname, directory, hidden_filter, name_filter): return False if name_filter and name_filter not in fname: return False + if directory.temporary_filter and not directory.temporary_filter.search(fname): + return False return True class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware): @@ -54,6 +56,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware): filenames = None files = None filter = None + temporary_filter = None marked_items = None scroll_begin = 0 |