Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max depth for recursive open #1287

Open
notmatthancock opened this issue Dec 6, 2021 · 0 comments
Open

Max depth for recursive open #1287

notmatthancock opened this issue Dec 6, 2021 · 0 comments

Comments

@notmatthancock
Copy link

Description

I like having the file browser expanded by default, so I have the following line in my init:

autocmd User NERDTreeInit normal O

However, when I edit a file where there's a great amount of depth to the hierarchy (e.g., a file in my home directory), the editor hangs for a long period of time while it does the recursive open unless I CTRL+C to stop it.

I'd like to be able to specify the level of depth of recursive expansion so that I can still get a somewhat open view of the files by default, but without bombing the editor in cases where the hierarchy is deep.

Perhaps the interface for controlling the depth could be a variable similar to NERDTreeIgnore, e.g., by adding to one's init:

let NERDTreeMaxRecursiveOpen = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant