commit 2e513572da78d2317e8fa1f08843aae37c4ab4f4
parent bf45572721bb9e54318ae99fd12f85c8fa12f7b8
Author: Sean Enck <sean@ttypty.com>
Date: Tue, 5 Oct 2021 18:28:30 -0400
sort entries during glob
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/cmd/lb/main.go b/cmd/lb/main.go
@@ -5,6 +5,7 @@ import (
"os"
"os/exec"
"path/filepath"
+ "sort"
"strings"
"syscall"
"time"
@@ -186,6 +187,7 @@ func main() {
if !isShow {
stock.Die("cannot glob to clipboard", internal.NewLockboxError("bad glob request"))
}
+ sort.Strings(entries)
}
startColor, endColor, err := internal.GetColor(internal.ColorRed)
if err != nil {