vidar: github.com/nelsam/vidar/command Index | Files | Directories

package command

import "github.com/nelsam/vidar/command"

Index

Package Files

change_split.go change_tab.go close_tab.go commands.go copy_paste.go edit.go editor_redraw.go file.go file_opener.go find.go find_regex.go fullscreen.go goto_line.go navigation.go project_finder.go quit.go replace.go save.go save_all.go select_all.go split.go view.go

func Bindables Uses

func Bindables(cmdr command.Commander, driver gxui.Driver, theme *basic.Theme) []bind.Bindable

Bindables returns all known bindables, in the order they should be added to the menu.

func NewLineEnd Uses

func NewLineEnd() bind.Command

func NewLineStart Uses

func NewLineStart() bind.Command

func NewNextChar Uses

func NewNextChar() bind.Command

func NewNextLine Uses

func NewNextLine() bind.Command

func NewNextWord Uses

func NewNextWord() bind.Command

func NewPrevChar Uses

func NewPrevChar() bind.Command

func NewPrevLine Uses

func NewPrevLine() bind.Command

func NewPrevWord Uses

func NewPrevWord() bind.Command

func NewSelectLineEnd Uses

func NewSelectLineEnd() bind.Command

func NewSelectLineStart Uses

func NewSelectLineStart() bind.Command

func NewSelectNextChar Uses

func NewSelectNextChar() bind.Command

func NewSelectNextLine Uses

func NewSelectNextLine() bind.Command

func NewSelectNextWord Uses

func NewSelectNextWord() bind.Command

func NewSelectPrevChar Uses

func NewSelectPrevChar() bind.Command

func NewSelectPrevLine Uses

func NewSelectPrevLine() bind.Command

func NewSelectPrevWord Uses

func NewSelectPrevWord() bind.Command

type AfterSaver Uses

type AfterSaver interface {
    Name() string
    AfterSave(proj setting.Project, path, contents string) error
}

type AllSaver Uses

type AllSaver interface {
    SaveAll()
}

type Applier Uses

type Applier interface {
    Apply(input.Editor, ...input.Edit)
}

type BeforeSaver Uses

type BeforeSaver interface {
    Name() string
    BeforeSave(proj setting.Project, path, contents string) (newContents string, err error)
}

type BindManager Uses

type BindManager interface {
    Bindable(string) bind.Bindable
    Execute(bind.Bindable)
}

type BindPopper Uses

type BindPopper interface {
    Pop() []bind.Bindable
}

type Careter Uses

type Careter interface {
    FirstCaret() int
    Deselect(bool) bool
}

type ChangeFocus Uses

type ChangeFocus struct {
    // contains filtered or unexported fields
}

func NewFocusDown Uses

func NewFocusDown() *ChangeFocus

func NewFocusLeft Uses

func NewFocusLeft() *ChangeFocus

func NewFocusRight Uses

func NewFocusRight() *ChangeFocus

func NewFocusUp Uses

func NewFocusUp() *ChangeFocus

func (*ChangeFocus) Defaults Uses

func (p *ChangeFocus) Defaults() []fmt.Stringer

func (*ChangeFocus) Exec Uses

func (p *ChangeFocus) Exec() error

func (*ChangeFocus) Menu Uses

func (p *ChangeFocus) Menu() string

func (*ChangeFocus) Name Uses

func (p *ChangeFocus) Name() string

func (*ChangeFocus) Reset Uses

func (p *ChangeFocus) Reset()

func (*ChangeFocus) Store Uses

func (p *ChangeFocus) Store(target interface{}) bind.Status

type ChangeTab Uses

type ChangeTab struct {
    // contains filtered or unexported fields
}

func NewNextTab Uses

func NewNextTab() *ChangeTab

func NewPrevTab Uses

func NewPrevTab() *ChangeTab

func (*ChangeTab) Defaults Uses

func (t *ChangeTab) Defaults() []fmt.Stringer

func (*ChangeTab) Exec Uses

func (t *ChangeTab) Exec() error

