Skip to content

Commit e798b59

Browse files
committed
fixup! Add commit menu entry "Add co-author"
Add the new "Add co-author" entry *below* the "Switch to editor" entry. I like to have "Switch to editor" as the first entry, because I think it's the most important command in the menu, and it's nice to invoke it with "<c-o> enter".
1 parent 286015a commit e798b59

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/gui/controllers/helpers/commits_helper.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,18 @@ func (self *CommitsHelper) commitMessageContexts() []types.Context {
195195
func (self *CommitsHelper) OpenCommitMenu(suggestionFunc func(string) []*types.Suggestion) error {
196196
menuItems := []*types.MenuItem{
197197
{
198-
Label: self.c.Tr.AddCoAuthor,
198+
Label: self.c.Tr.OpenInEditor,
199199
OnPress: func() error {
200-
return self.addCoAuthor(suggestionFunc)
200+
return self.SwitchToEditor()
201201
},
202-
Key: 'c',
202+
Key: 'e',
203203
},
204204
{
205-
Label: self.c.Tr.OpenInEditor,
205+
Label: self.c.Tr.AddCoAuthor,
206206
OnPress: func() error {
207-
return self.SwitchToEditor()
207+
return self.addCoAuthor(suggestionFunc)
208208
},
209-
Key: 'e',
209+
Key: 'c',
210210
},
211211
}
212212
return self.c.Menu(types.CreateMenuOptions{

0 commit comments

Comments
 (0)