Merge pull request #16 from BanchouBoo/master

Exclude current directory from zoxide query
This commit is contained in:
Wes Roberts 2025-03-26 01:04:39 -04:00 committed by GitHub
commit aefff2797b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()