Merge pull request #18 from BanchouBoo/home

If no arguments, go to home directory
This commit is contained in:
Wes Roberts 2026-04-01 01:03:52 -04:00 committed by GitHub
commit c64d4aed90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,10 @@ class z(ranger.api.commands.Command):
Jump around with zoxide (z)
"""
def execute(self):
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:])