#Indentation separate from line content

1 messages · Page 1 of 1 (latest)

wet lodge
#

I really like the indentation behaviour in OneNote, where the indentation is something separate from line content. Every line has an indentation level, a (list)type specifying it being a bullet/numbered/checklist item + relevant data and the content itself. This allows for much more freedom in note taking, PLUS makes indenting/outdenting and changing list type of multiple lines at the same time super easy to implement.

See the attached image for an example of what becomes possible. And yes, I (used to) use this a lot. Especially the multi-line changes and mixing checklists with numbered and bulleted lists, for subchecklists.


As a personal test for using OpenCode, I went ahead and made the changes needed for this and learned it is quite a change, since the underlying structure of the notes would be changed. Which means you also need to handle copy/pasting content and migrating existing notes.
But.. the test went well and I would love to be able to keep using it. 🙂 Now I understand it is quite some work to implement (or review). So I was wondering: is this something you would consider?

To give you guys a sneak peak and maybe help make my suggestion clearer: I went for the following approach regarding the underlying note structure regarding indentation and line types, which works quite well:

<p data-indent="1" data-list-type="ordered" data-list-number="a" data-spacing="double">...</p>
<p data-indent="2" data-list-type="ordered" data-list-number="i" data-spacing="double">...</p>
<p data-indent="3" data-list-type="check" data-checked="false" data-spacing="double">...</p>
#

Something else I just thought would be easy to implement with this, would be moving list items not only up and down along the same level (with alt + ↑ or ↓), but also left and right. And I guess also dragging and dropping of lists (as suggested here)

wet lodge
sturdy flare
#

I was just wanting this a couple of days ago. I was creating a note that included some quotes from a discussion thread, and I wanted to indent some quotes so I'd have a visual indicator of the thread structure.