Documentation
¶
Index ¶
- type KeyMap
- type Model
- func (m *Model) CopyCurrNodePath() tea.Cmd
- func (m *Model) CurrNodePath() string
- func (m *Model) Down()
- func (m *Model) GetCurrNode() *tree.Node
- func (m *Model) GetCurrNodeDesendantDiffs() []*gitdiff.File
- func (m Model) GetNodeAtY(yoffset int) *tree.Node
- func (m *Model) ScrollDown(lines int)
- func (m *Model) ScrollUp(lines int)
- func (m *Model) SetCursorByPath(path string)
- func (m *Model) SetCursorNoScroll(cursor int)
- func (m Model) SetFiles(files []*gitdiff.File) Model
- func (m *Model) SetIconStyle(iconStyle string)
- func (m *Model) SetSize(width, height int)
- func (m *Model) Up()
- func (m *Model) Update(msg tea.Msg) (*Model, tea.Cmd)
- func (m *Model) View() string
- func (m Model) ViewportYOffset() int
- func (m *Model) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) CopyCurrNodePath ¶ added in v0.8.0
func (*Model) CurrNodePath ¶ added in v0.8.0
func (*Model) GetCurrNode ¶ added in v0.8.0
func (*Model) GetCurrNodeDesendantDiffs ¶ added in v0.8.0
func (Model) GetNodeAtY ¶ added in v0.8.0
GetNodeAtY returns the tree's node at the Y scroll offset.
func (*Model) ScrollDown ¶ added in v0.4.0
ScrollDown scrolls the viewport down by the given number of lines.
func (*Model) ScrollUp ¶ added in v0.4.0
ScrollUp scrolls the viewport up by the given number of lines.
func (*Model) SetCursorByPath ¶ added in v0.8.0
func (*Model) SetCursorNoScroll ¶ added in v0.4.0
SetCursorNoScroll updates the selected file without scrolling the viewport. Use this when the user clicks on a file they can already see.
func (*Model) SetIconStyle ¶ added in v0.5.0
SetIconStyle changes the icon style and regenerates the tree.
func (Model) ViewportYOffset ¶ added in v0.7.0
ViewportYOffset returns the tree's current Y scroll offset.
Click to show internal directories.
Click to hide internal directories.