combobulate icon indicating copy to clipboard operation
combobulate copied to clipboard

Wrap TSX / JSX Elements

Open stevemolitor opened this issue 2 years ago • 1 comments

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.

stevemolitor avatar Feb 16 '22 14:02 stevemolitor

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.

mickeynp avatar Feb 23 '22 14:02 mickeynp