diff options
author | Alex Goodman <wagoodman@users.noreply.github.com> | 2023-07-06 10:34:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 10:34:13 -0400 |
commit | b6961534af47758c269f8731a51f2272b60883f9 (patch) | |
tree | f671387d6e949f6a77b845dc81825a620d60cb35 | |
parent | 2a99dd25fe6490a3918221d5f084e71a6349ad5f (diff) | |
parent | f17140f8ce2da67735a68c609d88f0ae78477baa (diff) |
Merge pull request #354 from abitrolly/master
Fix #352. Quit on `q`
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | cmd/root.go | 2 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 4 |
4 files changed, 5 insertions, 5 deletions
@@ -193,7 +193,7 @@ You can override the CI config path with the `--ci-config` option. Key Binding | Description -------------------------------------------|--------------------------------------------------------- -<kbd>Ctrl + C</kbd> | Exit +<kbd>Ctrl + C</kbd> or <kbd>Q</kbd> | Exit <kbd>Tab</kbd> | Switch between the layer and filetree views <kbd>Ctrl + F</kbd> | Filter files <kbd>PageUp</kbd> | Scroll up a page diff --git a/cmd/root.go b/cmd/root.go index f0c45b6..f575a08 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 @@ -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 @@ -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= |