lakesare / memcode

Spaced-repetition: with real formatting.
http://memcode.com
MIT License
335 stars 72 forks source link

New Feature: Enable QuillJS indent format option in toolbar for text and list indent #89

Closed daniel-eder closed 4 years ago

daniel-eder commented 4 years ago

To structure data on flashcards it would be great to be able to use text indent and multiple list levels (list indent). It looks like you are using QuillJS, which already supports this, but it isn ot enabled on the toolbar, and the hotkey TAB is consumed by the navigation between cards.

My suggestion would be to enable this in the toolbar, and if possible, find a way to use the tab hotkey for indent as well.

lakesare commented 4 years ago

Quill didn't support nested lists the last time I checked, but I see there is some work going on https://github.com/quilljs/quill/issues/979. Certainly a nice feature to have, maybe on shift+tab in our case. Thanks for the PR, looking into it!

lakesare commented 4 years ago

@daniel-eder, made it so that if you tab within the list - it adds the sublist, and if you tab outside the list, - we switch to the next flashcard. Very happy about it, thank you for drawing my attention to this :-)

image

daniel-eder commented 4 years ago

That's a fantastic solution, thanks a lot