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
{{ message }}
Repository navigation
Remove “/..” from root directory if “restrict_above_cwd” is enabled
#1735
Currently, nvim-tree’s default behavior is to append /.. to the root directory. This makes sense because the user can't browse one directory up. However, if actions.change_dir.restrict_above_cwd is enabled, this is no longer possible.
Therefore, I'd recommend appending /.. in local function format_root_name if, and only if, actions.change_dir.restrict_above_cwd is not enabled. IMO, this would result in a better UX.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Currently, nvim-tree’s default behavior is to append
/..to the root directory. This makes sense because the user can't browse one directory up. However, ifactions.change_dir.restrict_above_cwdis enabled, this is no longer possible.Therefore, I'd recommend appending
/..inlocal function format_root_nameif, and only if,actions.change_dir.restrict_above_cwdis not enabled. IMO, this would result in a better UX.All reactions