MaxLap / standard-notes-indent-editor

A simple text editor that makes it easy to write and read nested notes in https://standardnotes.org/
GNU Affero General Public License v3.0
48 stars 2 forks source link

add enum list functionality #13

Closed 17prime closed 4 years ago

17prime commented 4 years ago

A first crack at enumerated list behaviour: will maintain blank space only indentation in enumerated lists (of the form: /^\s*(\d+).\s+/)/, and auto-increment numbers in consecutive lines on entry. Does not attempt to fix or re-number if things are moved/changed/deleted etc. after entry --- just intended to simplify enumerated list enty a little.

cheers, andrew

MaxLap commented 4 years ago

Thanks for the PR, I will try to take a look soon enough. Were you able to test it?

17prime commented 4 years ago

I did test this branch in a webpage a little, but it's the same changes to editor.js and indent_text.js that I do have running in another version I have loaded in SN web-app without issue (but which has unrelated changes and is where I was mucking about somewhat less "cleanly").

MaxLap commented 4 years ago

Nice, I saw your Nimble editor and this feature seems to fit nicely in Indent Editor :)