Skip to content

Releases

0.1.7

Choose a tag to compare

@banh-me banh-me released this 26 Oct 06:48
316785f

Added

  • Per-mode terminal cursor shapes. New piVim.cursor_shape setting maps each vim mode to a DECSCUSR cursor shape: block, bar/beam/line, underline, their blinking variants, or raw codes 0–6. Requires pi's hardware cursor (showHardwareCursor: true or PI_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.
{
  "showHardwareCursor": true,
  "piVim": {
    "cursor_shape": {
      "normal": "block",
      "insert": "bar",
      "replace": "underline",
      "visual": "block",
      "visualLine": "block"
    }
  }
}

Fixed

  • REPLACE → NORMAL did not restore the NORMAL cursor shape. Pressing Esc in 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.7

0.1.6

Choose a tag to compare

@banh-me banh-me released this 21 Oct 09:09
3ade0e3

Fixed

  • G lands 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 (and ctrl+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 like tui.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

Choose a tag to compare

@banh-me banh-me released this 20 Oct 03:11
8b517be

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.json plus devDependencies replace the ad-hoc
    install that previously ran inside the workflow.
  • npm run typecheck replaces the inline tsc invocation.
  • Publishing is gated on the release environment: 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.5

pi-vim v0.1.4

Choose a tag to compare

@banh-me banh-me released this 20 Oct 02:17
d61f512

Metadata only. No code changes.

Expands the npm search keywords:

  • pi-coding-agent
  • pi-extension
  • vim-key-bindings

Install

pi install npm:@banh-me/pi-vim
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.4

pi-vim v0.1.3

Choose a tag to compare

@banh-me banh-me released this 20 Oct 01:13
2fcc149

Metadata only. No code changes.

Fixes the publish configuration so releases go to the public npm registry:

  • publishConfig.registry now points at https://registry.npmjs.org/
  • publishConfig.access is explicitly public — 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.3

pi-vim v0.1.2

Choose a tag to compare

@banh-me banh-me released this 20 Oct 01:13
bd0fffd

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.2

pi-vim v0.1.1

Choose a tag to compare

@banh-me banh-me released this 20 Oct 01:13
641d3bf

Metadata only. No code changes.

Fixes the publish configuration so releases go to the public npm registry:

  • publishConfig.registry now points at https://registry.npmjs.org/
    (previously GitHub Packages, which Pi cannot install from)
  • publishConfig.access is explicitly public — 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.3

pi-vim v0.1.0

Choose a tag to compare

@banh-me banh-me released this 18 Oct 13:24

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.0

Highlights

  • counts, operators (dw, d2w, cw, ci"), text objects, registers, u /Ctrl+r/.
  • whole insert sessions undo as one unit
  • clipboard mirror policy all (nvim clipboard+=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).