editor

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.4.2

type Action struct {
	Func func()
	Name string
}

type Editor

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

func NewEditor

func NewEditor() *Editor

func (*Editor) CloseFile

func (editor *Editor) CloseFile() bool

func (*Editor) CmdMenu added in v0.4.2

func (editor *Editor) CmdMenu()

func (*Editor) Cut

func (editor *Editor) Cut()

func (*Editor) ExtraMode added in v0.4.2

func (editor *Editor) ExtraMode()

func (*Editor) Flush

func (editor *Editor) Flush()

func (*Editor) GoFmt

func (editor *Editor) GoFmt()

func (*Editor) HandleCmd added in v0.4.1

func (editor *Editor) HandleCmd(cmd string, r rune)

func (*Editor) HighlightCursors

func (editor *Editor) HighlightCursors()

func (*Editor) KeepFlushed

func (editor *Editor) KeepFlushed()

func (*Editor) LastFile

func (editor *Editor) LastFile()

func (*Editor) Listen

func (editor *Editor) Listen()

func (*Editor) MakeExtraKeyMap added in v0.4.2

func (editor *Editor) MakeExtraKeyMap() KeyMap

func (*Editor) MakeKeyMap added in v0.4.2

func (editor *Editor) MakeKeyMap() KeyMap

func (*Editor) MarkedSearch added in v0.3.2

func (editor *Editor) MarkedSearch(searchTerm string) (int, int, error)

func (*Editor) MarkedSearchAndReplace added in v0.3.2

func (editor *Editor) MarkedSearchAndReplace(searchTerm, replaceTerm string, replaceAll bool)

func (*Editor) MultiFileSearch

func (editor *Editor) MultiFileSearch(searchTerm string, multiFile bool) (int, int, error)

func (*Editor) MultiFileSearchAndReplace

func (editor *Editor) MultiFileSearchAndReplace(searchTerm, replaceTerm string, multiFile, replaceAll bool)

func (*Editor) NextFile

func (editor *Editor) NextFile()

func (*Editor) OpenFile

func (editor *Editor) OpenFile(name string)

func (*Editor) OpenFiles

func (editor *Editor) OpenFiles(fileNames []string)

func (*Editor) OpenNewFile

func (editor *Editor) OpenNewFile()

func (*Editor) Paste

func (editor *Editor) Paste()

func (*Editor) PasteFromMenu

func (editor *Editor) PasteFromMenu()

func (*Editor) PrevFile

func (editor *Editor) PrevFile()

func (*Editor) Quit

func (editor *Editor) Quit()

func (*Editor) Redo

func (editor *Editor) Redo()

func (*Editor) RedoSaved added in v0.3.4

func (editor *Editor) RedoSaved()

func (*Editor) RequestFlush

func (editor *Editor) RequestFlush()

func (*Editor) Save

func (editor *Editor) Save()

func (*Editor) Search

func (editor *Editor) Search(multiFile bool)

func (*Editor) SearchAndReplace

func (editor *Editor) SearchAndReplace(multiFile bool)

func (*Editor) SearchLineBa added in v0.4.2

func (editor *Editor) SearchLineBa()

func (*Editor) SearchLineFo added in v0.4.2

func (editor *Editor) SearchLineFo()

func (*Editor) SelectFile

func (editor *Editor) SelectFile()

func (*Editor) SetCharMode added in v0.4.1

func (editor *Editor) SetCharMode()

func (*Editor) Suspend

func (editor *Editor) Suspend()

func (*Editor) SwitchFile

func (editor *Editor) SwitchFile(n int)

func (*Editor) Undo

func (editor *Editor) Undo()

func (*Editor) UndoSaved added in v0.3.4

func (editor *Editor) UndoSaved()

func (*Editor) UpdateStatus

func (editor *Editor) UpdateStatus()

type KeyMap added in v0.4.2

type KeyMap map[string]Action

func (KeyMap) Add added in v0.4.2

func (km KeyMap) Add(key string, f func(), name string)

func (KeyMap) DisplayNames added in v0.4.2

func (km KeyMap) DisplayNames(keys []string, prefix string) []string

func (KeyMap) Keys added in v0.4.2

func (km KeyMap) Keys() []string

func (KeyMap) Run added in v0.4.2

func (km KeyMap) Run(key string) string

Jump to

Keyboard shortcuts

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