Documentation
¶
Overview ¶
Package main is a showcase of github.com/malivvan/editor hosted by tcell directly: no widget toolkit, no application framework, no layout engine.
The program opens a tcell.Screen itself, paints its own frame and status bar with tcell calls, and hands every key and mouse event to a single editor.View. All the editor needs from its host is a rendering surface, and a tcell.Screen already satisfies it (see editor.Screen) — so the same View could just as well be drawn into an in-memory grid.
go run ./demo [file]
Keys:
Ctrl-S save the buffer (built-in sample buffers have no file name) Ctrl-Q quit F1 toggle line numbers F2 cycle through the embedded colorschemes
Typing a word opens the autocomplete popup; the mouse selects text by dragging and moves the cursor on a click.
Click to show internal directories.
Click to hide internal directories.