Don't let the cursor slow you down
Go to file
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 Minor Cursorless docs follow-up tweaks (#610) 2022-03-18 10:58:00 +00:00
.vscode Serve docs folder and API reference on GitHub pages (#477) 2022-03-16 23:23:03 +00:00
cursorless-snippets Add PHP to snippets (#612) 2022-03-18 15:10:53 +00:00
cursorless-talon Add support for css and scss (#605) 2022-04-15 15:35:37 +01:00
data/playground Scala support (#399) 2022-01-08 16:42:56 +00:00
docs Update docs to clarify that all actions require a target (#628) 2022-04-13 12:53:44 -07:00
gh-pages-root Serve docs folder and API reference on GitHub pages (#477) 2022-03-16 23:23:03 +00:00
images Add highlight action and nothing mark (#563) 2022-02-14 14:11:09 +00:00
schemas Snippet wrap (#296) 2021-10-25 13:15:07 +01:00
scripts Minor Cursorless docs follow-up tweaks (#610) 2022-03-18 10:58:00 +00:00
src Add support for css and scss (#605) 2022-04-15 15:35:37 +01:00
website Set up Algolia doc search (#622) 2022-03-27 13:02:19 -07:00
.eslintrc.json Added no unused rule to lint (#517) 2022-02-13 13:36:00 +00:00
.gitignore Serve docs folder and API reference on GitHub pages (#477) 2022-03-16 23:23:03 +00:00
.vscodeignore Exclude website from extension (#614) 2022-03-19 22:33:25 -07:00
.yarnrc Skeleton 2021-02-14 15:23:21 +00:00
CHANGELOG.md Serve docs folder and API reference on GitHub pages (#477) 2022-03-16 23:23:03 +00:00
CONTRIBUTING.md Serve docs folder and API reference on GitHub pages (#477) 2022-03-16 23:23:03 +00:00
LICENSE Add license 2021-05-04 12:07:25 +01:00
NOTICE.md Clean up badges; add ratings badge (#488) 2022-01-17 14:06:49 +00:00
package.json Serve docs folder and API reference on GitHub pages (#477) 2022-03-16 23:23:03 +00:00
README.md Update documentation and links to reflect monorepo (#542) 2022-02-03 18:57:58 +00:00
third-party-licenses.csv Serve docs folder and API reference on GitHub pages (#477) 2022-03-16 23:23:03 +00:00
tsconfig.json Delimiter selector updated (#347) 2021-12-01 16:00:25 +01:00
vsc-extension-quickstart.md Skeleton 2021-02-14 15:23:21 +00:00
yarn.lock Serve docs folder and API reference on GitHub pages (#477) 2022-03-16 23:23:03 +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.

Checkout the docs and videos to learn more. See installation.md for installation instructions.

And I heard you like GIFs?

Curly repack ox Move arg air and each to after drum Chuck tail red pipe slice past end of file

Installation

Currently depends on Talon, though a keyboard version is planned.

See installation.md for installation instructions.

Extension Settings

This extension contributes the following settings:

  • cursorless.showOnStart: Whether decorations should appear on workspace start
  • cursorless.hatSizeAdjustment: Percentage to increase or decrease hat size; positive increases size
  • cursorless.hatVerticalOffset: How much to vertically shift the hats as a percentage of font size; positive is up
  • cursorless.hatEnablement.colors: Whether to enable particular hat colors.
  • cursorless.hatEnablement.shapes: Whether to enable particular hat shapes.
  • cursorless.hatPenalties.colors: How much to penalize each hat color. You will probably want to set this one to the number of syllables in the given style. Cursorless will then sort every style combination by number of syllables to refer to it.
  • cursorless.hatPenalties.shapes: How much to penalize each hat shape. You will probably want to set this one to the number of syllables in the given style. Cursorless will then sort every style combination by number of syllables to refer to it.

Known Issues

  • Cursorless calculates the position of the hats based on the characteristics of your font. If you find that the hats are off center you can try running this command: cursorless.recomputeDecorationStyles

Change Log

See CHANGELOG.md.

Contributing

See CONTRIBUTING.md.

Attributions

See NOTICE.md.