-
Notifications
You must be signed in to change notification settings - Fork 395
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
Implementing visual feedback on :VimtexInverseSearch into core vimtex functionality #3039
Comments
Thanks! I'll look into this when I get the time! |
Is this thing relevant to the current feature request? If so, then I don't understand what you mean here.
This is also somewhat unclear and it may help if you explain more what you mean. That is, what exactly is hard?
I think it can be added, but it would be nice to avoid options here. I believe a simple and efficient visual feedback could be added without any options. But I'm not 100% sure about centering. Perhaps that would also be good.
I'm curious, is it really necessary to replicate this feature? I mean, if you want smooth scrolling, can you not just use the plugin?
On neovim, I think we can use extmarks for this. And I guess there are something similar on Vim. I'll look into it. But I think I'll go with the cursorline method as a first step and fallback method. |
I've added an initial version of this now. It adds the highlight e4e5d9f#diff-cb0e46c70888bf8fe253c275dcf6f896f70d5a8db18acc1e953bbb06742c2b53R169 |
I recently asked for a feature where activating the InverseSearch functionality would centre and highlight the area in the document where the location was being referenced. @lervag implemented a very nice attempt at this: #3038
Here was the prototype:
This feature has been very valuable to me during testing. The InverseSearch functionality can sometimes be flakey: for example, it can be unclear if your PDF is 'focused', which means you may need to click 2-3 times for the search to happen. It can be also be hard to detect where in a tex document it is referencing.
I want to propose that this feature be implemented into the core vimtex functionality. Some additional thoughts:
The text was updated successfully, but these errors were encountered: