cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Add unit sub-selection for values in SCSS/CSS

Open Will-Sommers opened this issue 3 years ago • 3 comments

Checklist

Will-Sommers avatar Jun 02 '22 00:06 Will-Sommers

@pokey — this one is ready to go again, merged main in.

Will-Sommers avatar Jun 08 '22 21:06 Will-Sommers

:wave: Hey @Will-Sommers, how's this PR going? I'd personally love to see this land; let us know if someone else will need to pick this up.

auscompgeek avatar Aug 06 '22 14:08 auscompgeek

Heyo @auscompgeek feel free to take it over!

This weekend I should be able to push up my code related to the regex version of this. I need to scroll back in my convos with @pokey to see where we fell on take every unit within a string.

Will-Sommers avatar Aug 12 '22 02:08 Will-Sommers

Looks good to me. If there are any details we can discuss them in the meeting.

AndreasArvidsson avatar Oct 02 '22 16:10 AndreasArvidsson

Looks good to me. If there are any details we can discuss them in the meeting.

well there's the ever-present parser vs regex discussion 😅 https://github.com/cursorless-dev/cursorless/pull/722#discussion_r893104146. In this case I think parser wins due to the multiple unit from key thing, but curious what you think

pokey avatar Oct 02 '22 16:10 pokey

Looks good to me. If there are any details we can discuss them in the meeting.

well there's the ever-present parser vs regex discussion 😅 #722 (comment). In this case I think parser wins due to the multiple unit from key thing, but curious what you think

I think that the syntax tree is a better match here. Personally I don't really have the need to support units in any other language anyhow. Not one that I can think of on top of my head.

AndreasArvidsson avatar Oct 02 '22 16:10 AndreasArvidsson

Personally I don't really have the need to support units in any other language anyhow. Not one that I can think of on top of my head.

Talon script within sleep()?

auscompgeek avatar Oct 03 '22 02:10 auscompgeek

Personally I don't really have the need to support units in any other language anyhow. Not one that I can think of on top of my head.

Talon script within sleep()?

The amount of times I want to change just the unit in a Talon script sleep is more or less zero. Turning 500ms into 1s sure but in that case I would not target just the unit.

Also the sleep format is not part of Talonscript or the Tree sitter for it. It's just a string that gets parsed python side. Of course this could be worked around, but I personally don't think it's worth it.

AndreasArvidsson avatar Oct 03 '22 06:10 AndreasArvidsson