Select multiple classes and show combined output... #47
Replies: 3 comments 1 reply
-
Oh, it looks like someone suggested something similar to this under |
Beta Was this translation helpful? Give feedback.
-
Someone suggested that when I first released the plugin, I forgot about it but it should be possible now that there's the NodeJS remote plugin. #27 is definetely not related by the way. There's already a vimL function called vim.fn.TailwindExpandUtilities({ "flex", "flex-col" })
-- .flex {
-- display: flex
-- }
-- .flex-col {
-- flex-direction: column
-- } The only limitation is that it can only expand utility classes from the configuration file and built-ins, but doesn't take components or the ones defined in CSS. (Could change with tailwindcss v4). |
Beta Was this translation helpful? Give feedback.
-
I've created an issue for this #48. I'm quite busy for the moment, so I'll pick it next week if someone doesn't decide to try it. I think it should be straightforward to implement :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know there are some Neovim plugins out there that do this sort of thing, but it would be cool to have a feature (or maybe it's already possible somehow?) where you have string of tailwind classes, e.g.:
flex h-[84px] flex-row items-start justify-start gap-x-12
and instead of hovering over each individual class to see its value, if you could select
n
classes and see the combined output of those classes.Current functionality (using above class string as an example)
hover over
flex
and see:hover over
h-[84px]
and see:Proposed Functionality
It would be very useful to be able to visually select
flex h-[84px]
and see:Or select the entire class string and see:
Beta Was this translation helpful? Give feedback.
All reactions