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

Some suggestions for improvements #4

Open paulovieira opened 2 years ago

paulovieira commented 2 years ago

This is a really handy extension! Congratulations!

A few suggestions to improve:

1) The icon looks nice if you have 1 or 2 code blocks. But when you have dozens of snippets and inliners, all those icon seem to have a bit too much dominance in the Roam look.

One simple way to mitigate would be to have an option to define the icon size ("normal", "small", etc).

Other way would be to change the "copy icon" for something that has a more "light look" (I mean, not filled). For instance, the icon to copy the SHA in github's commit history is better, I think:

Screenshot_2022-08-31_10-11-39

In the Blueprint toolkit this seems to be called "duplicate".

2) This is related to #2. It's funny because I actually think this button is useful for inline code blocks, but not so much for "normal" code blocks.

My usage is more like this:

In conclusion: it would be nice if there was an extra option to enable/disable separately for inline code blocks and normal code blocks. In my case, I would have it enabled for inline and disabled for the other.

Thanks.