dy-sh / obsidian-code-block-from-selection

Obsidian plugin. Adds code block for the selected text.
MIT License
33 stars 1 forks source link

Support code block value from clipboard in cursor line #5

Open madroidmaq opened 2 years ago

madroidmaq commented 2 years ago

A usage flow of pasting code is roughly as follows:

  1. Paste the relevant code in IDEA (VS Code...);
  2. Copy the relevant code in Obsidian and add the corresponding ```

Now the use of this plugin is that there will be a third step, which is to select the content in Obsidian again, and then execute the corresponding shortcut key