From 45ad25709779a338ec8abaef539f20d68179105a Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sat, 10 May 2025 22:25:23 -0400 Subject: [PATCH] make right and left navigate; add git commit to plist --- Makefile | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b8d66a4..c36feea 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ why.app: why documentTypes.plist - go tool appify -author "David Ashby" -id "in.yetaga.why" -name "why" -icon ./icon.png -plist ./documentTypes.plist ./why + go tool appify -author "David Ashby" -version `git rev-parse --short HEAD` -id "in.yetaga.why" -name "why" -icon ./icon.png -plist ./documentTypes.plist ./why rm why.app/Contents/README documentTypes.plist: filetypes/filetypes.go filetypes/cmd/gen.go diff --git a/main.go b/main.go index 148e489..6670997 100644 --- a/main.go +++ b/main.go @@ -232,7 +232,7 @@ func main() { // list closed by 'a' destroyFileList(true) } - case "Up": + case "Up", "Right": if curr > 0 { updateImage(filepath.Join(directoryState.currentDirectory, directoryState.images[curr-1]), img) if lb != nil { @@ -241,7 +241,7 @@ func main() { lb.See(curr - 1) } } - case "Down": + case "Down", "Left": if curr < len(directoryState.images)-1 && curr != -1 { updateImage(filepath.Join(directoryState.currentDirectory, directoryState.images[curr+1]), img) if lb != nil {