You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user explicitly passed a directory to use as root, the command should not attempt to change the cwd automatically.
I see what's wrong, you found a bug. If you answer n to that prompt it would work correctly. The problem here is that the check for whether a reveled file is in the current working directory does not check the directory you requested as the root, it only checks what is your current working directory. I'll open a new issue for this.
-- Copyright 2023 Google LLC.-- SPDX-License-Identifier: Apache-2.0functionopen_tree(args)
localmanager=require("neo-tree.sources.manager")
localreveal_file=manager.get_path_to_reveal()
ifargs.dirthen-- Hack to work around a bug in neo-tree where it changes path too late for revealstate=manager.get_state(args.source, nil, nil)
manager.navigate(state, args.dir, reveal_file, nil, false)
endrequire("neo-tree.command").execute({
dir=args.dir,
source=args.source,
reveal_file=reveal_file,
reveal_force_cwd=true,
})
end
When `reveal_file` and `dir` are specified, `dir` will now always be changed to,
unless `reveal_force_cwd` was set.
Closes#1500, #834
Related to #1501
Co-authored-by: pynappo <[email protected]>
If the user explicitly passed a directory to use as root, the command should not attempt to change the cwd automatically.
Originally posted by @cseickel in #610 (comment)
The text was updated successfully, but these errors were encountered: