cursorless
cursorless copied to clipboard
Support `"every <scope>"` / `"<ordinal> <scope>"`
The goal
For example:
- "every line"
- "every funk"
- "every line in class"
- "first funk"
- "last line in funk"
See https://github.com/pokey/cursorless-vscode/wiki/Target-overhaul for many more examples
- [ ] Also support "past last", so eg "past last item air", "past last funk air". This would target from the scope containing the mark through the last instance of the scope in its iteration scope
- [ ] Add expansion tests (see also #883)
Implementation
- This implementation will rely on #210 and #69.
- See https://github.com/cursorless-dev/cursorless/issues/797
Notes
- This functionality subsumes today's
every funkandfirst char/last wordetc
Questions
- How do we handle ranges such as today's
first past third wordor the futurefirst past third funk?
This one will be great once we have https://github.com/pokey/cursorless-vscode/issues/69
Is there more work to be done on this?
Looks done to me