Skip to content
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

Containing token inference doesn't work next to single-character token #200

Closed
pokey opened this issue Aug 7, 2021 · 0 comments · Fixed by #229
Closed

Containing token inference doesn't work next to single-character token #200

pokey opened this issue Aug 7, 2021 · 0 comments · Fixed by #229
Assignees
Labels
bug Something isn't working

Comments

@pokey
Copy link
Member

pokey commented Aug 7, 2021

When there are two tokens next to each other and you use a subword modifier, cursorless will assume that you are referring to the token to the right of your cursor. However, if the token to the right of your cursor is a single character, then this will not be what you want. It might make more sense to assume the user is referring to token to the left in this case. For example

fooBar;

If the cursor is before the ;, the command "take first word" doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants