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

[Feature Request] Open file to specific offset #181

Closed
waynehoover opened this issue Jul 28, 2024 · 1 comment
Closed

[Feature Request] Open file to specific offset #181

waynehoover opened this issue Jul 28, 2024 · 1 comment

Comments

@waynehoover
Copy link

waynehoover commented Jul 28, 2024

In addition to opening a file at a specific line number and column, it would be very helpful to set the cursor at a specific offset in the file and scroll that into view. This is useful when using the Omnisearch HTTP server API as it only returns the offset to the word in the file.

For reference, here is how Omnisearch implemented this functionality internally. And here is a plugin that registers uri scheme specifically for jumping to an offset in a file

Thanks so much.

@waynehoover waynehoover changed the title Open file to specific offset [Feature Request] Open file to specific offset Jul 29, 2024
@Vinzent03
Copy link
Owner

Is now available in v1.43.0 🎉 via the offset parameter.

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

No branches or pull requests

2 participants