You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we allow / commands only at the start of an element, or do we allow it inside elements? If we allow inside, we could use turn into commands, like silver bullet. However, it might make things more complex.
Some ideas for commands:
Header levels. Turns current line into header, or creates new line with header
Embed youtube / spotify link (or other pluggable embed things)
Create task
Implementation
We add a SlashCommandsStore that has a register function. Each SlashCommand has a shortname, description and Function. The function should be able to do all sorts of funky things. Maybe it needs to be passed some Context that includes the current Element of the document
/, show the slash followed by a popout with a bunch of searchable commandsQuestions:
/commands only at the start of an element, or do we allow it inside elements? If we allow inside, we could useturn intocommands, like silver bullet. However, it might make things more complex.Some ideas for commands:
Implementation
SlashCommandsStorethat has aregisterfunction. EachSlashCommandhas ashortname,descriptionandFunction. The function should be able to do all sorts of funky things. Maybe it needs to be passed someContextthat includes the current Element of the document