Giter Site home page Giter Site logo

Comments (5)

cseickel avatar cseickel commented on June 3, 2024

This is not a neo-tree responsibility at all, it is a built-in behavior of neovim to have an an empty buffer when no other buffer is open. If you wanted neovim to close after deleting the last buffer, you should use a "quit" command instead of a delete buffer command.

from neo-tree.nvim.

Rid1-fz-06 avatar Rid1-fz-06 commented on June 3, 2024

@cseickel I didn't mean that. I don't want to close neovim. Yes, neovim will always create an empty buffer when there is no buffer opened. But when I open any file from neo-tree (when there is no buffer opened but the empty Untitled buffer), neo-tree should have closed that empty Untitled buffer (not neovim), and open the file I tried to open. In other words, that Untitled buffer should be replaced by the file's buffer I was trying to open.

from neo-tree.nvim.

Rid1-fz-06 avatar Rid1-fz-06 commented on June 3, 2024

@cseickel this doesn't happen if I open any file first time after opening neovim. It only happens when I close that file, and try to re-open that file.

from neo-tree.nvim.

cseickel avatar cseickel commented on June 3, 2024

neo-tree should have closed that empty Untitled buffer (not neovim), and open the file I tried to open. In other words, that Untitled buffer should be replaced by the file's buffer I was trying to open.

Sorry, but I don't agree with that statement at all. Neotree does not and will not close any buffers when you open a new one. It just issues the :edit <filename> command.

from neo-tree.nvim.

Rid1-fz-06 avatar Rid1-fz-06 commented on June 3, 2024

@cseickel I found that this issue is still there if I use the :edit command. It is not a bug of neo-tree. Sorry for wasting you time sir. Thanks

from neo-tree.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.