Currently when jumping to a tag, the buffer will always be scrolled to place the tag at the location dictated by g:tagbar_jump_offset. This means that if I jump to a tag that is already visible in the window (say, a few lines below my cursor) then the window will be scrolled unnecessarily, which can be a bit disorienting.
Solution: have a new option called g:tagbar_jump_lazy_scroll (defaults to 0) which, when turned on, will cause the following jump behavior:
If the tag being jumped to is already visible in the window then just put the cursor on that line without scrolling the window.
If the tag is not visible in the window, then perform the current jumping/scrolling behavior whereby the buffer is scrolled to put the tag/cursor on the line dictated by g:tagbar_jump_offset.
I think this would make for a smoother and more intuitive user experience.
Currently when jumping to a tag, the buffer will always be scrolled to place the tag at the location dictated by
g:tagbar_jump_offset
. This means that if I jump to a tag that is already visible in the window (say, a few lines below my cursor) then the window will be scrolled unnecessarily, which can be a bit disorienting.Solution: have a new option called
g:tagbar_jump_lazy_scroll
(defaults to0
) which, when turned on, will cause the following jump behavior:g:tagbar_jump_offset
.I think this would make for a smoother and more intuitive user experience.