neo-tree.nvim icon indicating copy to clipboard operation
neo-tree.nvim copied to clipboard

Preview in float changes position of floating neo-tree

Open cseickel opened this issue 3 years ago • 4 comments
trafficstars

Love this feature. Just wanted to raise a bug where the calling window (e.g. side = right) doesn't get restored on revert_preview (become side = left).

Originally posted by @axieax in https://github.com/nvim-neo-tree/neo-tree.nvim/issues/502#issuecomment-1244785594

cseickel avatar Sep 13 '22 12:09 cseickel

@axieax You are talking about when Neo-tree is opened as a float window, right?

cseickel avatar Sep 13 '22 12:09 cseickel

@axieax You are talking about when Neo-tree is opened as a float window, right?

yep!

axieax avatar Sep 13 '22 18:09 axieax

Seems like opening the preview doesn't respect the position either. Would be nice if this layout takes the Neo-tree position into account, and fills the remaining space with the preview.

Example config: https://github.com/axieax/dotconfig/blob/4870bba67f90f068f9e01dae547c49d1c0cbadb2/nvim/lua/axie/plugins/neotree.lua

axieax avatar Oct 12 '22 23:10 axieax

Came to report this as well, glad this is already reported.

Here's a video of the issue. Notice also that the explorer doesn't goes back to its original position when the preview is closed.

https://github.com/nvim-neo-tree/neo-tree.nvim/assets/16341644/24c9dd08-db7a-4911-9a6e-be88237dc699

rtalexk avatar Apr 10 '24 01:04 rtalexk