cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

"scout" regex escaping

Open whatisaphone opened this issue 9 months ago • 0 comments

Behavior differs from vscode here.

Baseline:

  • Hit ctrl+f to make sure regex is enabled (click the .* icon), then back out with esc
  • Type a(b in a new file, select it with the mouse, and hit ctrl+f
  • When vscode copies the text to the find box, it escapes it, resulting in a\(b

Cursorless:

  • Type a(b in a new file, and say scout three tokens air
  • The text is copied to the find box without escaping: a(b, and the find box will be covered with an error saying the regex is invalid

whatisaphone avatar Jun 02 '25 16:06 whatisaphone