@qianweiyang/pi-history-cursor-end

Move Pi's input cursor to the end of recalled history

Packages

Package details

extension

Install @qianweiyang/pi-history-cursor-end from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@qianweiyang/pi-history-cursor-end
Package
@qianweiyang/pi-history-cursor-end
Version
0.1.0
Published
Aug 30, 2026
Downloads
141/mo · 6/wk
Author
qianweiyang
License
MIT
Types
extension
Size
6.6 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "extensions/history-cursor-end.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-history-cursor-end

Move Pi's input cursor to the end of a recalled prompt. Pressing Up to recall a multiline history entry leaves the cursor at its final line, ready for more text.

The extension also keeps input history across /reload within the current Pi process and restores user prompts when switching sessions.

Install

pi install npm:@qianweiyang/pi-history-cursor-end

Restart Pi after installation.

Compatibility

This package wraps Pi's CustomEditor and reads internal cursor fields that are not part of Pi's public extension API. It is intentionally small, but a Pi editor refactor may require a package update.

License

MIT