notaapp / talk

Issues and discussions for the notes app, Nota.
https://nota.md
60 stars 1 forks source link

Should `Move Line Up/Down` move whole folded segments? #343

Open petrbouchal opened 1 year ago

petrbouchal commented 1 year ago

When I fold a section by clicking e.g. the h2, then place the cursor in the line and Move Line Up / Move Line Down (via custom keyboard shortcut), the section unfolds and only the heading line moves up/down.

I think that (and would find it more convenient if) the whole folded segment was moved by the Move Line commands.

astoilkov commented 1 year ago

Yeah, absolutely. We've done this for lists but not for headings. It's a little harder for them. Do you know of another editor that does this well? Thanks.

petrbouchal commented 1 year ago

I know RStudio does - it's based on ACE I think?

I thought VSCode did but now I found it also cannot move folded blocks in Markdown - they get unfolded once the line is moved.

mdefazio commented 1 year ago

Adding a +1 for this. Noticed Obsidian doesn't do this either, but this would be a very nice feature

astoilkov commented 1 year ago

@mdefazio Yeah, I agree. We should do it!