Tuesday, November 14, 2023

Cursorless Is Alien Magic From the Future

Xe Iaso (via Hacker News):

Cursorless is a plugin that integrates with voice control software to let you do AST level code editing with your voice. This is crazy alien magic from the future.


The most magic parts about this are the ideas of destinations and targets when it comes to cursorless inputs. Targets are individual anchors in a document and destinations are places relative to individual targets. Every single token in a document is given a hat over a letter with a color. These hats act as anchors that let you give commands based off of locations, destinations, and paths between them.


The real power of cursorless comes in from not only the idea of paths (such as green urge past green bat to select the function fetchBlog in that screenshot), but the fact that cursorless knows what the AST of the language is doing. This means that you can do things across the entire function, like deleting it or moving it somewhere else.


2 Comments RSS · Twitter · Mastodon

Glad you found this! I’ve been meaning to give this a try for a while now.

The main Cursorless developer recently gave a talk at the final StrangeLoop: https://youtu.be/NcUJnmBqHTY?si=EF1mgElgWginbl2c

@remmah Thanks for the link!

Leave a Comment