diff options
author | nullawhale <kura98.21@gmail.com> | 2020-10-12 11:13:19 +0300 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-12 21:04:01 +1100 |
commit | 1ff405edd8aa818a2924ab61c930ab58a77e03ea (patch) | |
tree | 7b0182047653f70c340e57b57c12e47dc63c55a2 /pkg/config | |
parent | 031e97ef91654a53e7e534e7d4aa032e06eee319 (diff) |
Copy a commit message to clipboard: Changes to latest version
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/user_config.go | 75 |
1 files changed, 39 insertions, 36 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index a46f9bf1e..0376fd0fa 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -180,24 +180,25 @@ type KeybindingBranchesConfig struct { } type KeybindingCommitsConfig struct { - SquashDown string `yaml:"squashDown"` - RenameCommit string `yaml:"renameCommit"` - RenameCommitWithEditor string `yaml:"renameCommitWithEditor"` - ViewResetOptions string `yaml:"viewResetOptions"` - MarkCommitAsFixup string `yaml:"markCommitAsFixup"` - CreateFixupCommit string `yaml:"createFixupCommit"` - SquashAboveCommits string `yaml:"squashAboveCommits"` - MoveDownCommit string `yaml:"moveDownCommit"` - MoveUpCommit string `yaml:"moveUpCommit"` - AmendToCommit string `yaml:"amendToCommit"` - PickCommit string `yaml:"pickCommit"` - RevertCommit string `yaml:"revertCommit"` - CherryPickCopy string `yaml:"cherryPickCopy"` - CherryPickCopyRange string `yaml:"cherryPickCopyRange"` - PasteCommits string `yaml:"pasteCommits"` - TagCommit string `yaml:"tagCommit"` - CheckoutCommit string `yaml:"checkoutCommit"` - ResetCherryPick string `yaml:"resetCherryPick"` + SquashDown string `yaml:"squashDown"` + RenameCommit string `yaml:"renameCommit"` + RenameCommitWithEditor string `yaml:"renameCommitWithEditor"` + ViewResetOptions string `yaml:"viewResetOptions"` + MarkCommitAsFixup string `yaml:"markCommitAsFixup"` + CreateFixupCommit string `yaml:"createFixupCommit"` + SquashAboveCommits string `yaml:"squashAboveCommits"` + MoveDownCommit string `yaml:"moveDownCommit"` + MoveUpCommit string `yaml:"moveUpCommit"` + AmendToCommit string `yaml:"amendToCommit"` + PickCommit string `yaml:"pickCommit"` + RevertCommit string `yaml:"revertCommit"` + CherryPickCopy string `yaml:"cherryPickCopy"` + CherryPickCopyRange string `yaml:"cherryPickCopyRange"` + PasteCommits string `yaml:"pasteCommits"` + TagCommit string `yaml:"tagCommit"` + CheckoutCommit string `yaml:"checkoutCommit"` + ResetCherryPick string `yaml:"resetCherryPick"` + CopyCommitMessageToClipboard string `yaml:"copyCommitMessageToClipboard"` } type KeybindingStashConfig struct { @@ -390,24 +391,26 @@ func GetDefaultConfig() *UserConfig { SetUpstream: "u", FetchRemote: "f", }, - Commits: KeybindingCommitsConfig{SquashDown: "s", - RenameCommit: "r", - RenameCommitWithEditor: "R", - ViewResetOptions: "g", - MarkCommitAsFixup: "f", - CreateFixupCommit: "F", - SquashAboveCommits: "S", - MoveDownCommit: "<c-j>", - MoveUpCommit: "<c-k>", - AmendToCommit: "A", - PickCommit: "p", - RevertCommit: "t", - CherryPickCopy: "c", - CherryPickCopyRange: "C", - PasteCommits: "v", - TagCommit: "T", - CheckoutCommit: "<space>", - ResetCherryPick: "<c-R>", + Commits: KeybindingCommitsConfig{ + SquashDown: "s", + RenameCommit: "r", + RenameCommitWithEditor: "R", + ViewResetOptions: "g", + MarkCommitAsFixup: "f", + CreateFixupCommit: "F", + SquashAboveCommits: "S", + MoveDownCommit: "<c-j>", + MoveUpCommit: "<c-k>", + AmendToCommit: "A", + PickCommit: "p", + RevertCommit: "t", + CherryPickCopy: "c", + CherryPickCopyRange: "C", + PasteCommits: "v", + TagCommit: "T", + CheckoutCommit: "<space>", + ResetCherryPick: "<c-R>", + CopyCommitMessageToClipboard: "<c-y>", }, Stash: KeybindingStashConfig{ PopStash: "g", |