aboutsummaryrefslogtreecommitdiffstats
path: root/commands/z.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-12-22 16:03:11 +0100
committerRobin Jarry <robin@jarry.cc>2024-01-17 11:53:05 +0100
commit680244d0533d2687039d947e00ff9c19abcf3ba8 (patch)
tree1a376f4648df68d1d357f36adb2334585c7fae5f /commands/z.go
parentc80acdcfed20699725a59e314b02edd0fc1995e0 (diff)
downloadaerc-680244d0533d2687039d947e00ff9c19abcf3ba8.tar.gz
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 <bence@ferdinandy.com> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'commands/z.go')
-rw-r--r--commands/z.go2
1 files changed, 1 insertions, 1 deletions
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