diff options
| author | İbrahim Serdar Açıkgöz <serdaracikgoz86@gmail.com> | 2018-12-07 18:34:45 +0300 |
|---|---|---|
| committer | İbrahim Serdar Açıkgöz <serdaracikgoz86@gmail.com> | 2018-12-07 18:34:45 +0300 |
| commit | d7de2b4c7b689feac15a55fe47ffa68e56b9fd72 (patch) | |
| tree | 6f8dbe07cdb30cf7ccdd5920b36d0ef637182753 /pkg/gui/keybindings.go | |
| parent | Merge remote-tracking branch 'origin/feature_status' into develop (diff) | |
| download | gitbatch-d7de2b4c7b689feac15a55fe47ffa68e56b9fd72.tar.gz | |
merge stash and status
Diffstat (limited to 'pkg/gui/keybindings.go')
| -rw-r--r-- | pkg/gui/keybindings.go | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 0f3f7b8..0cfd113 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -167,14 +167,6 @@ func (gui *Gui) generateKeybindings() error { Description: "Sort repositories by Modification date", Vital: false, }, { - View: mainViewFeature.Name, - Key: 's', - Modifier: gocui.ModNone, - Handler: gui.showStashView, - Display: "s", - Description: "show stash", - Vital: true, - }, { View: "", Key: gocui.KeyCtrlC, Modifier: gocui.ModNone, @@ -420,17 +412,23 @@ func (gui *Gui) generateKeybindings() error { Display: "c", Description: "close/cancel", Vital: true, - }, - // Stash View - { - View: "stash", + }, { + View: statusHeaderViewFeature.Name, Key: 'c', Modifier: gocui.ModNone, - Handler: gui.closeStashView, + Handler: gui.closeStatusView, Display: "c", Description: "close/cancel", Vital: true, - }, + }, { + View: mainViewFeature.Name, + Key: 's', + Modifier: gocui.ModNone, + Handler: gui.openStatusView, + Display: "s", + Description: "Open Status", + Vital: true, + }, } for _, binding := range individualKeybindings { gui.KeyBindings = append(gui.KeyBindings, binding) |
