Exclude current directory from zoxide query

This commit is contained in:
Boo 2025-03-05 02:00:24 -05:00
parent 281828de06
commit 27dc791aa1

View file

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