Documentation
¶
Overview ¶
EasyEdit — Hybrid terminal text editor.
Usage:
easyedit Open a blank file easyedit <filename> Open specified file
Shortcuts:
Ctrl+S Save Ctrl+Q Quit Ctrl+F Search Ctrl+H Replace Ctrl+A Select All Ctrl+Z Undo Ctrl+Y Redo Ctrl+X Cut Ctrl+C Copy Ctrl+V Paste Alt+W Toggle soft wrap : Enter command mode
Command mode (press : to enter):
:q Quit :q! Force quit (no save) :w Save :wq Save and quit :w <path> Save as :e <path> Open file :10,20d Delete lines 10-20 :%s/old/new/g Replace all :3,5s/old/new Replace in range :set nu Show line numbers :set nonu Hide line numbers :42 Jump to line 42 :uninstall Remove editor binary, config, and backup files
Config file (auto-loaded):
Linux/macOS: ~/.easyedit.toml Windows: %APPDATA%/easyedit/config.toml
Dependencies:
- github.com/gdamore/tcell/v2 (terminal handling)
- github.com/alecthomas/chroma/v2 (syntax highlighting)
- github.com/atotto/clipboard (system clipboard)
- github.com/BurntSushi/toml (config parsing)
- github.com/mattn/go-runewidth (character width)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package clipboard provides cross-platform clipboard access via OS commands.
|
Package clipboard provides cross-platform clipboard access via OS commands. |
|
Package command implements vi/ex-style command parsing and execution.
|
Package command implements vi/ex-style command parsing and execution. |
|
Package config manages editor configuration.
|
Package config manages editor configuration. |
|
Package document implements Gap Buffer based text storage and editing.
|
Package document implements Gap Buffer based text storage and editing. |
|
Package highlight implements syntax highlighting.
|
Package highlight implements syntax highlighting. |
|
Package ui implements the terminal text editor user interface.
|
Package ui implements the terminal text editor user interface. |