func (*ChangeTab) Menu Uses

func (t *ChangeTab) Menu() string

func (*ChangeTab) Name Uses

func (t *ChangeTab) Name() string

func (*ChangeTab) Reset Uses

func (t *ChangeTab) Reset()

func (*ChangeTab) Store Uses

func (t *ChangeTab) Store(target interface{}) bind.Status

type CloseTab Uses

type CloseTab struct {
    // contains filtered or unexported fields
}

func NewCloseTab Uses

func NewCloseTab() *CloseTab

func (*CloseTab) Defaults Uses

func (s *CloseTab) Defaults() []fmt.Stringer

func (*CloseTab) Exec Uses

func (s *CloseTab) Exec() error

func (*CloseTab) Menu Uses

func (s *CloseTab) Menu() string

func (*CloseTab) Name Uses

func (s *CloseTab) Name() string

func (*CloseTab) Reset Uses

func (s *CloseTab) Reset()

func (*CloseTab) Store Uses

func (s *CloseTab) Store(target interface{}) bind.Status

type Copy Uses

type Copy struct {
    // contains filtered or unexported fields
}

func NewCopy Uses

func NewCopy(driver gxui.Driver) *Copy

func (*Copy) Defaults Uses

func (c *Copy) Defaults() []fmt.Stringer

func (*Copy) Exec Uses

func (c *Copy) Exec(target interface{}) bind.Status

func (*Copy) Menu Uses

func (c *Copy) Menu() string

func (*Copy) Name Uses

func (c *Copy) Name() string

type CurrentEditorCloser Uses

type CurrentEditorCloser interface {
    CloseCurrentEditor() (string, input.Editor)
    CurrentEditor() input.Editor
}

type Cut Uses

type Cut struct {
    Copy
    // contains filtered or unexported fields
}

func NewCut Uses

func NewCut(driver gxui.Driver) *Cut

func (*Cut) Defaults Uses

func (c *Cut) Defaults() []fmt.Stringer

func (*Cut) Exec Uses

func (c *Cut) Exec() error

func (*Cut) Name Uses

func (c *Cut) Name() string

func (*Cut) Reset Uses

func (c *Cut) Reset()

func (*Cut) Store Uses

func (c *Cut) Store(target interface{}) bind.Status

type EditHook Uses

type EditHook struct {
    Driver gxui.Driver
    Theme  *basic.Theme
}

func (EditHook) FileBindables Uses

func (h EditHook) FileBindables(string) []bind.Bindable

func (EditHook) Name Uses

func (h EditHook) Name() string

func (EditHook) OpName Uses

func (h EditHook) OpName() string

type Editor Uses

type Editor interface {
    input.Editor
    Controller() *gxui.TextBoxController
}

type EditorChooser Uses

type EditorChooser interface {
    NextEditor(editor.Direction) input.Editor
}

type EditorRedraw Uses

type EditorRedraw struct{}

func (EditorRedraw) Applied Uses

func (EditorRedraw) Applied(e input.Editor, edits []input.Edit)

func (EditorRedraw) Name Uses

func (EditorRedraw) Name() string

func (EditorRedraw) OpName Uses

func (EditorRedraw) OpName() string

type Executor Uses

type Executor interface {
    Execute(bind.Bindable)
}

type FileHook Uses

type FileHook struct {
    Theme *basic.Theme
}

func (FileHook) FileBindables Uses

func (h FileHook) FileBindables(string) []bind.Bindable

func (FileHook) Name Uses

func (h FileHook) Name() string

func (FileHook) OpName Uses

func (h FileHook) OpName() string

type FileOpener Uses

type FileOpener struct {
    status.General
    // contains filtered or unexported fields
}

func NewFileOpener Uses

func NewFileOpener(driver gxui.Driver, theme *basic.Theme) *FileOpener

func (*FileOpener) Defaults Uses

func (f *FileOpener) Defaults() []fmt.Stringer

func (*FileOpener) Exec Uses

func (f *FileOpener) Exec() error

func (*FileOpener) Menu Uses

func (f *FileOpener) Menu() string

func (*FileOpener) Name Uses

func (f *FileOpener) Name() string

func (*FileOpener) Next Uses

func (f *FileOpener) Next() gxui.Focusable

func (*FileOpener) Reset Uses

func (f *FileOpener) Reset()

func (*FileOpener) Start Uses

func (f *FileOpener) Start(control gxui.Control) gxui.Control

func (*FileOpener) Store Uses

func (f *FileOpener) Store(elem interface{}) bind.Status

type Find Uses

type Find struct {
    mixins.LinearLayout
    // contains filtered or unexported fields
}

func NewFind Uses

func NewFind(driver gxui.Driver, theme *basic.Theme) *Find

func (*Find) Defaults Uses

func (f *Find) Defaults() []fmt.Stringer

func (*Find) GainedFocus Uses

func (f *Find) GainedFocus()

func (*Find) HasFocus Uses

func (f *Find) HasFocus() bool

func (*Find) Init Uses

func (f *Find) Init(driver gxui.Driver, theme *basic.Theme)

func (*Find) IsFocusable Uses

func (f *Find) IsFocusable() bool

func (*Find) KeyDown Uses

func (f *Find) KeyDown(event gxui.KeyboardEvent)

func (*Find) KeyPress Uses

func (f *Find) KeyPress(event gxui.KeyboardEvent) bool

func (*Find) KeyRepeat Uses

func (f *Find) KeyRepeat(event gxui.KeyboardEvent)

func (*Find) KeyStroke Uses

func (f *Find) KeyStroke(event gxui.KeyStrokeEvent) bool

func (*Find) KeyUp Uses

func (f *Find) KeyUp(event gxui.KeyboardEvent)

func (*Find) LostFocus Uses

func (f *Find) LostFocus()

func (*Find) Menu Uses

func (f *Find) Menu() string

func (*Find) Name Uses

func (f *Find) Name() string

func (*Find) Next Uses

func (f *Find) Next() gxui.Focusable

func (*Find) OnGainedFocus Uses

func (f *Find) OnGainedFocus(callback func()) gxui.EventSubscription

func (*Find) OnLostFocus Uses

func (f *Find) OnLostFocus(callback func()) gxui.EventSubscription

func (*Find) Paint Uses

func (f *Find) Paint(c gxui.Canvas)

func (*Find) Start Uses

func (f *Find) Start(control gxui.Control) gxui.Control

type Focuser Uses

type Focuser interface {
    For(...focus.Opt) bind.Bindable
}

type Fullscreen Uses

type Fullscreen struct {
}

func (Fullscreen) Defaults Uses

func (f Fullscreen) Defaults() []fmt.Stringer

func (Fullscreen) Exec Uses

func (f Fullscreen) Exec(e interface{}) bind.Status

func (Fullscreen) Menu Uses

func (f Fullscreen) Menu() string

func (Fullscreen) Name Uses

func (f Fullscreen) Name() string

type Fullscreener Uses

type Fullscreener interface {
    Fullscreen() bool
    SetFullscreen(bool)
}

type GotoLine Uses

type GotoLine struct {
    status.General
    // contains filtered or unexported fields
}

func NewGotoLine Uses

func NewGotoLine(theme gxui.Theme) *GotoLine

func (*GotoLine) Defaults Uses

func (g *GotoLine) Defaults() []fmt.Stringer

func (*GotoLine) Exec Uses

func (g *GotoLine) Exec() error

func (*GotoLine) Menu Uses

func (g *GotoLine) Menu() string

func (*GotoLine) Name Uses

func (g *GotoLine) Name() string

func (*GotoLine) Next Uses

func (g *GotoLine) Next() gxui.Focusable

func (*GotoLine) Reset Uses

func (g *GotoLine) Reset()

func (*GotoLine) Start Uses

func (g *GotoLine) Start(on gxui.Control) gxui.Control

func (*GotoLine) Store Uses

func (g *GotoLine) Store(elem interface{}) bind.Status

type LineControl Uses

type LineControl interface {
    LineCount() int
    SetCaret(int)
}

type Locationer Uses

type Locationer interface {
    bind.Bindable
    For(...focus.Opt) bind.Bindable
}

type Mover Uses

type Mover interface {
    For(caret.Direction, caret.Mod) bind.Bindable
}
type NavHook struct {
    Commander command.Commander
}
func (n NavHook) FileBindables(string) []bind.Bindable
func (n NavHook) Name() string
func (n NavHook) OpName() string

type Paste Uses

type Paste struct {
    status.General
    // contains filtered or unexported fields
}

func NewPaste Uses

func NewPaste(driver gxui.Driver, theme gxui.Theme) *Paste

func (*Paste) Defaults Uses

func (p *Paste) Defaults() []fmt.Stringer

func (*Paste) Exec Uses

func (p *Paste) Exec() error

func (*Paste) Menu Uses

func (p *Paste) Menu() string

func (*Paste) Name Uses

func (p *Paste) Name() string

func (*Paste) Reset Uses

func (p *Paste) Reset()

func (*Paste) Store Uses

func (p *Paste) Store(target interface{}) bind.Status

type ProjectFinder Uses

type ProjectFinder interface {
    CurrentEditor() input.Editor
    Project() setting.Project
}

type Projecter Uses

type Projecter interface {
    Project() setting.Project
}

type Quit Uses

type Quit struct {
}

func (Quit) Defaults Uses

func (q Quit) Defaults() []fmt.Stringer

func (Quit) Exec Uses

func (q Quit) Exec(interface{}) bind.Status

func (Quit) Menu Uses

func (q Quit) Menu() string

func (Quit) Name Uses

func (q Quit) Name() string

type RedrawableEditor Uses

type RedrawableEditor interface {
    input.Editor
    Redraw()
    DataChanged(recreateControls bool)
}

type RegexFind Uses

type RegexFind struct {
    // contains filtered or unexported fields
}

func NewRegexFind Uses

func NewRegexFind(driver gxui.Driver, theme *basic.Theme) *RegexFind

func (*RegexFind) Defaults Uses

func (f *RegexFind) Defaults() []fmt.Stringer

func (*RegexFind) Menu Uses

func (f *RegexFind) Menu() string

func (*RegexFind) Name Uses

func (f *RegexFind) Name() string

func (*RegexFind) Next Uses

func (f *RegexFind) Next() gxui.Focusable

func (*RegexFind) Start Uses

func (f *RegexFind) Start(control gxui.Control) gxui.Control

type Replace Uses

type Replace struct {
    // contains filtered or unexported fields
}

func NewReplace Uses

func NewReplace(driver gxui.Driver, theme *basic.Theme) *Replace

func (*Replace) Defaults Uses

func (f *Replace) Defaults() []fmt.Stringer

func (*Replace) Exec Uses

func (f *Replace) Exec() error

func (*Replace) Init Uses

func (f *Replace) Init(driver gxui.Driver, theme *basic.Theme)

func (*Replace) Menu Uses

func (f *Replace) Menu() string

func (*Replace) Name Uses

func (f *Replace) Name() string

func (*Replace) Next Uses

func (f *Replace) Next() gxui.Focusable

func (*Replace) Reset Uses

func (c *Replace) Reset()

func (*Replace) Start Uses

func (f *Replace) Start(control gxui.Control) gxui.Control

func (*Replace) Store Uses

func (c *Replace) Store(target interface{}) bind.Status

type RuneScroller Uses

type RuneScroller interface {
    ScrollToRune(int)
}

type SaveAll Uses

type SaveAll struct{}

func NewSaveAll Uses

func NewSaveAll(theme gxui.Theme) *SaveAll

func (*SaveAll) Defaults Uses

func (s *SaveAll) Defaults() []fmt.Stringer

func (*SaveAll) Exec Uses

func (s *SaveAll) Exec(target interface{}) bind.Status

func (*SaveAll) Menu Uses

func (s *SaveAll) Menu() string

