@joyanhui/pi-ext-float-term
Pi coding agent extension — floating terminal overlay (fish, lazygit, yazi, gcp) powered by node-pty
Package details
Install @joyanhui/pi-ext-float-term from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@joyanhui/pi-ext-float-term- Package
@joyanhui/pi-ext-float-term- Version
1.0.4- Published
- Aug 18, 2026
- Downloads
- 312/mo · 17/wk
- Author
- joyanhui
- License
- MIT
- Types
- extension
- Size
- 34 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./float-term.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@joyanhui/pi-ext-float-term
A pi extension providing floating terminal overlays powered by node-pty. Similar to Neovim's <leader>ft floating terminal.
Features
- Floating fish shell —
Ctrl+Alt+Fopens an interactive fish terminal in an overlay - Floating lazygit —
Ctrl+Alt+Gopens lazygit in a floating terminal - Floating yazi —
Ctrl+Alt+Yopens the yazi file manager - Floating gcp —
Ctrl+Shift+Alt+Gruns gcp (git conventional commits) then drops into fish - Exit gracefully —
exit/Ctrl+Dquits the shell and auto-closes;Ctrl+Spaceforce-closes
Installation
pi install npm:@joyanhui/pi-ext-float-term
Or for a single session:
pi -e npm:@joyanhui/pi-ext-float-term
Requirements
- pi coding agent (v0.x+)
node-ptyis a native addon without Linux prebuilds; on Linux it must be compiled withnode-gyp, so it needsnode-gyp,python3,make, andg++.- The extension resolves
node-ptyat runtime from: local install, bun global (~/.bun/install/global), npm global, or theFLOAT_TERM_NODE_PTYenv var pointing at anode-ptydirectory. - If the package installs with a warning (optional dependency failed), build
node-ptyonce and either install it globally or pointFLOAT_TERM_NODE_PTYat it.
Commands
| Command | Description |
|---|---|
/float-fish |
Open floating fish terminal |
/float-lazygit |
Open floating lazygit |
/float-yazi |
Open floating yazi file manager |
Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+Alt+F |
Floating fish shell |
Ctrl+Alt+G |
Floating lazygit |
Ctrl+Alt+Y |
Floating yazi |
Ctrl+Shift+Alt+G |
Floating gcp (git commit + push) |
gcp — Interactive Git Commit & Push
The gcp function (triggered via Ctrl+Shift+Alt+G) is an interactive helper for creating Conventional Commits and pushing them. It automates the git add . && git commit -m "..." && git push workflow.
How it works:
- Shows working tree overview — displays
git status --shortso you can review what will be staged - Prompts for commit type — select from a numbered list of conventional commit types:
| # | Type | Description |
|---|---|---|
| 1 | ✨feat |
A new feature |
| 2 | 🐛fix |
A bug fix |
| 3 | 📝docs |
Documentation only changes |
| 4 | 💄style |
Formatting, whitespace, missing semicolons (no logic change) |
| 5 | ♻️refactor |
Code refactoring (neither feat nor fix) |
| 6 | ⚡perf |
Performance improvement |
| 7 | ✅test |
Adding or modifying tests |
| 8 | 👷build |
Build system, dependencies, CI configuration |
| 9 | 🔧chore |
Maintenance, tooling, config files, gitignore |
| 10 | ⏪revert |
Revert a previous commit |
| 11 | 🔄update |
Dependency updates, toolchain version bumps, library upgrades |
- Prompts for commit description — enter a short summary (required)
- Executes — runs
git add .thengit commit -m "<type>: <description>"thengit push
The function defaults to type ✨feat (option 1) if you press Enter without selecting a number.
Requirements
- pi coding agent (v0.x+)
node-pty(included as dependency, auto-installed)
Documentation
For more information, visit dev.leiyanhui.com/ai/pi-float-term.
For source code, visit github.com/joyanhui/pi-extension.
License
MIT