blorbb / obsidian-blockier

An Obsidian.md plugin for easier block editing.
MIT License
18 stars 1 forks source link

Feature request: whole code block selection #7

Open dany52 opened 3 months ago

blorbb commented 3 months ago

Hi! Thanks for the request, could you elaborate on what specifically you're looking for though? Do you want an option to select the contents of an entire code block if the cursor is in a code block? Would you want this selection to include the backticks as well?

dany52 commented 3 months ago

Hi!

Do you want an option to select the contents of an entire code block if the cursor is in a code block?

Yes

Would you want this selection to include the backticks as well?

No, because I want to replace the code in the block with a new one

blorbb commented 3 months ago

Done in release 1.1.0

dany52 commented 3 months ago

Almost perfect, thanks a lot.

There are some problems with selecting blocks that do not fit on the screen. They are selected only after scrolling down (or scrolling up when move from bottom)

blorbb commented 3 months ago

hm probably because im relying on html elements being present but obsidian doesn't load things outside of view. ill have a go at fixing this later, hopefully if i can find some less hacky way to implement this feature.