combobulate
combobulate copied to clipboard
Wrap TSX / JSX Elements
Great stuff. As a big fan of things like lispy, this is a step in the right direction. Very in-line with how Emacs works I think. I'm using combobulate
already for TSX files. Works great. Thanks!
The README mentions :
....a prefix map of mode-specific transformations. Currently only used in Javascript and Typescript modes to vanish/wrap JSX elements
I couldn't find a generic "wrap element" command, ie to wrap in an arbitrary tag like <h1>
, <div>
etc. Did I miss it? If not I'd be happy to add.
Hi Steve. Sorry yeah the README's a bit ambiguous. There's combobulate-javascript-jsx--wrap
which is used to comment or turn things into JSX expressions.
Feel free to PR some improvements to that area.