diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-22 20:09:33 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-22 20:09:33 +0200 |
| commit | 528a9c0888f1db2449d30bf9c0c8b55fcd3c645c (patch) | |
| tree | d8891ac02c1e0d873c0caff3ebe29b4ea2a916af /CLAUDE.md | |
| parent | d629558394465b8956285edac324d67688ddd2c1 (diff) | |
Use \$EDITOR as default editor, falling back to vi (task 344)
defaultConfig() now reads the \$EDITOR environment variable for EditCmd
so users get their preferred editor automatically without touching the
config file. Falls back to "vi" (universally available) when \$EDITOR
is unset or empty. A JSON config value still takes precedence over \$EDITOR.
Updated tests to: unset \$EDITOR where "vi" fallback is asserted, add
TestLoad_editorEnvVar covering the three cases (\$EDITOR unset, \$EDITOR
set, JSON override), and remove all stale "hx" references from comments.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ Config is read from `~/.config/foostore.json` at startup (merged over defaults). - `data_dir`: Git repo where encrypted `.index` / `.data` file pairs are stored (default: `~/git/geheimlager`) - `key_file`: Path to the raw encryption key file (default: `~/.geheimlager.key`) - `export_dir`: Temporary directory for decrypted exports (default: `~/.geheimlagerexport`) -- `edit_cmd`: Editor used by the `edit` command (default: `hx`) +- `edit_cmd`: Editor used by the `edit` command (default: `$EDITOR`, falling back to `vi`) - `sync_repos`: List of git remote names to push/pull when syncing The PIN (entered at startup or via `$PIN` env var) is used to derive the AES IV; the actual key comes from `key_file`. |
