mcchrish / nnn.vim

File manager for vim/neovim powered by n³
BSD 2-Clause "Simplified" License
646 stars 25 forks source link

Support vim popup #46

Closed mcchrish closed 4 years ago

mcchrish commented 5 years ago

As the title says. Neovim and soon Vim will support floating window. Would be nice that the plugin can support it.

jarun commented 5 years ago

Awesome! Please let me know if we need to change anything in nnn.

mcchrish commented 5 years ago

Turns out nnn.vim can do this already. See example https://github.com/mcchrish/nnn.vim#layout

See also https://github.com/junegunn/fzf.vim/issues/664 since nnn.vim is pretty much implemented the same way.

jarun commented 5 years ago

Can you please add an example of how to use floating windiw with vim?

jarun commented 5 years ago

Also, is it possible to have a persistent window at the left with the "Or pass a dictionary with window size" example? When I open a file, the complete terminal is used by that file and the bar to the left isn't visible anymore.

mcchrish commented 5 years ago

Will probably leave this issue open to tackle on the vim feature. Not yet familiar as to how vim implements floating window.

is it possible to have a persistent window at the left

Seems to be similar to what others request where the nnn window stays open in the left. It's probably possible to do this by interacting with nnn via stdout.

jarun commented 4 years ago

@mcchrish any update on this? This would be a very useful feature for nnn.vim users.

jarun commented 4 years ago

Thank you so much for this @mcchrish!

jarun commented 4 years ago

BTW, is this configurable? Can I still choose to use the floating window or the side pane?

mcchrish commented 4 years ago

Yes it's configurable. You can change the size, offset, border style and border color of the window.

let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.6, 'highlight': 'Debug' } }

All the other types of layout still works including side pane.

jarun commented 4 years ago

@mcchrish Can we close this?