1
Only select the code block content when pressing Cmd + A inside the node
Source: outline/outline#6495 · opened by @bcbogdan
Hi everyone, I'm sorry in advance if this was already discussed and I missed a previous issue. Problem I've been writing a couple of documents that make use of Mermaid code blocks. And for me the usual flow is: 1. Go to mermaid.live and get some sample code 2. Define your first diagram 3. When it's time to define another mermaid block: - create the empty block - click on the previous one and press Cmd+A (this is where the flow breaks) - then copy and paste it in the newly created one This is probably a pattern that I got from using Notion, but the _separated_ UI of the mermaid block also helps to make you feel that only the code will be copied. Solution As the title says, when your cursor is inside a code block and you press Mod-A the editor would only select the text that's inside the block. If you press the keyboard shortcut again the selection will include the entire document. It's basically how Notion works. I already…
No pledges yet. Be the first to back this.
Comments
Similar requests
Proposal for Reusable content snippets (source blocks + reference embeds)
1 vote · 0 comments
add filename header for code blocks
4 votes · 0 comments
Enhancement Request: Tab/Shift+Tab Support for Code Block Indentation
1 vote · 0 comments
Transclusion
2 votes · 0 comments
[macos] Provide some user control over common keyboard shortcut overrides
1 vote · 0 comments
No comments yet.