No description
Find a file
Merith-TK 585f8d9ebb # editor: use core's 3-layer config loader
## 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.
2026-05-03 13:27:19 -07:00
buffer init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
cmd/res-edit init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
config.go # editor: use core's 3-layer config loader 2026-05-03 13:27:19 -07:00
editor_keys.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
editor_render.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
editor_tabs.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
filepicker.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
go.mod init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
go.sum init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
help.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
highlight.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
model.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
README docs: add README 2026-04-15 20:50:37 -07:00
sidebar.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
statusbar.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
tabbar.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
terminal.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00
theme.go init: residual/editor — TUI editor + res-edit binary 2026-04-15 19:15:22 -07:00

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