cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

add simple head/tail modifiers

Open josharian opened this issue 1 year ago • 1 comments

Checklist

  • [x] I have added tests
  • [-] I have updated the docs and cheatsheet
  • [-] I have not broken the cheatsheet

josharian avatar Feb 08 '24 01:02 josharian

cc @pokey -- not for review yet, a 📌 for a conversation for a possibly terrible idea i had about handling non-simple head/tail

josharian avatar Feb 08 '24 01:02 josharian

I believe we discussed this and decided that it would be better to have one token to indicate the start of a head or tail modifier and one token to indicate the end. If nothing falls in between then it is a head or tail of line, otherwise it's a head or tail of whatever modifier sequence falls in between. Does that line up with your recollection?

pokey avatar Apr 22 '24 12:04 pokey

Decided to opt for making it easy to tail one modifier because I think "head inside" is at least as common as "head line" for me tbh. See https://github.com/cursorless-dev/cursorless/pull/2428

pokey avatar Jun 17 '24 16:06 pokey