From 43dbcc0bff9cf45333a564e8205eb89b62479bc2 Mon Sep 17 00:00:00 2001 From: Boo <32691832+BanchouBoo@users.noreply.github.com> Date: Fri, 28 Mar 2025 15:13:26 -0400 Subject: [PATCH] If no arguments, go to home directory --- __init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 15f9d83..12f818a 100644 --- a/__init__.py +++ b/__init__.py @@ -24,7 +24,11 @@ class z(ranger.api.commands.Command): Jump around with zoxide (z) """ def execute(self): - results = self.query(self.args[1:]) + results = None + if len(self.args) == 1: + results = [self.fm.home_path] + else: + results = self.query(self.args[1:]) input_path = ' '.join(self.args[1:]) if not results and os.path.isdir(input_path):