Documentation ¶
Index ¶
- func AddMode(name string, m EditorModeFactory)
- func SetApplication(ap2 Application)
- func SetBufferFactory(bf BufferFactory)
- func SetClipboardProvider(bf ClipboardProvider)
- type Application
- type Buffer
- type BufferFactory
- type Clipboard
- type ClipboardProvider
- type Command
- type Commands
- type EditorMode
- type EditorModeFactory
- type NoSuchCommand
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMode ¶
func AddMode(name string, m EditorModeFactory)
func SetApplication ¶
func SetApplication(ap2 Application)
func SetBufferFactory ¶
func SetBufferFactory(bf BufferFactory)
func SetClipboardProvider ¶
func SetClipboardProvider(bf ClipboardProvider)
Types ¶
type Application ¶
type Application interface { Windows() []Window CreateWindow(string, string) Window FindWindow(Window) Window KillWindow(Window) }
func GetApplication ¶
func GetApplication() Application
type BufferFactory ¶
type BufferFactory interface {
NewScratchBuffer() Buffer
}
func GetBufferFactory ¶
func GetBufferFactory() BufferFactory
type ClipboardProvider ¶
type ClipboardProvider interface {
Get() Clipboard
}
func GetClipboardProvider ¶
func GetClipboardProvider() ClipboardProvider
type Commands ¶
func NewCommands ¶
func NewCommands() *Commands
func (*Commands) ExecuteCommand ¶
func (*Commands) GetCompletions ¶
type EditorMode ¶
type EditorMode interface { Name() string ExecuteCommand(w Window, key *input.KeyPressInfo) error GetBufferStyle() *theme.BufferThemeStyle GetLineStyle(int) *theme.LineThemeStyle GetCharacterStyle(int, int) *theme.CharacterThemeStyle }
func GetMode ¶
func GetMode(name string) EditorMode
type EditorModeFactory ¶
type EditorModeFactory interface {
Create() EditorMode
}
type NoSuchCommand ¶
type NoSuchCommand string
func (NoSuchCommand) Error ¶
func (err NoSuchCommand) Error() string
Click to show internal directories.
Click to hide internal directories.