~sircmpwn/aerc

Add initial command to end of completions v1 PROPOSED

Thanks!

To git.sr.ht:~sircmpwn/aerc
   e28f45b..a441e3b  master -> master
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/%3C20190905121152.23718-1-dev%40jeffas.io%3E/mbox | git am -3
Learn more about email & git

[PATCH] Add initial command to end of completions Export this patch

This means that if the user cycles through all completions then they
will see the initial string they entered.
---
 aerc.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/aerc.go b/aerc.go
index 5ba9fab..1a32126 100644
--- a/aerc.go
+++ b/aerc.go
@@ -78,6 +78,7 @@ func getCompletions(aerc *widgets.Aerc, cmd string) []string {
 	for _, set := range getCommands((*aerc).SelectedTab()) {
 		completions = append(completions, set.GetCompletions(aerc, cmd)...)
 	}
+	completions = append(completions, cmd)
 	return completions
 }

--
2.23.0
Thanks!

To git.sr.ht:~sircmpwn/aerc
   e28f45b..a441e3b  master -> master
View this thread in the archives