Open hunk diff in a new Ghostty window from inside Pi.
/hunk→ openhunk diffat the current repo root in a new Ghostty window
- Uses Ghostty's AppleScript API on macOS
- Opens a new Ghostty window
- Starts at the git repo root for the current Pi cwd
- Launches
hunk diff
- macOS
- Ghostty 1.3.1+ with AppleScript support working
hunkinPATH- Run the command from inside a git repo
From npm (standalone package):
pi install npm:pi-ghostty-hunkFrom git:
pi install git:github.com/ferologics/pi-ghostty-hunkOr use the bundled package:
pi install npm:@ferologics/pi-extensions
# or
pi install npm:pi-shitAfter updating your package, reload Pi:
/reload