simnalamburt / vim-mundo

:christmas_tree: Vim undo tree visualizer
https://simnalamburt.github.io/vim-mundo
GNU General Public License v2.0
792 stars 28 forks source link

Use floating-window or popup to display diff #84

Open voldikss opened 5 years ago

voldikss commented 5 years ago

Hi, would you consider to add the floating-window/popup support?

dsummersl commented 5 years ago

I personally am not interesting in implementing 'neovim only' features - but if someone else is interested by all means!

liaden commented 3 years ago

I was wanting to just have the history and the diff put together in a floating window with the history on the left, diff on the right since that allows me to see the changes pretty easily when I already have a lot of splits open.

Would it be worthwhile for MundoShow to take a buffer number as an argument? Users could easily create a small function then that grabs the current buffer number, does a tabnew/nvim_open_win, and then call MundoShow with the buffer number. I think that provides a fair bit of flexibility. The downside with this approach is creating the toggle wrapper functionality that tracks state.