{"id":50108758,"url":"https://github.com/liunuozhi/pi-vi","last_synced_at":"2026-05-23T12:02:49.943Z","repository":{"id":355716551,"uuid":"1227370938","full_name":"liunuozhi/pi-vi","owner":"liunuozhi","description":"Minimal vi-style modal editing for Pi's TUI prompt","archived":false,"fork":false,"pushed_at":"2026-05-02T15:36:17.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-05T00:26:10.465Z","etag":null,"topics":["modal-editing","pi","pi-extension","terminal","tui","vi","vim"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liunuozhi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-02T15:36:07.000Z","updated_at":"2026-05-02T15:37:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/liunuozhi/pi-vi","commit_stats":null,"previous_names":["liunuozhi/pi-vi"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/liunuozhi/pi-vi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liunuozhi%2Fpi-vi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liunuozhi%2Fpi-vi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liunuozhi%2Fpi-vi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liunuozhi%2Fpi-vi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liunuozhi","download_url":"https://codeload.github.com/liunuozhi/pi-vi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liunuozhi%2Fpi-vi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33394672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["modal-editing","pi","pi-extension","terminal","tui","vi","vim"],"created_at":"2026-05-23T12:02:41.866Z","updated_at":"2026-05-23T12:02:49.933Z","avatar_url":"https://github.com/liunuozhi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pi-vi\n\nMinimal vi-style modal editing for Pi's input prompt. Trimmed to the muscle-memory core.\n\n## install\n\n```bash\npi install npm:@liunuozhi/pi-vi\n```\n\nRestart Pi after install.\n\n## commands\n\nSmall key set. No counts, no `;`/`,`, no text objects, no EX mode, no clipboard sharing.\n\n### mode\n\n| key | action |\n|-----|--------|\n| `Esc` | Insert → Normal |\n| `i` | Insert at cursor |\n| `I` | Insert before first non-blank |\n| `a` | Insert after cursor |\n| `A` | Append at line end |\n| `o` | Open line below + Insert |\n| `O` | Open line above + Insert |\n\n### motion (Normal)\n\n| key | action |\n|-----|--------|\n| `h` `j` `k` `l` | left / down / up / right |\n| `0` / `$` | line start / line end |\n| `w` / `b` | next word / previous word |\n| `gg` / `G` | top / bottom of buffer |\n| `f{c}` / `F{c}` | jump to `c` (forward / backward, inclusive) |\n| `t{c}` / `T{c}` | jump up to `c` (forward / backward, exclusive) |\n\n### edit (Normal)\n\n| key | action |\n|-----|--------|\n| `x` | delete char under cursor |\n| `dd` | delete line |\n| `dw` | delete word forward |\n| `df{c}` / `dt{c}` | delete to `c` (inclusive / exclusive) |\n| `D` | delete to end of line |\n| `cc` | change line (delete + Insert) |\n| `cw` | change word (delete + Insert) |\n| `cf{c}` / `ct{c}` | change to `c` |\n| `C` | change to end of line |\n\n### copy / paste\n\n| key | action |\n|-----|--------|\n| `yy` | yank line into internal register |\n| `p` | paste internal register after cursor |\n\n### undo\n\n| key | action |\n|-----|--------|\n| `u` | undo |\n\n## architecture\n\n- `index.ts` — `ModalEditor` extends `CustomEditor`; all key handling.\n- `motions.ts` — pure `findWordMotionTarget` and `findCharMotionTarget`.\n\nRun checks:\n\n```\nnpm install\nnpm run typecheck\n```\n\n## credits\n\nInspired by [lajarre/pi-vim](https://github.com/lajarre/pi-vim), which covers the high-frequency 90% of vim. `pi-vi` trims that further to the muscle-memory core.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliunuozhi%2Fpi-vi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliunuozhi%2Fpi-vi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliunuozhi%2Fpi-vi/lists"}