We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6238235 commit f4b5a5bCopy full SHA for f4b5a5b
lua/neo-tree/sources/filesystem/commands.lua
@@ -53,10 +53,15 @@ end
53
---Navigate up one level.
54
M.navigate_up = function(state)
55
local parent_path, _ = utils.split_path(state.path)
56
+ local path_to_reveal = nil
57
+ local node = state.tree:get_node()
58
+ if node then
59
+ path_to_reveal = node:get_id()
60
+ end
61
if state.search_pattern then
62
fs.reset_search(false)
63
end
- fs.navigate(parent_path)
64
+ fs.navigate(parent_path, path_to_reveal)
65
66
67
M.open = function(state)
0 commit comments