diff --git a/__init__.py b/__init__.py index ebbed36..0bf852f 100644 --- a/__init__.py +++ b/__init__.py @@ -25,6 +25,12 @@ class z(ranger.api.commands.Command): """ def execute(self): results = self.query(self.args[1:]) + + input_path = ' '.join(self.args[1:]) + if not results and os.path.isdir(input_path): + self.fm.cd(input_path) + return + if not results: return