mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
minor fixup
This commit is contained in:
@ -32,7 +32,7 @@ const (
|
|||||||
MENU_CONTEXT_KEY = "menu"
|
MENU_CONTEXT_KEY = "menu"
|
||||||
CREDENTIALS_CONTEXT_KEY = "credentials"
|
CREDENTIALS_CONTEXT_KEY = "credentials"
|
||||||
CONFIRMATION_CONTEXT_KEY = "confirmation"
|
CONFIRMATION_CONTEXT_KEY = "confirmation"
|
||||||
SEARCH_CONTEXT_KEY = "confirmation"
|
SEARCH_CONTEXT_KEY = "search"
|
||||||
COMMIT_MESSAGE_CONTEXT_KEY = "commitMessage"
|
COMMIT_MESSAGE_CONTEXT_KEY = "commitMessage"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ type CustomCommandObjects struct {
|
|||||||
SelectedTag *commands.Tag
|
SelectedTag *commands.Tag
|
||||||
SelectedStashEntry *commands.StashEntry
|
SelectedStashEntry *commands.StashEntry
|
||||||
SelectedCommitFile *commands.CommitFile
|
SelectedCommitFile *commands.CommitFile
|
||||||
CurrentBranch *commands.Branch
|
CheckedOutBranch *commands.Branch
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) handleCustomCommandKeybinding(customCommand CustomCommand) func() error {
|
func (gui *Gui) handleCustomCommandKeybinding(customCommand CustomCommand) func() error {
|
||||||
@ -36,7 +36,7 @@ func (gui *Gui) handleCustomCommandKeybinding(customCommand CustomCommand) func(
|
|||||||
SelectedStashEntry: gui.getSelectedStashEntry(),
|
SelectedStashEntry: gui.getSelectedStashEntry(),
|
||||||
SelectedCommitFile: gui.getSelectedCommitFile(),
|
SelectedCommitFile: gui.getSelectedCommitFile(),
|
||||||
SelectedSubCommit: gui.getSelectedSubCommit(),
|
SelectedSubCommit: gui.getSelectedSubCommit(),
|
||||||
CurrentBranch: gui.currentBranch(),
|
CheckedOutBranch: gui.currentBranch(),
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpl, err := template.New("custom command template").Parse(customCommand.Command)
|
tmpl, err := template.New("custom command template").Parse(customCommand.Command)
|
||||||
|
Reference in New Issue
Block a user