-
-
Notifications
You must be signed in to change notification settings - Fork 84
Unexpected token appears to be included when I say 'flash every token this' #2889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The expected behavior is that all tokens on all three lines are flashed. That is the behavior I get when I try this as well. Let's break down
|
Sorry, I miswrote my original message - I was saying 'flash every token this' |
That is own purpose, but might be a bit esoteric. The idea is that if you have a single scope selected and issue and every we ignore your current selection. Code: cursorless/packages/cursorless-engine/src/processTargets/modifiers/EveryScopeStage.ts Lines 62 to 71 in 3e8473a
Example test case: When you only have a single selection this logic make totally sense, but the behavior with multiple selections is a bit unexpected. @pokey How do you feel about different behaviors depending on if you have one or many input targets? |
Yeah I've always had mixed feelings about that heuristic. Multiple cursors is not a terrible idea for when to drop the heuristic, tho do we have that information easily available at the modifier stage? |
Not today. This would be a change to pass that additional information. |
For what it's worth it does seem to preserve the selection for the first set of cursors and only ignores the selection for the last one (which agrees with your description above, but is definitely a little bit odd- as an experience) |
Yeah that is not good UX. Here is a fix |
Unfortunately became quite a lot of changes to pass the modifier options, but I think this is the only way. It also opens up for more context aware modifiers in the future. Fixes #2889
When I have several tokens selected in the tale of three lines, and I say 'flash every token this' it includes the first token in the last line which is not in the selection. I expected that it would only flash the tokens that were within the selection. I'm including a video so you can see what I'm talking about. Is this the expected behavior?
Screen.Recording.2025-04-15.at.8.29.40.PM.mov
The text was updated successfully, but these errors were encountered: