Programmable buttons in the menu bar panel #21
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgeadmin/plug!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/menu-bar-buttons"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #20 (web page); merge that first.
Anyone can add their own buttons to the menu bar panel and set them up in Plug > Settings… (⌘,) or Edit Buttons… in the panel.
What a button can do
shortcuts run <name>.claude -p <prompt>with the person's own Claude Code sign-in. Plug stores no key. It looks in the usual install folders and falls back to the login shell's PATH.How it works
;in a prompt can't run anything.~/Library/Application Support/Plug/buttons.json, separate from presets. A button the app can't read is skipped, and the rest still load.Files
PlugCore/QuickButtons.swift: the format, MIDI words and process arguments.PlugEngine/MIDIOutput.swift: sends MIDI.Plug/QuickButtonsModel.swift: runs the buttons.Plug/ButtonOutputWindows.swift: the result window.Plug/UI/ButtonsSettings.swift: the config panel.Tested
swift teston Linux: 46 tests pass, 8 of them new. They cover a round trip of every kind, lenient loading, the MIDI words, clamping, arguments and validation.swift testandscripts/bundle.shwork.~/.local/bin.🤖 Generated with Claude Code
https://claude.ai/code/session_011C96TJ2L7nzVMFTH7raNu5