cursor-tab-pachinko
v0.0.5
Published
A fun hook for Cursor that plays pachinko sounds when you accept tab completions.
Downloads
498
Readme
cursor-tab-pachinko
A fun hook for Cursor that plays pachinko sounds when you accept tab completions.
After 4 tab completions, it opens a special YouTube video: https://youtu.be/TgQAFTvbpaI?si=a4iEQsW5p3SvhsSQ&t=1
Setup
1. Create hooks directory
mkdir -p ~/.cursor/hooks2. Create the hook script
Create ~/.cursor/hooks/pachinko.sh:
#!/bin/sh
bunx cursor-tab-pachinko@latestOr with npm:
#!/bin/sh
npx cursor-tab-pachinko@latestMake it executable:
chmod +x ~/.cursor/hooks/pachinko.sh3. Configure Cursor hooks
Create or edit ~/.cursor/hooks.json:
{
"version": 1,
"hooks": {
"afterTabFileEdit": [
{
"command": "./hooks/pachinko.sh"
}
]
}
}4. Restart Cursor
Restart Cursor to apply the hook configuration.
How it works
- Each tab completion increments a counter (stored in a temp file)
- Plays a different sound for each count (0-3)
- On the 5th completion, opens the YouTube video and resets the counter
