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

Prefer active view instead of leftmost one for Goto commands with split views #2356

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

jwortmann
Copy link
Member

@jwortmann jwortmann commented Nov 4, 2023

Closes #718


Edit: Oh, the behavior of the group argument doesn't match builtin window.find_open_file at the moment. I will fix it.

Nevermind, it's a bit ambigious how exactly the function added in this PR is supposed to work if group = -1 is passed, but I guess it makes sense to prefer the currently active view in the active group (there can be other views matching in other groups, which ST still calls "active"). So I think it should work as expected.

@rwols rwols merged commit dad2fe1 into sublimelsp:main Nov 4, 2023
4 checks passed
@jwortmann jwortmann deleted the fix-goto-prefer-active-view branch November 4, 2023 11:40
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.

The Go To on a cloned view is enabled on the first view, instead of the current one
2 participants