Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

pi-ghostty-hunk

Open hunk diff in a new Ghostty window from inside Pi.

Command

  • /hunk → open hunk diff at the current repo root in a new Ghostty window

Behavior

  • 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

Requirements

  • macOS
  • Ghostty 1.3.1+ with AppleScript support working
  • hunk in PATH
  • Run the command from inside a git repo

Install

From npm (standalone package):

pi install npm:pi-ghostty-hunk

From git:

pi install git:github.com/ferologics/pi-ghostty-hunk

Or use the bundled package:

pi install npm:@ferologics/pi-extensions
# or
pi install npm:pi-shit

After updating your package, reload Pi:

/reload