Skip to content

Change name scope in scm language to include the @ #1923

@pokey

Description

@pokey

If I have the following code:

(aaa) |
(bbb) @ccc

(where | is my cursor), I want to be able to say "bring name cap", but that results in

(aaa) ccc
(bbb) @ccc

rather than the desired

(aaa) @ccc
(bbb) @ccc

I think we were trying to be too fancy. I'd be inclined to just include the @ in the name scope, and stop using @ as insertion delimiter

The drawback is we wouldn't get a @ when we say "pour name" or "change name"

Note that we could get something like this in the future where we'd support "bring name cap to this" if we had #1631, but that's still more verbose than "bring name cap"

If we decide to go this route, we should prob also include the . in "access" (#1519)

Metadata

Metadata

Assignees

Labels

lang-scmLanguage support for tree-sitter .scm files

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions