Skip to content

Create "spread" version of relative / ordinal modifiers #1514

@pokey

Description

@pokey

Eg "take spread three tokens", "take spread first three tokens", etc, which instead of creating a range between scopes, yields each scope in the range. It's just shorthand for "every <scope> <modifier>" but is common enough to be useful.

Might consider just using the word "every", eg "take every three tokens"? Or "split"?

Could be extra boolean field on these scopes in the Cursorless api

Could steal code from "instance", and potentially would allow us to have "instance" reuse more of our existing code, as one of the primary differences in the "instance" pseudo-scope is that it defaults to a "spread" scope

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions