From 680244d0533d2687039d947e00ff9c19abcf3ba8 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Fri, 22 Dec 2023 16:03:11 +0100 Subject: z: complete with fs folders instead of account folders GetFolders returns the current account email folders, not filesystem folders. Use CompleteDirs instead. Fixes: abe228b14d97 ("commands: use completion from go-opt") Fixes: https://todo.sr.ht/~rjarry/aerc/205 Reported-by: Bence Ferdinandy Signed-off-by: Robin Jarry Tested-by: Bence Ferdinandy --- commands/z.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/z.go') diff --git a/commands/z.go b/commands/z.go index 7b93b65d..a2363ae2 100644 --- a/commands/z.go +++ b/commands/z.go @@ -39,7 +39,7 @@ func (Zoxide) Aliases() []string { } func (*Zoxide) CompleteFolder(arg string) []string { - return GetFolders(arg) + return CompletePath(arg, true) } // Execute calls zoxide add and query and delegates actually changing the -- cgit