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

Infer type of first swap argument #8

Closed
pokey opened this issue Jun 22, 2021 · 1 comment · Fixed by #143
Closed

Infer type of first swap argument #8

pokey opened this issue Jun 22, 2021 · 1 comment · Fixed by #143
Labels
enhancement New feature or request

Comments

@pokey
Copy link
Member

pokey commented Jun 22, 2021

To be consistent with the way we infer the type of a start of a range based on the type of the end of the range, we could infer the type of the first swap argument from the type of the second argument. For example, "swap with funk gust", can infer that the first argument is the function containing the cursor.

@pokey pokey added the enhancement New feature or request label Jun 23, 2021
@AndreasArvidsson
Copy link
Member

Do we really want to do inference in that direction?
If you just want that functionality why don't just say: swap funk with gust?

I think I probably would assume that your example swaps with current selection.

@pokey pokey closed this as completed in #143 Aug 3, 2021
saidelike added a commit to fidgetingbits/cursorless that referenced this issue Jul 19, 2024
feat: Add tasks for debugging neovim on linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants