Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 Add shortcodes for invoking different block types #1190

Open
stephtr opened this issue Jun 8, 2020 · 2 comments
Open

💡 Add shortcodes for invoking different block types #1190

stephtr opened this issue Jun 8, 2020 · 2 comments

Comments

@stephtr
Copy link

stephtr commented Jun 8, 2020

  1. Describe a problem.
    When mixing different blocks, currently interaction with the toolbar is necessary. It would be nice if every block type could have a specific shortcode, with which one can invoke it.

  2. Describe the solution you'd like. Mockups are welcome.
    When an empty, new line is focused, entering "* " or "- " will convert it to a list, "# " to a heading. With that one can achieve a Markdown-like typing experience.
    Since it can be extended to custom blocks, it would also solve 💡Indent inline text on tab key pressed #1163, since one could map "\t" to a custom intended block or "$ " to a math equation block.

  3. Are there any alternatives?
    Since this idea is focused on the "solution", I haven't thought much about the problem it tries to solve or other approaches.

@stephtr stephtr added the feature label Jun 8, 2020
@neSpecc
Copy link
Member

neSpecc commented Jun 8, 2020

Maybe related to #709

@neSpecc neSpecc added the viewed label Jun 10, 2020
@ollietreend
Copy link

It'd also be nice to include support for pasted content. So a pasted snippet containing a line beginning # would automatically become a heading, for example.

@neSpecc neSpecc removed the feature label Jan 28, 2023
@neSpecc neSpecc removed the viewed label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants