Comments (7)
Interesting. That is easy enough to add.
from neo-tree.nvim.
@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.
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.
@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.
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.
@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.
Awesome, I will give it a try. Thanks for the notes.
from neo-tree.nvim.
Related Issues (20)
- BUG: LazyVim delete folder
- BUG: can execute neo-tree commands HOT 3
- BUG: close_all() function in event handler does not work when opening in new tab HOT 1
- FEATURE: adding hotkey to switch between open buffers HOT 1
- FEATURE: Relative line number HOT 2
- BUG: Can not open file insde App router with parentheses in its name. (Windows only) HOT 15
- BUG: Yank a file and paste bug
- FEATURE: Allow overriding default window selection logic when opening files HOT 1
- FEATURE: [BUG?] Remove expander when empty folder is detected
- BUG: fuzzy find does not take always_show into account HOT 4
- BUG: Filter doesn't work
- BUG: Custom commands breaks `?`
- BUG: can't navigate up when folder removed from under neo-tree
- BUG: Disable foldcolumn of statuscol
- Neo-tree can't correctly get diagnostic sings for Neovim 0.10.0-dev-3097+g064f3e42e-dirty
- BUG: global table_is_empty
- BUG: reveal does not work for targets under hidden folders
- FEATURE: Keybind to unzip ZIP, RAR, TAR, GZ, 7Z HOT 1
- BUG: If deleting a file that you are working on and proceed to delete additional ones, you can delete your entire working directory.
- FEATURE: support for branches in git status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo-tree.nvim.