mirror of
https://github.com/jchook/ranger-zoxide.git
synced 2025-12-26 18:34:56 +08:00
Merge pull request #16 from BanchouBoo/master
Exclude current directory from zoxide query
This commit is contained in:
commit
aefff2797b
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class z(ranger.api.commands.Command):
|
||||||
|
|
||||||
def query(self, args):
|
def query(self, args):
|
||||||
try:
|
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=PIPE
|
||||||
)
|
)
|
||||||
stdout, stderr = zoxide.communicate()
|
stdout, stderr = zoxide.communicate()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue