You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to change the existing functionality of goto_{next,prev}. Instead of next and prev in the literal sense, I want something more of nearest next and neareset prev.
At the moment, the current goto_{next,prev} has this behavior (which aren't present in the neovim-treesitter plugin, which i think is perfect for me)
My issue: In the below example, if we use goto_{next,prev}_class, after jumping inside class Test, there are two enums which are treated as class by the command. However, I cannot jump back to the position of class Test because I'm inside it so goto_prev_class don't go back to the first position.
The same issue is replicated when I'm inside the enum State0, I cannot go back to State0 enum.
For me, I know that in a very big java file, at the very top would be the class among various variables in between. Other things like interfaces and enums will be linearly positioned (and even functions) which allows me go through them easily. Also the multi-cursors benefit because instead of a regex based pattern to select "few" functions, I could just jump to them directly.
Example here:
import java.util.concurrent.TimeoutException;
public class Test {
public enum State0 {
RUNNING("running"),
STOPPING("stopping"),
STOPPED("stopped"),
RESTARTING("restarting");
}
public enum State1 {
RUNNING("running"),
STOPPING("stopping"),
STOPPED("stopped"),
RESTARTING("restarting");
}
}
The text was updated successfully, but these errors were encountered:
Hi all,
I'm attempting to change the existing functionality of goto_{next,prev}. Instead of next and prev in the literal sense, I want something more of nearest next and neareset prev.
At the moment, the current goto_{next,prev} has this behavior (which aren't present in the neovim-treesitter plugin, which i think is perfect for me)
My issue: In the below example, if we use goto_{next,prev}_class, after jumping inside class Test, there are two enums which are treated as class by the command. However, I cannot jump back to the position of class Test because I'm inside it so goto_prev_class don't go back to the first position.
The same issue is replicated when I'm inside the enum State0, I cannot go back to State0 enum.
For me, I know that in a very big java file, at the very top would be the class among various variables in between. Other things like interfaces and enums will be linearly positioned (and even functions) which allows me go through them easily. Also the multi-cursors benefit because instead of a regex based pattern to select "few" functions, I could just jump to them directly.
Example here:
The text was updated successfully, but these errors were encountered: