mirror of
https://github.com/arikchakma/maily.to.git
synced 2026-04-25 22:25:51 +03:00
[GH-ISSUE #36] Extendable Slash Commands with Custom User Commands #16
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/maily.to#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @BigDog1400 on GitHub (Jan 15, 2024).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/36
Right now, there isn't any way to add on to the commands that pop up when you type '/'. It might be great to have a feature that lets you do that
We could add a prop, let's call it 'slashCommands' (or any other name that sounds better). This prop can merge the default commands with any additional ones that the user wants.
I think we can make this happen by moving 'Command.configure({ suggestion })' over to extensions/index.ts and tweaking it a bit to 'Command.configure({ suggestion: getSlashCommandSuggestion })'.
@arikchakma commented on GitHub (Jan 15, 2024):
Yes, we can do that. I think as you're already implementing
i18n, we also have to think about that one.@BigDog1400 commented on GitHub (Jan 18, 2024):
Let me know if you want me to tackle this, i can allocate some time this weekend to solve it
@arikchakma commented on GitHub (Jan 18, 2024):
@BigDog1400 Yes, please carry on. I'll review and merge the
i18nsupport asap. Maybe next weekend.@arikchakma commented on GitHub (Feb 1, 2024):
@BigDog1400 I'm gonna pick it up, what do you think?
@BigDog1400 commented on GitHub (Feb 2, 2024):
Hey, sorry, i didn't have the time to do it. Thanks for you work