obsidian-execute-code icon indicating copy to clipboard operation
obsidian-execute-code copied to clipboard

[FR] Run Command

Open zcysxy opened this issue 3 years ago • 3 comments

Thanks for this amazing plugin!

A small feature request: add a command to run the codeblock when the cursor is in it. Then we can assign a hotkey to it, without the need to hit the run button using a mouse.

This is implemented in Snippets Plugin.

zcysxy avatar Sep 20 '22 18:09 zcysxy

This would be brilliant! Can't believe how good this plugin is!!

mayurankv avatar Oct 27 '22 19:10 mayurankv

This would be a great feature to have, true! Are you referring to Live Preview mode specifically? I think that either source mode or preview mode would be a challenge -- I think we'd likely have to manage #129 first

chlohal avatar Oct 27 '22 21:10 chlohal

@chlohal Yes, I only use Live Preview mode, and I think most users do the same. And I also think your pull request is a must-have feature before this feature request. Currently, this plugin replaces the codeblock with a new view, where the output shows. With your pull request, no custom view is needed, making a lot of features doable in Live Preview.

zcysxy avatar Oct 28 '22 04:10 zcysxy