Meme Terminal Sounds
A VS Code extension that plays meme sounds when:
- A new error is detected in your code.
- Specific commands are executed in the terminal.
Features
- Error Sounds: Automatically plays a sound when the diagnostics engine finds a new error.
- Terminal Sounds: Play sounds based on regex patterns matched against terminal commands.
- Customizable: Configure your own sounds for each event.
Configuration
Go to VS Code Settings and search for Meme Sounds:
memeSounds.enableErrorSounds: Enable/disable sounds for coding errors.
memeSounds.errorSoundPath: Full path to your error sound file (e.g., /Users/me/sounds/oh-no.mp3).
memeSounds.terminalMappings: A list of patterns and sound paths.
Example:
[
{
"pattern": "git pull",
"soundPath": "/Users/me/sounds/success.mp3"
},
{
"pattern": "npm install",
"soundPath": "/Users/me/sounds/loading.mp3"
}
]
Requirements
- macOS: Currently uses
afplay for zero-dependency playback.
How to test
- Launch the extension:
- Open the project in VS Code.
- Press
F5 to open a new Extension Development Host window.
- Test Error Sounds:
- In the new window, create a new file (e.g.,
test.ts).
- Type some broken code to trigger an error (e.g.,
const x = ;).
- You should hear the "Faah" sound!
- Test Terminal Sounds:
- Open the terminal in the new window.
- Type
npm run dev.
- You should hear "Here we go again"!
- Test Command Palette:
- Open the Command Palette (
Cmd+Shift+P).
- Run
Meme Terminal Sounds: Test Error Sound.
| |