Closed cocopon closed 6 years ago
FWIW I kind of tried implementing the sidebar management on my own while managing the "buffer nr" of Vaffle in the same method.
The source is here: https://github.com/cookiengineer/.vim/blob/master/mappings.vim#L52 I bound it to the F1 key, because I'm never using the terminal help anyways :D
I used a similar way as when implementing a sidebar with NetRW. The difference of NetRW vs. Vaffle is mostly that netrw's default behaviour is that it will open a selected file in a new buffer, not in the same one.
The only missing part for making it work with Vaffle is being able to set something like the "target buffer nr" for Vaffle; so that the open action will lead to the buffer being opened in the given buf nr. and not being opened in its own buffer as it is doing currently. Alternatively when the default behaviour would be opening a new buffer, users would have to manage it manually (as with my example code).
Implemented in #17.