cursorless/cursorless-talon
Will Sommers 7378bcbb44
Add support for css and scss (#605)
* Begin to add support for css and scss

* Continue to work on SCSS, add new selector

* Record some tests for scss

* Add more tests, move tests to correct dir level

* Handle arguments and parameters correctly, tests

* Add tests for CSS, rely on SCSS for CSS matchers

* Add tests, clean up functions for merge

- Fix edge cases in CSS functions with multiple value single args
- Add Selector scope
- Clean up function in node selector
- Remove declaration from statement scope type
- Add declaration to item scope type

* Delete single line comment test for CSS

- Not valid syntax for CSS, just SASS

* Ensure we use scssStringTextExtractor

- Fixes `"take round`" for "hello (world)" in css

* Remove failing state tests

- State redefined as a ruleset selector + block rather than single property

* Add `parameters` back to argument matcher

* Remove test with invalid CSS

* Clean up tests

* Clean up CSS selector test

* Remove `take state` test

* More test clean up

* Various Changes

- Test cases for cursor positions when selecting keys and values
- Allow for name/value selection with optional args in SASS
- Start to clean up SCSS argument matcher

* Changes to childRangeSelector

- Also fix types & clean up findAdjacentArgValues

* Fix breaking tests from node selector change.

* Include all children for import and includes

* Update src/languages/scss.ts

Update delimited function check name

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>

* Update src/util/nodeSelectors.ts

Update childRange docstring for clarity

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>

* Change comment to docstring, handle method rename

* Add docstring

* Fix doc comment

* formatting

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2022-04-15 15:35:37 +01:00
..
.github Move to monorepo (#510) 2022-01-27 09:32:13 +00:00
.vscode/.ropeproject Move to monorepo (#510) 2022-01-27 09:32:13 +00:00
docs Update documentation and links to reflect monorepo (#542) 2022-02-03 18:57:58 +00:00
src Add support for css and scss (#605) 2022-04-15 15:35:37 +01:00
.gitignore Move to monorepo (#510) 2022-01-27 09:32:13 +00:00
LICENSE Move to monorepo (#510) 2022-01-27 09:32:13 +00:00
README.md Update documentation and links to reflect monorepo (#542) 2022-02-03 18:57:58 +00:00

Welcome to Cursorless!

Version Rating Tests Documentation Maintenance License: MIT

Cursorless is a spoken language for structural code editing, enabling developers to code by voice at speeds not possible with a keyboard. Cursorless decorates every token on the screen and defines a spoken language for rapid, high-level semantic manipulation of structured text.

We're really glad to have you here! A bit of housekeeping, first, though. If you're here in a browser, and your address bar points to https://github.com/cursorless-dev/cursorless-talon, then you're probably in the wrong place. Cursorless is now maintained as a monorepo, so you'll want to head on over to cursorless-vscode, where all the action happens 😊. The source of truth for these talon files is in the cursorless-talon subdirectory of cursorless-vscode.

Cursorless talon

This directory contains the talon side of Cursorless.