Skip to content

Terminal output of zimport #41

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

Open
icornelius opened this issue May 24, 2024 · 1 comment
Open

Terminal output of zimport #41

icornelius opened this issue May 24, 2024 · 1 comment

Comments

@icornelius
Copy link
Collaborator

zimport reports progress ("Processing FILENAME...") and errors (unexpected keys, invalid YAML). This behavior is appropriate for small collections of zetteln. When importing large collections (hundreds of files), the progress report drowns out the error messages.

A possible solution is to count the files in the directory tree targeted for import, then reduce the verbosity of zimport above a certain threshold (100 files, perhaps). Some sort of progress reporting remains desirable, as importing a collection of 1000+ files can take 15 seconds, depending on system. Perhaps we could set a counter and emit progress at milestones (every 100th file, e.g.). Or write errors to a log file.

icornelius added a commit to icornelius/zettelgeist that referenced this issue Jun 23, 2024
@icornelius
Copy link
Collaborator Author

859a60f modifies zimport to print a count of errors. Users will need to scroll through the output for details.

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

No branches or pull requests

1 participant