func (*SaveAll) Name Uses

func (s *SaveAll) Name() string

type SaveCurrent Uses

type SaveCurrent struct {
    status.General
    // contains filtered or unexported fields
}

func NewSave Uses

func NewSave(theme gxui.Theme) *SaveCurrent

func (*SaveCurrent) Bind Uses

func (s *SaveCurrent) Bind(h bind.Bindable) (bind.HookedMultiOp, error)

func (*SaveCurrent) Defaults Uses

func (s *SaveCurrent) Defaults() []fmt.Stringer

func (*SaveCurrent) Exec Uses

func (s *SaveCurrent) Exec() error

func (*SaveCurrent) Menu Uses

func (s *SaveCurrent) Menu() string

func (*SaveCurrent) Name Uses

func (s *SaveCurrent) Name() string

func (*SaveCurrent) Reset Uses

func (s *SaveCurrent) Reset()

func (*SaveCurrent) Store Uses

func (s *SaveCurrent) Store(target interface{}) bind.Status

type SaveEditor Uses

type SaveEditor interface {
    input.Editor
    FlushedChanges()
    LastKnownMTime() time.Time
}

type Scroll Uses

type Scroll struct {
    // contains filtered or unexported fields
}

func (*Scroll) Defaults Uses

func (s *Scroll) Defaults() []fmt.Stringer

func (*Scroll) Exec Uses

func (s *Scroll) Exec() error

func (*Scroll) Menu Uses

func (s *Scroll) Menu() string

func (*Scroll) Name Uses

func (s *Scroll) Name() string

func (*Scroll) Reset Uses

func (s *Scroll) Reset()

func (*Scroll) Store Uses

func (s *Scroll) Store(elem interface{}) bind.Status

type ScrollDeselect Uses

type ScrollDeselect struct {
    Scroll
}

func (*ScrollDeselect) Exec Uses

func (s *ScrollDeselect) Exec() error

type Scroller Uses

type Scroller interface {
    LineStart(int) int
    ScrollToLine(int)
}

type SelectAll Uses

type SelectAll struct{}

func NewSelectAll Uses

func NewSelectAll() *SelectAll

func (*SelectAll) Defaults Uses

func (s *SelectAll) Defaults() []fmt.Stringer

func (*SelectAll) Exec Uses

func (s *SelectAll) Exec(target interface{}) bind.Status

func (*SelectAll) Menu Uses

func (s *SelectAll) Menu() string

func (*SelectAll) Name Uses

func (s *SelectAll) Name() string

type Selecter Uses

type Selecter interface {
    SelectAll()
}

type SelectionEditor Uses

type SelectionEditor interface {
    input.Editor
    Controller() *gxui.TextBoxController
    SelectSlice([]gxui.TextSelection)
    ScrollToRune(int)
}

type Split Uses

type Split struct {
    // contains filtered or unexported fields
}

func NewHorizontalSplit Uses

func NewHorizontalSplit() *Split

func NewVerticalSplit Uses

func NewVerticalSplit() *Split

func (*Split) Defaults Uses

func (s *Split) Defaults() []fmt.Stringer

func (*Split) Exec Uses

func (s *Split) Exec(target interface{}) bind.Status

func (*Split) Menu Uses

func (s *Split) Menu() string

func (*Split) Name Uses

func (s *Split) Name() string

type Splitter Uses

type Splitter interface {
    Split(gxui.Orientation)
}

type TabChooser Uses

type TabChooser interface {
    EditorAt(editor.Direction) input.Editor
}

type ViewHook Uses

type ViewHook struct{}

func (ViewHook) FileBindables Uses

func (h ViewHook) FileBindables(string) []bind.Bindable

func (ViewHook) Name Uses

func (h ViewHook) Name() string

func (ViewHook) OpName Uses

func (h ViewHook) OpName() string

Directories

PathSynopsis
caret
focus
fs
history
input
project
scroll

Package command imports 28 packages (graph) and is imported by 1 packages. Updated 2020-01-27. Refresh now. Tools for package owners.