cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

"just" keyword missing from documentation

Open paul-schaaf opened this issue 3 years ago • 2 comments

paul-schaaf avatar Jul 10 '22 19:07 paul-schaaf

We might want to borrow from https://github.com/Will-Sommers/cursorless-katas/tree/main/katas/modifiers/just

pokey avatar Jul 12 '22 17:07 pokey

this could be part of a larger new section called "inference" which itself could be a part of the target section

paul-schaaf avatar Jul 14 '22 17:07 paul-schaaf

#1707 fixed this and #1537, which I did not originally know was a duplicate

jmegner avatar Sep 05 '23 17:09 jmegner

It looks like #1707 didn't describe the inference part of "just", which ~is~ was the main motivation for its existence.

auscompgeek avatar Sep 05 '23 23:09 auscompgeek

It looks like #1707 didn't describe the inference part of "just", which is the main motivation for its existence.

We're actually starting to lean away from using "just" for that purpose and instead using "token", because "just" has all the other side effects mentioned in those new docs

That being said, it's probably worth calling out that inference piece, esp in the case of "just this", because you might not want to use "token this" and expand to containing token

Cc/ @AndreasArvidsson

pokey avatar Sep 06 '23 04:09 pokey

Yeah I think we should probably document that behavior

AndreasArvidsson avatar Sep 06 '23 05:09 AndreasArvidsson

Sure, but I'm not sure we want to recommend it as the preferred way to break inference. Agreed?

pokey avatar Sep 06 '23 07:09 pokey

Yes

AndreasArvidsson avatar Sep 06 '23 07:09 AndreasArvidsson