ieviev / obsidian-keyboard-shortcuts

Quick snippets and navigation for Obsidian
MIT License
24 stars 0 forks source link

[Feature Request] Copy current code block #7

Open Avi0 opened 2 months ago

Avi0 commented 2 months ago

Currently there are two copy shortcuts: Copy Code Block (calls a popup with code blocks selection) and Copy Next Code Bock (copies next call block).

I noticed that I often need to copy the current code block, and there is no such shortcut. Would it be possible to implement?

ieviev commented 2 months ago

I find myself using "Go to previous empty line" and then "Copy next code block", would that work right now? i could look into this some time later

Avi0 commented 2 months ago

My code blocks don't always have empty lines between them. This isn't critically important, I can scroll to the top of the code block one way or another and then copy next code block, this is what I usually do. This plugin is extremely useful as it is. I created this issue because I found it weird that I can copy next code block but not current.