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

On load show which files were not loaded #1274

Closed
wants to merge 1 commit into from

Conversation

rmonico
Copy link

@rmonico rmonico commented Oct 8, 2021

Just a small patch to show which files couldn't be read.

Copy link
Member

@PhilRunninger PhilRunninger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I have just a couple of changes for you, though.

  1. Combine the two nerdtree#echoWarning() statements into one, as described.
  2. Add similar logic to s:TreeDirNode.refresh()
  3. Update CHANGELOG.md with a reference to your PR. Use version number 6.10.17.

Thanks!

@@ -438,6 +440,7 @@ function! s:TreeDirNode._initChildren(silent)

if invalidFilesFound
call nerdtree#echoWarning(invalidFilesFound . ' file(s) could not be loaded into the NERD tree')
call nerdtree#echoWarning('Invalid files: ' . join(invalidFiles, ', '))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combine these two nerdtree#echoWarning calls into one. Something like: 3 Invalid Files: foo.txt, bar.txt, snafu.txt

This was referenced Aug 28, 2023
@alerque alerque closed this in #1365 Sep 4, 2023
@alerque
Copy link
Member

alerque commented Sep 4, 2023

Thanks for this. Since we didn't hear back on the minor feedback above another contributor jumped in with that little fix. The commit from this PR was included in the later one, so this is merged and thanks for the contribution!

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.

None yet

3 participants