Skip to content

brxck/cursorless-vscode

 
 

Repository files navigation

Cursorless

Allows cursorless editing and rapid navigation by decorating a single letter from each token.

Features

swap main-demo demo-2 demo-3

Many other marks / transformations / actions exist; documentation to follow.

Installation

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

See cursorless-talon for installation instructions.

Extension Settings

This extension contributes the following settings:

  • cursorless.showOnStart: Whether decorations should appear on workspace start
  • cursorless.hatScaleFactor: How much to scale the hats by
  • cursorless.hatVerticalOffset: How much to vertically shift the hats as a percentage of font size; positive is up

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

Release Notes

0.15.0

  • Support "character" subtoken transformation (eg "take fine third character") (thanks @brxck!)

0.14.0

  • Support insertLineBefore and insertLineAfter actions ("drink" and "pour")

0.13.0

  • Support "file" selection type to refer to the entire file
  • Improve error messages

0.12.0

  • Add subword support
  • [python] Fix parameter transformation
  • Show exceptions to user
  • Properly support using "token" to select only token, eg "take funk gust and token fine" to prevent "fine" from being inferred to have the function transformation.
  • Support "bring" action to use another target from elsewhere in the document

0.11.0

  • Simplify token regex

0.10.0

  • Add Python support

0.9.0

  • Support "string" and "comment" scope types

0.8.0

  • Support "fold", "unfold", and "swap" actions

0.7.0

  • Support "cut" action (default term in vscode-talon is "carve")

0.6.0

  • Support "copy" action

0.5.0

  • Support "that" to refer to previous target
  • Support "extract" action to extract to constant

0.4.0

  • Support pair key and value nodes
  • Support selecting all siblings

0.3.0

  • Support wrap

0.2.0

  • Add support for arguments and pairs

About

Don't let the cursor slow you down

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%