cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Support `"every <scope>"` / `"<ordinal> <scope>"`

Open pokey opened this issue 4 years ago • 1 comments

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 funk and first char / last word etc

Questions

  • How do we handle ranges such as today's first past third word or the future first past third funk?

pokey avatar Jun 30 '21 13:06 pokey

This one will be great once we have https://github.com/pokey/cursorless-vscode/issues/69

pokey avatar Jul 05 '21 13:07 pokey

Is there more work to be done on this?

AndreasArvidsson avatar Jul 03 '23 17:07 AndreasArvidsson

Looks done to me

AndreasArvidsson avatar Nov 18 '23 23:11 AndreasArvidsson