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
The cursor should move right after ctrl+mouse click. However, after 8aa70e4 there's a nearly 1-second latency.
ps: the latency depends on the performance of vim. No additional plugins that potentially slow down vim are loaded with the minimal.vim below, so the latency is relatively low (but still noticeable and enough to reproduce the issue).
ctrl+mouse click someplace in Zathura, vim cursor moved right after that.
Manually activate vim window and continue editing.
Actual behavior
Workflow after:
ctrl+mouse click someplace in Zathura, vim highlighted line moved right after that, but the cursor disappears.
If activating vim window before the cursor reappears, a terminal control sequence ^[[I appears at the last line of the text, but the cursor is still invisible.
The cursor reappears after 1s, but Zathura window automatically gets activated at the same time.
One have to activate vim window again to continue edit.
So the problems are:
Long delay of the cursor after triggering a backward search
Weird behavior of activated window
and they got fixed after reverting the commit above.
Thanks! You're right; the specified change did introduce a lag. On my end it is much less distinct, so I never noticed. I measured it to about 0.03s before and 0.17s after. I've now pushed an update that should improve this quite a lot. On my end, the delay is reduced from 0.17s to 0.07s, so still somewhat slower. Can you test and see if it is acceptable?
The lag is introduced by some code that uses xdotool to focus Vim after the backward search. I've now also improved the code so that it should work if you're working inside tmux.
But, if you really don't want this and you think the lag is still too high, then we can definitely consider to add an option here.
Thanks for the update, the lag is much lower now, still noticeable but shouldn't break the workflow, completely acceptable to me.
As a bonus, the vim window automatically gets focused after a backward search and no longer need to be done manually, the overall UX is improved a lot.
Description
The cursor should move right after ctrl+mouse click. However, after 8aa70e4 there's a nearly 1-second latency.
ps: the latency depends on the performance of vim. No additional plugins that potentially slow down vim are loaded with the
minimal.vim
below, so the latency is relatively low (but still noticeable and enough to reproduce the issue).Steps to reproduce
minimal.vim
minimal.tex
vim -u minimal.vim minimal.tex
Expected behavior
Workflow before (expected):
Actual behavior
Workflow after:
^[[I
appears at the last line of the text, but the cursor is still invisible.So the problems are:
and they got fixed after reverting the commit above.
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: