heyman / heynote

A dedicated scratchpad for developers
https://heynote.com
Other
3.76k stars 183 forks source link

Feature request: Bookmarks #217

Open drod3763 opened 5 months ago

drod3763 commented 5 months ago

Have you searched existing Github issues to see if someone has already requested this feature? Yes

Is your feature request related to a problem? Please describe. I imagine my buffer will get large at some point and while I've seen some workarounds for this like naming blocks and using search I wonder if there is a faster way for me.

Describe the solution you'd like I'd like to be able to bookmark a block or a line within a block so I can toggle back and forth between two blocks that might not be close to each other.

kjk commented 1 month ago

I've implemented something like that in my fork (https://github.com/kjk/edna, https://edna.arslexis.io/).

I've added Ctrl + B command which shows this dialog:

image

You can type to narrow down the block, Enter to navigate to block, and first 10 blocks can be navigated with Ctrl + 0 - Ctrl - 9.

The block title is extracted from first non-empty line in the block.

This is my svelte 5 note so the blocks are various topics related to svelte.