Documentation
¶
Index ¶
- type CloseMsg
- type FileSelectedMsg
- type Model
- func (m *Model) Close()
- func (m Model) Init() tea.Cmd
- func (m Model) IsActive() bool
- func (m *Model) Open()
- func (m Model) RenderOverlay(background string) string
- func (m *Model) SetFiles(files []git.ChangedFile)
- func (m *Model) SetRepo(repo *git.Repo, baseBranch string)
- func (m *Model) SetSize(width, height int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSelectedMsg ¶
type FileSelectedMsg struct {
File *git.ChangedFile
}
FileSelectedMsg is sent when a file is selected
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the file picker overlay
func (Model) RenderOverlay ¶
RenderOverlay renders the file picker on top of a background
func (*Model) SetFiles ¶
func (m *Model) SetFiles(files []git.ChangedFile)
SetFiles sets the list of files
Click to show internal directories.
Click to hide internal directories.