1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Add ammend commit action.

This commit is contained in:
Kristijan Husak
2018-09-12 15:20:35 +02:00
parent 7fb2cafd0c
commit 61f0801bd3
7 changed files with 51 additions and 3 deletions

View File

@ -1,6 +1,7 @@
package gui
import "github.com/jesseduffield/gocui"
import "strings"
// Binding - a keybinding mapping a key and modifier to a handler. The keypress
// is only handled if the given view has focus, or handled globally if the view
@ -98,6 +99,12 @@ func (gui *Gui) GetKeybindings() []Binding {
Modifier: gocui.ModNone,
Handler: gui.handleCommitPress,
Description: gui.Tr.SLocalize("CommitChanges"),
}, {
ViewName: "files",
Key: 'M',
Modifier: gocui.ModNone,
Handler: gui.handleAmendCommitPress,
Description: strings.ToLower(gui.Tr.SLocalize("AmendLastCommit")),
}, {
ViewName: "files",
Key: 'C',