Closed
Description
Experimental Features
nvim-tree has experimental features, previews of new functionality that will become default or optional functionality.
Please try these out and reply with your experiences. If you encounter a problem, please raise a bug report and indicate the experimental feature you are using.
#2127 Open Buffers With Relative Path (#2805)
Buffers opened by nvim-tree will use with relative paths instead of absolute.
Execute :ls
to see the paths of all open buffers.
:help nvim-tree.experimental.actions.open_file.relative_path
Enable:
experimental = {
actions = {
open_file = {
relative_path = true,
},
},
},
2024 07 07 introduced, false by default
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix issue with the description of epheien in nvim-tree#2819
epheien commentedon Jul 7, 2024
I have been using this feature here for a while without any issues, but my usage scenario is relatively simple.
As long as the absolute path of the file is converted to a relative path before specifying the: edit (etc.) command, it should theoretically be sufficiently secure. Based on this, I rechecked the code and found that there is an area that needs to be fixed.
In
local function open_in_new_window(filename, mode)
function, there is a problem with window jumping after converting to a relative path.Can perform simple steps to reproduce this problem:
This will open an incorrect path.
I just make a PR to fix it.
fix(#2819): experimental.actions.open_file.relative_path issue follow…
alex-courtis commentedon Jul 7, 2024
Thanks @epheien
I did expect several issues like these. We will fix them.
paulodiovani commentedon Jul 26, 2024
I was looking for this. Thanks.
I'll be using from now on and report if I find any issue.
alex-courtis commentedon Aug 10, 2024
This is looking good... over a month and no issues.
Are you happy to finish the experiment and make this the one and only way to open files @epheien ?
wrldspawn commentedon Sep 23, 2024
This feature doesn't work on Windows at all. Other things like Telescope can open files relatively just fine on Windows, but not nvim-tree with this feature enabled.
alex-courtis commentedon Sep 27, 2024
Many thanks for testing this one @wrldspawn , we don't have any means of testing windows.
What happens when this feature is enabled? Is there a stack?
I'd be grateful if you could raise a bug report so that I can attempt a fix for you to test.
17 remaining items