3 ms·
About the gif at the bottom of the page, where a div is swapped in place with an html sister node... That's 100% possible to do in Emacs, while editing plain h
by escherize 10y ago
About the gif at the bottom of the page, where a div is swapped in place with an html sister node...
That's 100% possible to do in Emacs, while editing plain html, using smartparens-strict-mode. Basically it treats the HTML like lisp code, so by "autobalancing parens" the editor lets you swap-sexps, which would perform the same transformation as the drag and drop in the editor, but much quicker and easier (as long as u can invest in learning the keys.)!
Of course with Hiccup[0] or Reagent[1] code in Clojure/script, it's perfectly possible too. The same keybindings even.
[0] http://hiccup.space http://hiccup.space
[1] http://cljsfiddle.com http://cljsfiddle.com
(I'm the author of those little projects)