Repository navigation
Releases
0.1.7
Added
- Per-mode terminal cursor shapes. New
piVim.cursor_shapesetting maps each vim mode to a DECSCUSR cursor shape:block,bar/beam/line,underline, their blinking variants, or raw codes0–6. Requires pi's hardware cursor (showHardwareCursor: trueorPI_HARDWARE_CURSOR=1) and a terminal that supports DECSCUSR. Omitted modes keep the previous shape; the terminal default is restored when vim is disabled or the editor is replaced.
Fixed
- REPLACE → NORMAL did not restore the NORMAL cursor shape. Pressing
Escin REPLACE mode now triggers the mode-change callback, so the configured NORMAL shape is applied immediately (previously the underline from REPLACE persisted).
Docs
- Documented installing from GitHub, including that an unpinned git install tracks
main(unreleased work), and how to pin a tag or commit.
Install
pi install npm:@banh-me/pi-vim@0.1.7
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.70.1.6
Fixed
Glands on the wrong line at the end of the prompt. When the prompt text ended with a newline,G("bottom") placed the cursor before the final newline — i.e. a line above the last one. It now lands on the final (empty) line; prompts ending with content are unchanged (cursor on the last character). (#1, #2)ctrl+e(andctrl+y/d/u/f/b) went dead in normal mode. These six opencode-vim scroll keys were consumed as handled, but pi-vim's scroll sink was a no-op — so pi keybindings bound to them (e.g.ctrl+e→app.editor.external, or defaults liketui.editor.cursorLineEnd,tui.editor.deleteToLineStart) never fired. They now abort pending state and fall through to pi's keybinding dispatch, mirroring insert-mode behavior. (#3, #4)
pi-vim v0.1.5
CI and packaging only. The published extension code is identical to 0.1.4.
- Publishing now runs in GitHub Actions via OIDC trusted publishing, with a
signed provenance attestation. - A committed
package-lock.jsonplusdevDependenciesreplace the ad-hoc
install that previously ran inside the workflow. npm run typecheckreplaces the inlinetscinvocation.- Publishing is gated on the
releaseenvironment: a maintainer must approve
the run before anything is pushed to npm.
Install
pi install npm:@banh-me/pi-vim
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.5pi-vim v0.1.4
Metadata only. No code changes.
Expands the npm search keywords:
pi-coding-agentpi-extensionvim-key-bindings
Install
pi install npm:@banh-me/pi-vim
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.4pi-vim v0.1.3
Metadata only. No code changes.
Fixes the publish configuration so releases go to the public npm registry:
publishConfig.registrynow points athttps://registry.npmjs.org/publishConfig.accessis explicitlypublic— scoped packages default to
restricted, which hides them from registry search
This is the version that makes pi install npm:@banh-me/pi-vim resolve
correctly against npm.
Install
pi install npm:@banh-me/pi-vim
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.3pi-vim v0.1.2
Metadata only. No code changes.
Points repository, homepage and author at the renamed
banh-me/pi-vim repository, and declares the
host-provided @earendil-works/pi-coding-agent and @earendil-works/pi-tui
packages as peerDependencies rather than bundled dependencies.
Install
pi install npm:@banh-me/pi-vim
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.2pi-vim v0.1.1
Metadata only. No code changes.
Fixes the publish configuration so releases go to the public npm registry:
publishConfig.registrynow points athttps://registry.npmjs.org/
(previously GitHub Packages, which Pi cannot install from)publishConfig.accessis explicitlypublic— scoped packages default to
restricted, which hides them from registry search
This is the version that makes pi install npm:@banh-me/pi-vim resolve
correctly against npm.
Install
pi install npm:@banh-me/pi-vim
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.3pi-vim v0.1.0
First public release.
Vim modal editing for the pi coding agent prompt —
INSERT / NORMAL / REPLACE / VISUAL / V-LINE with counts, operators, text objects, registers,
vim-style undo/redo and dot-repeat.
Install
pi install npm:@banh-me/pi-vim
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.0Highlights
- counts, operators (
dw,d2w,cw,ci"), text objects, registers,u/Ctrl+r/. - whole insert sessions undo as one unit
- clipboard mirror policy
all(nvimclipboard+=unnamedplus) /yank/never - configurable escape sequences (
jk), langmaps, mode-label colors, toggle key
Ported from opencode-vim-plugin (MIT, © leohenon);
pi editor integration guided by pi-vim-keys and
pi-vim (both MIT).
{ "showHardwareCursor": true, "piVim": { "cursor_shape": { "normal": "block", "insert": "bar", "replace": "underline", "visual": "block", "visualLine": "block" } } }