dundalek / atom-markdown-mindmap

Visualize markdown files as mindmaps in Atom editor
Other
117 stars 31 forks source link

Drag and drop headings? #51

Open floriandierickx opened 4 years ago

floriandierickx commented 4 years ago

I like a lot your tool, it helps me a lot navigating in markdown documents and makes noting/writing a lot more fun.

While using your tool, I was thinking that a drag-and-drop feature for headings would be very useful. More speicifically: i was thinking about a kind of 'shortcut'+'move with the mouse' feature, that rearranges the markdown order (and heading 'degree') according to a moving node.

If you want some help implementing it, or if other people would find this useful as well or know how to implement it, feel free to jump into the conversation!

dundalek commented 4 years ago

Hi, thanks for the suggestion. I also had thought about this. This feature would require a bit of effort so I am not planning to implement it myself in the near future.

One potential gotcha is that the implementation would need to make sure the markdown parsing library preserves white space. Otherwise the text would get messed up when being put together after reordering.

Also since both headings and lists are being turned into mindmap nodes.. what happens when you would drag a heading and drop it inside a list?

My personal workflow is that I usually create the outline first consisting of just headlines. It is super quick to reorder with keyboard shortcuts at the beginning. Once I have a structure then I start filling out content. If anything needs to be reordered at that phase I use cut&paste.