From 621e677e0445ff0d20bab988fa41645758d414b3 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Fri, 7 May 2021 22:59:35 +0300 Subject: [PATCH] Fix #352. Quit on `q` This uses latest `github.com/awesome-gocui/keybinding` It will also be possible to separate quit shortcuts by space when https://github.com/awesome-gocui/keybinding/pull/3 is merged. --- cmd/root.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index f0c45b64..f575a08d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -77,7 +77,7 @@ func initConfig() { viper.SetDefault("log.path", "./dive.log") viper.SetDefault("log.enabled", false) // keybindings: status view / global - viper.SetDefault("keybinding.quit", "ctrl+c") + viper.SetDefault("keybinding.quit", "ctrl+c,q") viper.SetDefault("keybinding.toggle-view", "tab") viper.SetDefault("keybinding.filter-files", "ctrl+f, ctrl+slash") // keybindings: layer view diff --git a/go.mod b/go.mod index 7225a476..14c1fe5b 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.13 require ( github.com/Microsoft/go-winio v0.4.14 // indirect github.com/awesome-gocui/gocui v0.6.0 - github.com/awesome-gocui/keybinding v1.0.0 + github.com/awesome-gocui/keybinding v1.0.1-0.20190805183143-864552bd36b7 github.com/cespare/xxhash v1.1.0 github.com/docker/cli v0.0.0-20190906153656-016a3232168d github.com/docker/distribution v2.8.2+incompatible // indirect diff --git a/go.sum b/go.sum index ab2fcf0e..a7352ce6 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,8 @@ github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5 github.com/awesome-gocui/gocui v0.5.0/go.mod h1:1QikxFaPhe2frKeKvEwZEIGia3haiOxOUXKinrv17mA= github.com/awesome-gocui/gocui v0.6.0 h1:hhDJiQC12tEsJNJ+iZBBVaSSLFYo9llFuYpQlL5JZVI= github.com/awesome-gocui/gocui v0.6.0/go.mod h1:1QikxFaPhe2frKeKvEwZEIGia3haiOxOUXKinrv17mA= -github.com/awesome-gocui/keybinding v1.0.0 h1:CrnjCfEhWpjcqIQUan9IllaXeRGELdwfjeUmY7ljbng= -github.com/awesome-gocui/keybinding v1.0.0/go.mod h1:z0TyCwIhaT97yU+becTse8Dqh2CvYT0FLw0R0uTk0ag= +github.com/awesome-gocui/keybinding v1.0.1-0.20190805183143-864552bd36b7 h1:DDdWoFOtXWySkgCiGGn80TM/E2FS2T1qJBJJxup9+Vo= +github.com/awesome-gocui/keybinding v1.0.1-0.20190805183143-864552bd36b7/go.mod h1:z0TyCwIhaT97yU+becTse8Dqh2CvYT0FLw0R0uTk0ag= github.com/awesome-gocui/termbox-go v0.0.0-20190427202837-c0aef3d18bcc h1:wGNpKcHU8Aadr9yOzsT3GEsFLS7HQu8HxQIomnekqf0= github.com/awesome-gocui/termbox-go v0.0.0-20190427202837-c0aef3d18bcc/go.mod h1:tOy3o5Nf1bA17mnK4W41gD7PS3u4Cv0P0pqFcoWMy8s= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=