cursorless is Talon’s killer app: a stunningly good editing package via VS Code.

Videos

Actions

  • take :
  • bring: copy: bring blue air, bring blue air to blue gust
  • move: move row 1, move blue air to green gust
  • chuck: delete
  • change: delete and move cursor to that location: ‘change blue air’

Selecting

  • take line fine, take block air
  • row 7 and row 9 (only say a row’s last 2 digits)
  • take air and bat and sun
  • chuck 2 tokens air, take 3 lines green drum, chuck 3 chars odd, take 1 chars, take last 4 chars each
  • NOTE: can walk words in camel formatting by using ‘word’

To Research

  • using cursorless to lower case or title case a target

Up Next

  • community visual studio code commandsi
  • draft this, all, file, line, top, bottom; submit

Documentation, Tutorials, etc

Install cursorless, then read the documentation, watch official and unofficial videos, [practice]](https://github.com/Will-Sommers/cursorless-katas). cursorless cheatsheet for more

Sections in Progress

Drafts

  • 3with the draft commands, you can essentially turn cursorless into your DragonPad – your test editor for Slack, email, etc.
  • Short video and meetup of drafts in action

“chuck row twenty four” “post row eighty nine” “pour row eleven” “up " / "down "​

The word “up” or “down” followed by a number can be used to refer to the line that is lines above or below the cursor. The line may be outside of the viewport. In the case of multiple selections, this mark only refers to the line relative to the primary selection. You can turn on relative line numbers in the VSCode settings to make these marks easier to use.

“copy up one”

The word “line” can be used to expand a target to refer to entire lines rather than individual tokens:

eg: take line [blue] air Selects the line including the token containing letter ‘a’ with a blue hat.

“block”​

The “block” modifier expands to above and below the target to select lines until an empty line is reached.

“take block” “take block "

eginning or end of the line, respectively.

“take head”: select from the cursor the start of the line “take tail”: select from the cursor to the end of the line “take head air”: selects the mark through to start of the line “take tail air”: selects the mark through to the end of the line

The “phones” command can be used to cycle through homophones for a given target. For example, if there were a hat on the h in where, you could say “phones harp” to change it to wear.

“phones " eg:

“phones air”

Other stuff

  • please word: search the command pallet for that word 
  • https://jacobegner.blogspot.com/2023/02/talon-voice-and-cursorless-notes.html
  • Re deleting parens, it’s “chuck bounds”, and there’s no doc for it because it’s just a combination of an action with a scope type
  • to replace slashes w backslashes: use take blue/whatever slash to take the first one, cursor more tenth to select the next ten and then say backslash

Visual Studio Code tricks

  • To run any vscode command, use user.vscode(“some vs code cmd from cmd pallet”)
  • vscode Talon cmds: https://github.com/knausj85/knausj_talon/blob/mode_indicator/apps/vscode/vscode.talon

Tips

  • At the beginning, if you are having trouble grabbing the right words, take a closer look at the colors. For example, I was very frustrated until I realized that I kept thinking some dots were green when in fact they were blue. As soon as I realized I was doing that, the problem went away.

To toggle the dots, add a command: confetti off: user.vscode(“cursorless.toggleDecorations”)

pre every line block

cursorless snippets: https://github.com/pokey/dotfiles/tree/develop/cursorless-snippets