Documentation
¶
Index ¶
- type Editor
- func (e *Editor) ChangeModeCallback(mode mode.Mode)
- func (e *Editor) ClearAllBuffers()
- func (e *Editor) CreateFile(fileName string)
- func (e *Editor) CreateFileAtRoot(fileName string) string
- func (e *Editor) DrawLineAt(index int) string
- func (e *Editor) DrawStatusBar(withBorder bool) string
- func (e *Editor) GeneralCase(key rune)
- func (e *Editor) GetCursor(withBorder bool) (int, int, cursor.CursorType)
- func (e *Editor) Handle(key rune)
- func (e *Editor) IsGeneralMove(key rune) bool
- func (e *Editor) LoadFile(file string)
- func (e *Editor) OpenFileCallback(file string)
- func (e *Editor) OpenHelp(topic h.Topic)
- func (e *Editor) PreDraw()
- func (e *Editor) RemoveFileCallback(file string)
- func (e *Editor) RenameCallback(old, new string)
- func (e *Editor) Resize(w, h int)
- func (e *Editor) SaveFile()
- func (e *Editor) ScrollLeft()
- func (e *Editor) ScrollRight()
- func (e *Editor) SetErrorCallback(err string)
- func (e *Editor) SetTitle() string
- func (e *Editor) StartHelp()
- func (e *Editor) SwitchToTab(index int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
func InitEditor ¶
Initialisation of editor turn terminal into raw mode, saves old state, initializes Config, Buffer and TUI checks if terminal save to work in
func (*Editor) ChangeModeCallback ¶ added in v0.3.0
func (*Editor) ClearAllBuffers ¶ added in v0.3.0
func (e *Editor) ClearAllBuffers()
func (*Editor) CreateFile ¶
Called when new file is opened or created in Bard
func (*Editor) CreateFileAtRoot ¶ added in v0.3.0
func (*Editor) DrawLineAt ¶ added in v0.3.0
func (*Editor) DrawStatusBar ¶ added in v0.3.0
func (*Editor) GeneralCase ¶ added in v0.2.0
func (*Editor) IsGeneralMove ¶ added in v0.2.0
func (*Editor) OpenFileCallback ¶ added in v0.3.0
func (*Editor) RemoveFileCallback ¶ added in v0.3.0
func (*Editor) RenameCallback ¶ added in v0.3.0
func (*Editor) ScrollLeft ¶
func (e *Editor) ScrollLeft()
changes XScroll if CurOff is toching ScrollBorder
func (*Editor) ScrollRight ¶
func (e *Editor) ScrollRight()
changes XScroll if CurOff is toching ScrollBorder
func (*Editor) SetErrorCallback ¶ added in v0.3.0
func (*Editor) SwitchToTab ¶ added in v0.3.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.