notea-org / notea

📒 Self hosted note taking app stored on S3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Improved Code Block

dom6770 opened this issue · comments

Notea is my go-to note app and I love it. One of my use-cases for the app are my installation steps for servers, etc. So I have a lot of commands to install and configure a plain Linux server. Unfortunately, with Notea it's just a bit annoying. My issues are

a) There's no button to easily copy code.
b) Inside the code block I can't press CTRL + A to select everything, because it won't select just the code block, it will select the whole note section.
c) While hovering on a code block, which has a long code inside, the language selector will obscure the view
image

My idea to improve the code block would be

a) moving the language selector above the code block and adding a copy button, something like this.
b) limiting the CTRL + A hotkey to the code block itself.

It´s also strange that there is a copy button when you share the note and open it through the shared link.

commented

image
Is this better? I mocked it up whilst making the new editor.

Much better. 👍
Will there be a new updated docker in the near future?

commented

Yes, there definitely will be, once I've managed to stabilise the image.
There are also automatically published images that are bleeding-edge (the tag name is main, if you're interested) - last I checked, the image wasn't even functional.

I would like to point out that the CTRL-A shortcut does not work within the code block, which is mildly annoying. I tried to fix it, but apparently the editor code doesn't like me.

EDIT: To clarify, by "in the near future" I mean within the next three months, hopefully within this month.

That's awesome, i was already afraid that notea was abandoned.

commented

Closing this issue as solved as the new editor has been added to Notea in 3c47567, which includes the updated code block.