Directories
¶
| Path | Synopsis |
|---|---|
|
Package edit provides a code editor widget for go-gui.
|
Package edit provides a code editor widget for go-gui. |
|
buffer
Package buffer holds the document model: per-line gap buffer, line index, and the single Edit/Change choke point.
|
Package buffer holds the document model: per-line gap buffer, line index, and the single Edit/Change choke point. |
|
highlight
Package highlight wraps chroma as a decoration provider over a buffer.
|
Package highlight wraps chroma as a decoration provider over a buffer. |
|
internal
Package internal holds helpers not exported outside go-edit.
|
Package internal holds helpers not exported outside go-edit. |
|
internal/fakewin
Package fakewin provides a headless *gui.Window with a deterministic TextMeasurer, plus event builders for driving editor callbacks in unit tests.
|
Package fakewin provides a headless *gui.Window with a deterministic TextMeasurer, plus event builders for driving editor callbacks in unit tests. |
|
text
Package text wraps go-glyph for the editor: shaping, metrics, hit-test, glyph-run cache.
|
Package text wraps go-glyph for the editor: shaping, metrics, hit-test, glyph-run cache. |
|
examples
|
|
|
basic
command
Command basic mounts an edit.Editor in a go-gui window, loading a file from argv[1] (or a built-in sample if no arg is given).
|
Command basic mounts an edit.Editor in a go-gui window, loading a file from argv[1] (or a built-in sample if no arg is given). |
|
npad
command
Command npad is a kitchen-sink editor example showcasing all go-edit widget features: native menus, file I/O, dirty state, syntax highlighting, theme switching, and a status bar.
|
Command npad is a kitchen-sink editor example showcasing all go-edit widget features: native menus, file I/O, dirty state, syntax highlighting, theme switching, and a status bar. |
Click to show internal directories.
Click to hide internal directories.
