Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenCommitEditorCmd ¶
func OpenCommitEditorCmd(opts git.CommitOpts, action string) tea.Cmd
OpenCommitEditorCmd returns a command to open the commit editor.
Types ¶
type CommitEditorAbortMsg ¶
type CommitEditorAbortMsg struct{}
CommitEditorAbortMsg signals user aborted.
type CommitEditorDoneMsg ¶
CommitEditorDoneMsg signals commit completed.
type KeyMap ¶
type KeyMap struct {
Close key.Binding // q
Submit key.Binding // <c-c><c-c> (two-key sequence handled in update)
Abort key.Binding // <c-c><c-k> (two-key sequence handled in update)
PrevMessage key.Binding // <m-p>
NextMessage key.Binding // <m-n>
ResetMessage key.Binding // <m-r>
GenerateMessage key.Binding // <c-g>
}
KeyMap defines all key bindings for the commit editor. Matches Neogit's config.lua commit_editor section exactly.
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
DefaultKeyMap returns the default key bindings matching Neogit exactly.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the commit editor model.
func New ¶
func New(repo *git.Repository, opts git.CommitOpts, cfg *config.Config, tokens theme.Tokens, action string) Model
New creates a new commit editor model.
type OpenCommitEditorMsg ¶
type OpenCommitEditorMsg struct {
Opts git.CommitOpts
Action string // "commit", "amend", "reword", "extend", etc.
}
OpenCommitEditorMsg triggers opening the commit editor.
Click to show internal directories.
Click to hide internal directories.