~sircmpwn/aerc

Sort path completions v1 PROPOSED

Jeffas: 1
 Sort path completions

 1 files changed, 3 insertions(+), 0 deletions(-)
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/patches/8317/mbox | git am -3
Learn more about email & git

[PATCH] Sort path completions Export this patch

---
 commands/util.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/commands/util.go b/commands/util.go
index 81d2da6..a5c30af 100644
--- a/commands/util.go
+++ b/commands/util.go
@@ -6,6 +6,7 @@ import (
	"os"
	"os/exec"
	"path/filepath"
	"sort"
	"strings"
	"time"

@@ -94,6 +95,7 @@ func CompletePath(path string) []string {
			}
		}

		sort.Strings(matches)
		return matches
	}

@@ -108,6 +110,7 @@ func CompletePath(path string) []string {
		files[i] = f
	}

	sort.Strings(files)
	return files
}

--
2.23.0
Thanks!

To git.sr.ht:~sircmpwn/aerc
   3ec9fd2..043a02d  master -> master
View this thread in the archives