feat: allow cd to dir not in zoxide database

This commit is contained in:
Foo-x 2024-02-05 20:14:00 +09:00
parent 363df97af3
commit 92bd55765e

View file

@ -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