Coder Social home page Coder Social logo

Comments (7)

cseickel avatar cseickel commented on May 21, 2024

Interesting. That is easy enough to add.

from neo-tree.nvim.

cseickel avatar cseickel commented on May 21, 2024

@levouh Question: If a directory is currently focused, should it collapse that currently focused directory, or it's parent?

In your example, what happens when you execute close_node in the pack directory in your second screenshot?

from neo-tree.nvim.

levouh avatar levouh commented on May 21, 2024

Apologies for the delay; it would close the focused node if it was open, otherwise close the parent of the current node.

from neo-tree.nvim.

levouh avatar levouh commented on May 21, 2024

@cseickel thanks for the addition!

Messing with what you pushed on main and is works great, however I sometimes run into this issue where closing a node changes the directory of the window and goes to the wrong parent:

close_node_dir_change.mp4

Note that the starting directory (and the one that contains the file) is ~/dots, then after closing a node within ~/dots my directory (both global and tab-local) is changed to ~/

I can open a new issue for this if you'd like, poking around with the code base as well so hopefully I'll be able to contribute at some point as well.

from neo-tree.nvim.

cseickel avatar cseickel commented on May 21, 2024

I just opened up a bug that I think is the real cause of this issue: #22
Basically, it is not using your custom mappings, and backspace is still running the default command of navigating up. Upper case C should give you the behavior you are looking for right now.

from neo-tree.nvim.

cseickel avatar cseickel commented on May 21, 2024

@levouh Actually, I already figured it out! change your mapping to lower case. My default config merging is case sensitive.

<bs> instead of <BS>

I'll fix that of course, but this will get you working immediately.

from neo-tree.nvim.

levouh avatar levouh commented on May 21, 2024

Awesome, I will give it a try. Thanks for the notes.

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.