aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/detach.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-10-30 21:05:56 +0100
committerRobin Jarry <robin@jarry.cc>2023-11-02 11:59:39 +0100
commit2dfeb7130a8fb97d927a55efa738f110f46cb688 (patch)
treecca6a06999d2be32f01e4ac6ae2998c5f24c2895 /commands/compose/detach.go
parentfaa879f9a84d44f9b251410fc923a827a44df1a7 (diff)
downloadaerc-2dfeb7130a8fb97d927a55efa738f110f46cb688.tar.gz
completion: refactor filter list api
Remove CompletionFromList which is a trivial wrapper around FilterList. Remove the prefix, suffix and isFuzzy arguments from FilterList. Replace prefix, suffix by an optional callback to allow post processing of completion results before presenting them to the user. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'commands/compose/detach.go')
-rw-r--r--commands/compose/detach.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/compose/detach.go b/commands/compose/detach.go
index 91cf2a58..0ac3334e 100644
--- a/commands/compose/detach.go
+++ b/commands/compose/detach.go
@@ -21,7 +21,7 @@ func (Detach) Aliases() []string {
func (*Detach) CompletePath(arg string) []string {
composer, _ := app.SelectedTabContent().(*app.Composer)
- return commands.CompletionFromList(composer.GetAttachments(), arg)
+ return commands.FilterList(composer.GetAttachments(), arg, nil)
}
func (d Detach) Execute(args []string) error {