compose: edit the body with Vim's keys and a formatting toolbar

The rich text body took the usual keys only, and its formatting had keys but nothing to click, though every action here has both. The body now starts in Vim's normal mode, and a row of toggles over it bolds, italicizes, underlines, strikes through, marks code, edits a link, quotes, and makes lists, lit as the text at the caret is. A click runs the command and leaves the keyboard in the body. Esc in the body is Vim's, so the habit of a second Esc after leaving insert mode no longer closes the card; :q, :wq, and :x keep the draft and close it, :w keeps it now. :q! keeps it too, since a slip would lose the draft; Ctrl+Enter and Ctrl+Shift+D still send and discard. The status line shows Vim's mode and the command line as it is typed. The card's hints now act on the card itself instead of pressing keys on the desk, so their Esc closes it wherever the keyboard is.


Author rockorager.dev
Date Commit Parent fdb8c8ad
+343 -39
3 changed files
+343 -39
3 changed files