Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶
type Editor interface {
GetEditorExecutable() string
OpenFile(file string) error
OpenFileWithCursorAtEnd(file string) error
OpenFileReadOnly(file string) error
}
Editor contains all the methods required to use a specfic editor.
Note: The editor doesn't need to do exactly what the method implies. For instance, if an editor doesn't support opening a file with the cursor at the end, just open the file normally and manually navigate to the bottom.
type Nano ¶
type Nano struct{}
Nano editor, for more information see https://www.nano-editor.org/.
func (Nano) GetEditorExecutable ¶
func (Nano) OpenFileReadOnly ¶
func (Nano) OpenFileWithCursorAtEnd ¶
type Neovim ¶
type Neovim struct{}
Neovim editor, for more information see https://neovim.io/.
func (Neovim) GetEditorExecutable ¶
func (Neovim) OpenFileReadOnly ¶
func (Neovim) OpenFileWithCursorAtEnd ¶
type Vi ¶
type Vi struct{}
Vim editor, for more information see https://www.cs.colostate.edu/helpdocs/vi.html.
func (Vi) GetEditorExecutable ¶
func (Vi) OpenFileReadOnly ¶
func (Vi) OpenFileWithCursorAtEnd ¶
type Vim ¶
type Vim struct{}
Vim editor, for more information see https://www.vim.org/.
func (Vim) GetEditorExecutable ¶
func (Vim) OpenFileReadOnly ¶
func (Vim) OpenFileWithCursorAtEnd ¶
Click to show internal directories.
Click to hide internal directories.