Live demo: https://nextjournal.github.io/codemirror.next-clojure/
- Install JS deps:
yarn install
- Start dev server:
shadow-cljs watch app
- Open demo page at http://localhost:8002/
- "Yank" after kill (https://www.howtogeek.com/293850/how-to-use-macos-built-in-kill-and-yank-as-an-alternative-cut-and-paste/)
- Expand/contract region
- Barf
- Slurp
- Format whitespace (necessary for commands like Slurp to behave nicely)
- Navigate left/right by sexp
- cannot 'indent-all', changes on one line don't affect measurements taken on subsequent lines
- operators are recognized (lists with symbol in 1st position)
- Unwrap current collection
- Kill (remove all children of current node starting on current line)
- GitHub Action to publish demo site to github.io
- indentation
- odd error recovery behaviour - a
#
token can't be deleted - deletion
- Copy/paste (only first line copies to clipboard?)
- Ctrl-A => move to beginning of line (first non-whitespace char)