kevinhwang91 / rnvimr

Make Ranger running in a floating window to communicate with Neovim via RPC
BSD 3-Clause "New" or "Revised" License
804 stars 17 forks source link

Using rnvimr as a netrw replacement closes existing window splits/buffers #108

Closed twidxuga closed 2 years ago

twidxuga commented 2 years ago

Ranger

Python

Pynvim

Ueberzug (optional)

RPC

To Reproduce using nvim -u mini.vim

Example: cat mini.vim

call plug#begin('~/.config/nvim/plugged')
Plug 'kevinhwang91/rnvimr'
call plug#end()

let g:rnvimr_enable_ex = 1

Steps to reproduce the behavior:

  1. In neovim, open any file (e.g. :e test.json)
  2. Split screen (split or vsplit) and open another file (e.g. :e test.html). Stay on this second split.
  3. Now use rnvimr has a netrw replacement to edit the current folder: :e . and press enter.
  4. Watch has the new split closes as soon as ranger appears.

Expected behavior Ranger window appears and nothing happens to the splits or buffers that were previously open until a new file is selected within ranger. Opening the file in ranger should replace the buffer in the newly open split. No splits should be closed when ranger appears.

Thanks in advance. Love this plugin!

kevinhwang91 commented 2 years ago

Fixed.

twidxuga commented 2 years ago

Confirmed fixed. Many thanks!

twidxuga commented 2 years ago

Found a similar, possibly related issue:

  1. Edit a file
  2. open a new empty tab :tabnew
  3. Edit the current folder :e .
  4. The current (empty) tab is closed as soon as ranger pops up.
kevinhwang91 commented 2 years ago

Please try the updated code.

twidxuga commented 2 years ago

Confirmed fixed. Thanks again!