diff options
| author | Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com> | 2018-12-05 02:19:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-05 02:19:41 +0300 |
| commit | 5c481dfe96fc40b8b7ad4fdc63fa0968e6832939 (patch) | |
| tree | 6442b45aeac0e88e83656e871c0e0872d59e4044 /pkg/gui/keybindings.go | |
| parent | Develop (#20) (diff) | |
| download | gitbatch-5c481dfe96fc40b8b7ad4fdc63fa0968e6832939.tar.gz | |
Develop (#23)
* restyle on repository selection
* restyle continued on selections
* added initial logging to git package
* reverse scrolling on commits implemented
* queue converted to first in first out principle
* added sorting
* select all feature added
* code reuse improved and added scrolling to controls view
* update readme
Diffstat (limited to 'pkg/gui/keybindings.go')
| -rw-r--r-- | pkg/gui/keybindings.go | 72 |
1 files changed, 68 insertions, 4 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index f224bc3..a388b51 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -150,6 +150,38 @@ func (gui *Gui) generateKeybindings() error { Description: "Add to queue", Vital: true, }, { + View: mainViewFeature.Name, + Key: gocui.KeyCtrlSpace, + Modifier: gocui.ModNone, + Handler: gui.markAllRepositories, + Display: "ctrl + space", + Description: "Add all to queue", + Vital: false, + }, { + View: mainViewFeature.Name, + Key: gocui.KeyBackspace2, + Modifier: gocui.ModNone, + Handler: gui.unmarkAllRepositories, + Display: "backspace", + Description: "Remove all from queue", + Vital: false, + }, { + View: mainViewFeature.Name, + Key: 'n', + Modifier: gocui.ModNone, + Handler: gui.sortByName, + Display: "n", + Description: "Sort repositories by Name", + Vital: false, + }, { + View: mainViewFeature.Name, + Key: 'm', + Modifier: gocui.ModNone, + Handler: gui.sortByMod, + Display: "m", + Description: "Sort repositories by Modification date", + Vital: false, + }, { View: commitDiffViewFeature.Name, Key: 'c', Modifier: gocui.ModNone, @@ -161,7 +193,7 @@ func (gui *Gui) generateKeybindings() error { View: commitDiffViewFeature.Name, Key: gocui.KeyArrowUp, Modifier: gocui.ModNone, - Handler: gui.commitCursorUp, + Handler: gui.fastCursorUp, Display: "↑", Description: "Page up", Vital: true, @@ -169,7 +201,7 @@ func (gui *Gui) generateKeybindings() error { View: commitDiffViewFeature.Name, Key: gocui.KeyArrowDown, Modifier: gocui.ModNone, - Handler: gui.commitCursorDown, + Handler: gui.fastCursorDown, Display: "↓", Description: "Page down", Vital: true, @@ -177,7 +209,7 @@ func (gui *Gui) generateKeybindings() error { View: commitDiffViewFeature.Name, Key: 'k', Modifier: gocui.ModNone, - Handler: gui.commitCursorUp, + Handler: gui.fastCursorUp, Display: "k", Description: "Page up", Vital: false, @@ -185,7 +217,7 @@ func (gui *Gui) generateKeybindings() error { View: commitDiffViewFeature.Name, Key: 'j', Modifier: gocui.ModNone, - Handler: gui.commitCursorDown, + Handler: gui.fastCursorDown, Display: "j", Description: "Page down", Vital: false, @@ -198,6 +230,38 @@ func (gui *Gui) generateKeybindings() error { Description: "close/cancel", Vital: true, }, { + View: cheatSheetViewFeature.Name, + Key: gocui.KeyArrowUp, + Modifier: gocui.ModNone, + Handler: gui.fastCursorUp, + Display: "↑", + Description: "Up", + Vital: true, + }, { + View: cheatSheetViewFeature.Name, + Key: gocui.KeyArrowDown, + Modifier: gocui.ModNone, + Handler: gui.fastCursorDown, + Display: "↓", + Description: "Down", + Vital: true, + }, { + View: cheatSheetViewFeature.Name, + Key: 'k', + Modifier: gocui.ModNone, + Handler: gui.fastCursorUp, + Display: "k", + Description: "Up", + Vital: false, + }, { + View: cheatSheetViewFeature.Name, + Key: 'j', + Modifier: gocui.ModNone, + Handler: gui.fastCursorDown, + Display: "j", + Description: "Down", + Vital: false, + }, { View: errorViewFeature.Name, Key: 'c', Modifier: gocui.ModNone, |
