8bitgentleman / roam-depot-copy-code-block

Roam Research plugin to copy the contents of a code block
MIT License
0 stars 1 forks source link

add option to disable inline code block copying. Set to enabled by default #3

Closed ryanguill closed 2 years ago

ryanguill commented 2 years ago

this seems to be working well, the only thing I couldnt figure out how to do so far is to fire the observers when they are first created. But as soon as you click on any node in the graph they will fire and update. I can't seem to find good documentation on how the observers work or how to solve this problem. I tried firing a change event, but that didn't seem to do it.

It looks like my editor has also changed some code styles - semicolons, reformatting, etc. If you want me to match your code style exactly we could work on getting a prettier config in that will format things the way you like.

8bitgentleman commented 2 years ago

This looks great, I had trouble getting the observer to fire without selecting a node as well so no worries.