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

BUGFIX: Allow ":NERDTreeFind" to discover hidden files #786

Merged
merged 2 commits into from
Jan 5, 2018

Conversation

lifecrisis
Copy link
Contributor

Issue #189 originally pointed out a bug in which :NERDTreeFind could not always properly reveal a hidden file. This PR adds a function that makes the behavior of findAndRevealPath() consistent in this respect.

@lifecrisis
Copy link
Contributor Author

@PhilRunninger, I think this is the last NERDTree code I'll write before the new year... it's a pretty good one to end on!

@lifecrisis lifecrisis changed the title Allow :NERDTreeFind to discover hidden files BUGFIX: Allow ":NERDTreeFind" to discover hidden files Dec 22, 2017
@lifecrisis
Copy link
Contributor Author

I'm going to go ahead and merge because I really want the functionality... this one has been bothering me for a while. I guess it's because I edit a lot of dot-files!

I've reviewed it several times so it should be good.

@lifecrisis lifecrisis merged commit 142e04c into preservim:master Jan 5, 2018
@lifecrisis lifecrisis deleted the find-hidden branch January 5, 2018 13:10
lifecrisis added a commit that referenced this pull request Jan 5, 2018
Here, a more accurate method of determining whether or not to show
hidden files is used.  A new method, "isHiddenUnder()" is defined
for "Path" objects.  This method is then used to set the flag for
hidden files in the ":NERDTreeFind" command.  Note that this
function is likely to be useful elsewhere.

Fixes #189.
@PhilRunninger
Copy link
Member

D'oh! I forgot to review this one. I just ran a quick check of it, and it works properly on Mac.

@lifecrisis
Copy link
Contributor Author

Thanks, @PhilRunninger!!!

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

Successfully merging this pull request may close these issues.

2 participants