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

Suggestion - Insert as Mermaid Diagram #1018

Closed
CheetahChrome opened this issue Mar 21, 2023 · 4 comments
Closed

Suggestion - Insert as Mermaid Diagram #1018

CheetahChrome opened this issue Mar 21, 2023 · 4 comments
Assignees

Comments

@CheetahChrome
Copy link

As a feature, to be able to right click and Insert as Mermaid would be helpful. The action would take the mermaid code in the clipboard and surround it with the mermaid code block. tic tic tic mermaid {Clipboard Text} tic tic tic.

@RickStrahl
Copy link
Owner

RickStrahl commented Mar 29, 2023

It's not going to be on the right click menu. none of the editor actions are there as there are way to many.

But I think it would be nice for the extra markup menu on the toolbar and also for the Command Palette (Ctrl-Shift-P Mermaid) to do what you ask.

I actually thought that was already there but I don't see it.

@RickStrahl RickStrahl self-assigned this Mar 29, 2023
@RickStrahl
Copy link
Owner

Another useful option might be the Insert Code dialog by adding Mermaid as syntax in which case it becomes:

  • ALt-c
  • (auto pasted from clipboard)
  • select Mermain
  • Enter

@RickStrahl
Copy link
Owner

So I've added the features to wrap mermaid text from:

  • Clipboard
  • Selection

It now works from the Command Pallette (Ctrl-Shift-P or the search box) and from the Extra Markup Toolbar drop down.

MermaidEmbedding

@CheetahChrome
Copy link
Author

Nice! Thanks for the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants