Skip to content

Conversation

SavingFrame
Copy link

If in the same file you have both class/function with decorator and without it then move/select won't work for class/function without decorator. I found this bug in the main branch, so maybe main problem not in the query, but this fix works.

If in the same file you have both class/function with decorator and
without it then move/select won't work for class/function without
decorator. I found this bug in the `main` branch, so maybe main problem
not in the query, but this fix works.
@kiyoon
Copy link
Collaborator

kiyoon commented Jul 7, 2025

Thank you for the PR.

Firstly, you can't directly change queries on the main branch. Instead, they have to be changed on master and then later rebase them to the main.

Second, I don't have the problem on the master branch. However, I have a problem where the decorator aren't really selected.

@SavingFrame
Copy link
Author

Thank you for the PR.

Firstly, you can't directly change queries on the main branch. Instead, they have to be changed on master and then later rebase them to the main.

Second, I don't have the problem on the master branch. However, I have a problem where the decorator aren't really selected.

Ye, i have that problem with decorator as well, but if set cursor position on the decorator and use "class.outer" it would work.
But in my PR i tried to fix problem with selection in the main. We have this problem only in the main branch. I recorded a few videos with comparing master to main behavior.

  1. treesitter + textobjects from the main
2025-07-07.14-14-55.mp4
  1. treesitter+textobject from the master
2025-07-07.14-16-37.mp4

I used select inner/outer class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants