mirror of
https://github.com/jchook/ranger-zoxide.git
synced 2026-01-07 19:27:23 +08:00
Clean up zoxide command call and get current directory from ranger
This commit is contained in:
parent
aefff2797b
commit
6bf4baa380
1 changed files with 2 additions and 3 deletions
|
|
@ -39,9 +39,8 @@ class z(ranger.api.commands.Command):
|
|||
|
||||
def query(self, args):
|
||||
try:
|
||||
zoxide = self.fm.execute_command(f"zoxide query --exclude \"$PWD\" {' '.join(self.args[1:])}",
|
||||
stdout=PIPE
|
||||
)
|
||||
zoxide = self.fm.execute_command(["zoxide", "query", "--exclude", self.fm.thisdir.path, *self.args[1:]],
|
||||
stdout=PIPE)
|
||||
stdout, stderr = zoxide.communicate()
|
||||
|
||||
if zoxide.returncode == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue