tagbar
tagbar copied to clipboard
Unexpected behavior of preview window
While looking for a solution for #400 (related to #184) I ran across a couple other strange behaviors of the preview window:
- [ ] 1. Unexpected autoclose and autopreview
- If both
tagbar_autocloseandtagbar_autoprevieware turned on, preview window does not close upon tag selection (unexpected) - If
tagbar_autocloseis turned off andtagbar_autopreviewis turned on, preview is closed (expected)
- If both
- [ ] 2. Toggle preview window. Pressing
Pin a selected tag shows the preview window, but pressing it again doesn't close the preview window (I would expect that) - [ ] 3.
pcloseis used onautoload/tagbar.vimbut it doesn't seem to be defined
Suggestions
- Create two wrappers for the
CloseWindowfunction:ClosePreviewWindowandOpenPreviewWindow - Create a
TogglePreviewWindowthat would wrap on top ofClosePreviewWindowandOpenPreviewWindowand map to thePkey
Obs: @alerque could you review these ideas and give me some directions on how to go about this? I've been stuck all day trying to solve #400 but the code kept behaving strangely (for instance it seems that pclose doesn't actually close the preview window). I also couldn't find "contributing" or "development" help sections on the repo.