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
Adds a global option to allow keeping tagbar local to the window containing the buffer.
The intention is to keep the tagbar local to the current window. This change does do that. However if we move to another window while tagbar is active the tagbar will be updated to reflect the buffer in the active window.
I would like to do the following when switching windows with tagbar active (if the opted in):
prevent tagbar being updated when moving around windows
make TagbarToggle close the active tagbar and reopen it in the newly active window
I am very new to vimscript. I would appreciate some hints to be able to do that.
Some reason this was closed? It it isn't ready but you still plan to work on it it would be nice to track it as an open PR in Draft mode (you can convert it back using the link in the reviewer section after you open it up again).
@isharaka A little while ago there was a change made to the g:tagbar_left to use g:tagbar_position instead (#630 / #652). This allows more granular control of the window positioning so it should now be possible to make the tagbar window local to the active window by doing something like this:
let g:tagbar_position = leftabove
This should open the tagbar to the left or above of the current active window (see :h split for more details on exactly how this works). Note that this wouldn't cover the case of only updating the tagbar window when switching to other windows. It will still do that, but this should at least give you a few more options for window positioning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a global option to allow keeping tagbar local to the window containing the buffer.
The intention is to keep the tagbar local to the current window. This change does do that. However if we move to another window while tagbar is active the tagbar will be updated to reflect the buffer in the active window.
I would like to do the following when switching windows with tagbar active (if the opted in):
I am very new to vimscript. I would appreciate some hints to be able to do that.