item

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCommitColor  = tcell.ColorSilver
	SelectedCommitColor = tcell.ColorLime
)
View Source
const (
	DefaultLinterColor = tcell.ColorSilver
	EnabledLinterColor = tcell.ColorLime
)
View Source
const (
	DefaultDirColor  = tcell.ColorSilver
	SelectedDirColor = tcell.ColorLime
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Commits added in v0.2.0

type Commits struct {
	*tview.TreeView
	// contains filtered or unexported fields
}

func NewCommits added in v0.2.0

func NewCommits(commits []*git.Commit) *Commits

func (*Commits) SetKeybinds added in v0.2.0

func (c *Commits) SetKeybinds(globalKeybind func(event *tcell.EventKey), registerAction func(*tview.TreeNode, string), unregisterAction func(node *tview.TreeNode))

type Info

type Info struct {
	*tview.TextView
}

func NewInfo

func NewInfo(version string) *Info

type Linters

type Linters struct {
	*tview.TreeView
}

func NewLinters

func NewLinters(linters []config.Linter) *Linters

func (*Linters) SetKeybinds

func (l *Linters) SetKeybinds(globalKeybind func(event *tcell.EventKey), selectAction, unselectAction func(*tview.TreeNode, *config.Linter))
type Navi struct {
	*tview.TextView
}

func NewNavi

func NewNavi() *Navi
func (n *Navi) Update(p tview.Primitive)

type Results

type Results struct {
	*tview.TreeView
	// contains filtered or unexported fields
}

func NewResults

func NewResults(logger *logrus.Entry) *Results

func (*Results) SetKeybinds

func (r *Results) SetKeybinds(globalKeybind func(event *tcell.EventKey), openFile func(string, int, int) error)

func (*Results) SetLatestIssues

func (r *Results) SetLatestIssues(issues []golangcilint.Issue)

func (*Results) ShowLatestIssues

func (r *Results) ShowLatestIssues()

ShowLatestIssues updates its own tree view and lists the latest execution results.

func (*Results) ShowMessage

func (r *Results) ShowMessage(msg string)

type SourceFiles

type SourceFiles struct {
	*tview.TreeView
	// contains filtered or unexported fields
}

func NewSourceFiles

func NewSourceFiles(logger *logrus.Entry, rootDir string) *SourceFiles

func (*SourceFiles) SetKeybinds

func (s *SourceFiles) SetKeybinds(globalKeybind func(event *tcell.EventKey), selectAction, unselectAction func(*tview.TreeNode, string))

func (*SourceFiles) SwitchToggle

func (s *SourceFiles) SwitchToggle(node *tview.TreeNode)

SwitchToggle switches the current display state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL