arikchakma / maily.to

Craft beautiful emails effortlessly with Maily, the powerful email editor that ensures impeccable communication across all major clients.
https://maily.to
MIT License
1.44k stars 74 forks source link

Extendable Slash Commands with Custom User Commands #36

Closed BigDog1400 closed 7 months ago

BigDog1400 commented 7 months ago

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 7 months ago

Yes, we can do that. I think as you're already implementing i18n, we also have to think about that one.

BigDog1400 commented 7 months ago

Let me know if you want me to tackle this, i can allocate some time this weekend to solve it

arikchakma commented 7 months ago

@BigDog1400 Yes, please carry on. I'll review and merge the i18n support asap. Maybe next weekend.

arikchakma commented 7 months ago

@BigDog1400 I'm gonna pick it up, what do you think?

BigDog1400 commented 7 months ago

Hey, sorry, i didn't have the time to do it. Thanks for you work