From 92bd55765ebf62b6ee289d5a0405fd596d7f11a2 Mon Sep 17 00:00:00 2001 From: Foo-x Date: Mon, 5 Feb 2024 20:14:00 +0900 Subject: [PATCH] feat: allow cd to dir not in zoxide database --- __init__.py | 6 ++++++ 1 file changed, 6 insertions(+) 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