No description
- Go 100%
## What changed - Rewrote `config.go` to use `core/config.Init` instead of a bare `toml.DecodeFile` call. - The new loader follows the same 3-layer order as all other projects: compiled defaults → `/etc/residual/edit/config.toml` → `~/.config/residual/edit/config.toml`. - Removed the direct `github.com/BurntSushi/toml` import from `config.go`; loading is now delegated to `core/config.Init`. ## Files touched - `config.go` — rewritten ## Why The old implementation only read from `~/.config/residual/edit/config.toml` and ignored the system config directory, unlike every other program in the residual suite. Switching to `core/config.Init` makes the editor consistent and respects `/etc/residual` overrides. |
||
|---|---|---|
| buffer | ||
| cmd/res-edit | ||
| config.go | ||
| editor_keys.go | ||
| editor_render.go | ||
| editor_tabs.go | ||
| filepicker.go | ||
| go.mod | ||
| go.sum | ||
| help.go | ||
| highlight.go | ||
| model.go | ||
| README | ||
| sidebar.go | ||
| statusbar.go | ||
| tabbar.go | ||
| terminal.go | ||
| theme.go | ||
residual/editor
===============
TUI text editor for residual.
packages:
editor/ bubbletea model — tabs, sidebar, terminal panel, keybindings
editor/buffer/ line-based text buffer with undo/redo
binary:
res-edit open files for editing. multi-tab, syntax highlighting,
embedded PTY terminal panel, file picker, chord keybindings.
usage: res-edit [file...]
build:
go build ./cmd/res-edit
module: git.merith.xyz/residual/editor
requires: git.merith.xyz/residual/core