Documentation ¶
Index ¶
- type Formatter
- type Keymap
- type Nyne
- func (n *Nyne) ExecCmds(evt event.Event, cmds []gen.Command, ext string) error
- func (n *Nyne) Refmt(evt event.Event, cmd gen.Command, ext string) ([]byte, error)
- func (n *Nyne) Run()
- func (n *Nyne) SetupFormatting(w *event.Win, spec gen.Spec) error
- func (n *Nyne) WriteMenu(w *event.Win) error
- func (n *Nyne) WriteUpdates(evt event.Event, updates [][]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter interface { Run() ExecCmds(event event.Event, cmds []gen.Command, ext string) error WriteMenu(w *event.Win) error SetupFormatting(*event.Win, gen.Spec) error Refmt(event.Event, gen.Command, string) ([]byte, error) }
Formatter listens for Acme events and applies formatting rules to the active buffer
type Nyne ¶
type Nyne struct {
// contains filtered or unexported fields
}
Nyne implements the Formatter inferface for $NYNERULES
func (*Nyne) ExecCmds ¶
ExecCmds executes commands that operate on stdin/stdout against the Acme buffer
func (*Nyne) Refmt ¶
Refmt executes a command to the Acme buffer and refreshes the buffer with updated contents
func (*Nyne) SetupFormatting ¶
SetupFormatting opens the Acme buffer for writing and applies the indentation and tab expansion options provided in $NYNERULES
Click to show internal directories.
Click to hide internal directories.