Documentation ¶
Overview ¶
Package wi brings text based editor technology past 1200 bauds.
This package contains only the non-unit-testable part of the editor.
- editor/ contains the editor logic itself. It is terminal-agnostic.
- wicore/ contains the plugin glue. This module is shared by both the editor itself and any wi-plugin-* for RPC.
- wi-plugin-sample/ is a sample plugin executable to `go install`. It is both meant as a reusable skeleton to write a new plugin and as a way to ensure the plugin system works.
This project supports 'Debug' and 'Release' builds. The Release build is the default, the Debug build has to be built explicitly. Use the following command to generate a Debug build:
go build -tags debug
A debug build has additional functionalities:
- Logs to wi.log.
- Has additional flags, for example it can create cpu profiles via -cpuprofile and optionally serve profiling data over a builtin web server at http://localhost:6060/debug/pprof via net/http/pprof with flag -http=:6060.
- Has additional commands defined, see editor/debug.go for the list.
Run "wi -h" for help about the additional flags after doing a Debug build.
See README.md for more details.
Directories ¶
Path | Synopsis |
---|---|
Package editor contains the UI toolkit agnostic unit-testable part of the wi editor.
|
Package editor contains the UI toolkit agnostic unit-testable part of the wi editor. |
Package internal contains the symbols that need to be exported so it can be used in RPC via net/rpc but is not meant to be an API for end user plugins.
|
Package internal contains the symbols that need to be exported so it can be used in RPC via net/rpc but is not meant to be an API for end user plugins. |
tools
|
|
wi-event-generator
Generates editor/event_registry.go from wicore/events.go.
|
Generates editor/event_registry.go from wicore/events.go. |
wi-event-generator/parse
Package parse contains simple go parser code to be used to generate code from interfaces.
|
Package parse contains simple go parser code to be used to generate code from interfaces. |
wi-plugin-sample is an example plugin for wi.
|
wi-plugin-sample is an example plugin for wi. |
Package wicore implements all the interfaces to be shared between the wi editor process and its plugins.
|
Package wicore implements all the interfaces to be shared between the wi editor process and its plugins. |
colors
Package colors declare constants and functions to simplify color management.
|
Package colors declare constants and functions to simplify color management. |
key
Package key implements generic key definition.
|
Package key implements generic key definition. |
lang
Package lang handles localization of language UI.
|
Package lang handles localization of language UI. |
plugin
Package plugin implements the common code to implement a wi plugin.
|
Package plugin implements the common code to implement a wi plugin. |
raster
Package raster implements text buffering.
|
Package raster implements text buffering. |
Click to show internal directories.
Click to hide internal directories.