Hey folks, long-time user and big fan of Workflowy here!
I wrote a CLI using the latest API, in Go. Aside from the expected CRUD operations, it can generate usage reports, including a descendant count (i.e.,direct children plus descendants) to get a sense of where your data resides. It also tries to intelligently use the Get or ExportAll API depending on the use case, caches the content locally, and works with a backup file if you don’t want to get an API key.
This is wonderful. I’ve just started exploring it.
A recommendation: The pbcopy command isn’t a thing on Linux. You might add to your README.md something like “In Linux, use wl-copy (under Wayland) or xclip (under X11).”
A tip: When I tried uploading a report back into my Workflowy, I got a rate-limit error. To get the full report into WF and maintain formatting, I pasted the output of the report subcommand into StackEdit then immediately copied and pasted it from there into WF. A bit of extra work but I ended up with a tree from which I could navigate to the relevant parts of my WF for paring, edits, etc.
A question: would a find-and-replace command be possible?
Thank you for your feedback. Much appreciated. I updated the README to include Linux systems.
Yes, the rate-limiting on upload is an issue. I could perhaps warn if the number of nodes to upload is higher than 60 (I think the rate limit is 60/min), or add an option to limit the report to 60 nodes when uploading.
In my testing though, you should be able to copy and paste directly into WF, since it is markdown and WF will accept markdown. Are you sure you need the StackEdit step?
find-and-replace is very doable (assuming the same upload rate limits though), and something I have found myself needing as well. I’ll add to the feature request list. Shouldn’t be too difficult.
Oh interesting, I see the issue. WF is exporting formatting as HTML, and not as Markdown. It seems StackEdit is either stripping the HTML tags (or converting them back to Markdown), which WF them imports properly. I could probably do the same in the report generation, perhaps controlled with a flag.