camspiers / snap

A fast finder system for neovim.
The Unlicense
483 stars 16 forks source link

close/replace [No Name] buffer on selecting the file in snap #75

Open zenobht opened 3 years ago

zenobht commented 3 years ago

Not a bug as such.

Steps to reproduce

  1. open nvim without arguments. It creates an empty [No Name] buffer.
  2. Select a file in snap, it should replace the [No Name] buffer.
  3. But snap creates a new buffer.
  4. We can see 2 buffers in the tabline. One of which is [No Name].
  5. This [No Name] buffer is not listed in snap buffers call.

In telescope.nvim/fzf.vim it would close/replace the [No Name] buffer. If you open a file using :e file.txt, this will also replace the [No Name] buffer.

gegoune commented 3 years ago

Yes, this, pretty please. :)