xwmx / nb

CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
https://xwmx.github.io/nb
GNU Affero General Public License v3.0
6.7k stars 190 forks source link

Parallel Synchronisation #140

Open MirisWisdom opened 3 years ago

MirisWisdom commented 3 years ago

A rather boring and mundane request: would it be possible to carry out nb sync --all in parallel, rather than sequentially for each notebook? It'd speed up things a wee bit!

xwmx commented 3 years ago

@yumiris That makes sense and should work. I’ll plan to take another pass at the_sync() function and associated tests for this shortly.

MirisWisdom commented 3 years ago

For the time being, I've been using the following spiffy command which does quite a snazzy job:

parallel nb {}:sync ::: $(ls ~/.nb)