forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
It would be useful if a user's custom slash commands (i.e., the Markdown files in their ~/.config/opencode/command directory could be bound to keystrokes.
This could be done by interpreting any key beginning with a / in the object under the "keybinds" key in the config file as the name of a custom command's Markdown file. For example, this JSON snippet:
{
"keybinds": {
"/my-command": "ctrl+shift+m"
}
}... would cause a ctrl+shift+m keystroke to replace the current contents of the prompt input text box with /my-command and immediately submit the prompt input text box's contents, triggering the user's /my-command command.
Metadata
Metadata
Assignees
Labels
No labels