mirror of
https://github.com/jchook/ranger-zoxide.git
synced 2025-12-26 10:14:57 +08:00
Exclude current directory from zoxide query
This commit is contained in:
parent
281828de06
commit
27dc791aa1
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class z(ranger.api.commands.Command):
|
|||
|
||||
def query(self, args):
|
||||
try:
|
||||
zoxide = self.fm.execute_command(f"zoxide query {' '.join(self.args[1:])}",
|
||||
zoxide = self.fm.execute_command(f"zoxide query --exclude \"$PWD\" {' '.join(self.args[1:])}",
|
||||
stdout=PIPE
|
||||
)
|
||||
stdout, stderr = zoxide.communicate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue