diff --git a/CHANGELOG.md b/CHANGELOG.md index b27a040..19c8ef4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- Vim bindings in the input via CodeMirror 6 + `@replit/codemirror-vim` (loaded from esm.sh, no build step). Supports `i`/`Esc`, `hjkl`, word/line motions, `dd`/`yy`/`p`, undo/redo, `/` search, `:` command line. Auto-disabled on touch devices (detected via `(pointer: coarse)`) where modal editing fights the virtual keyboard. + ## [0.1.0] - 2026-06-09 First release. Stateless translator UI that proxies streaming requests to diff --git a/static/index.html b/static/index.html index 44a0820..ae5f470 100644 --- a/static/index.html +++ b/static/index.html @@ -155,6 +155,28 @@ background: var(--border); box-shadow: none; } + + /* CodeMirror editor host — matches .output styling so input & output align */ + .cm-editor { + min-height: 180px; + border: 1px solid var(--border); + border-radius: 6px; + background: var(--panel); + font-family: ui-monospace, SFMono-Regular, Menlo, monospace; + } + .cm-editor.cm-focused { + outline: none; + border-color: var(--accent); + } + .cm-scroller { padding: 0.6rem 0.75rem; } + .cm-content { caret-color: var(--accent); } + /* vim's command-line / status hint inherits readable colors */ + .cm-vim-panel { + background: var(--panel); + color: var(--fg); + border-top: 1px solid var(--border); + font-family: ui-monospace, SFMono-Regular, Menlo, monospace; + } @@ -185,7 +207,7 @@
- +
@@ -197,7 +219,12 @@
-