-
Notifications
You must be signed in to change notification settings - Fork 282
Adds: Import OPML #192
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
Adds: Import OPML #192
Conversation
|
Hi Cam, Good works, this looks great. I'm not on my computer so I've only browsed the code from my phone, but I'll look more closely later on. Questions :
Once more, thanks for contributing to manuskript! |
That's what I did first, before I started importing cards into sub folders (rather than at the root), then it seemed best to have the import action closer to the folder actions
Not yet :-)
Yes :-(
Yeah...so oops, the title trimming was an experiment that I neglected to remove. The issue is that long titles end up with a tab (in the editor) that's the full length of the window. They're also hard to edit, which is why I duplicated them on import into the body. I have a few of them. Without creating a summary, the cards, well, don't have a summary ;-) It's common practice to take a snippet from somewhere for a summary if there isn't one. Perhaps making the title into the summary is a better idea. I am, of course, open to better ideas than what I've done ;-) Oh, and here's some different illustrative screenshots |
|
Thanks for the clarifications :)
I was thinking of a dialog that allow you to chose the parent item, as in the compile dialog:
That's a bug ! I reported it here #194
I think this all could be options on import. But we could also decide that when an index card has text but no summary, it displays a snippet of the text as summary. That way there wouldn't be no duplicate in the project file, and no problem if exporting/importing. Openned an issue here: #195.
This is strange. I use lxml to save and restore manuskript's projects, and new lines are kept. 😕 Also, do you have an OPML files that you could post here for testing purposes? |
|
I can work on an import dialog if you like. Just give the command ;-) I believe the "significant whitespace removal" in lxml and others is due to the fact that the text is contained in an attribute rather than a child element. That's what I've seen elsewhere. Attached is a snapshot of my current in-progress manuscript. Feel free to use it for testing purposes. You'll note that I've extended OPML (the same way it was extended with _note) for a better interchange experience with my own apps. It includes ignorable attributes like _summary, _type and _done. Perhaps we should propose such a more robust OPML format to the world ;-) |
|
Thank you very much, also for providing End Plan 2 :) So I merged your PR to a Thanks again, great job ! |
|
My pleasure |





This adds support for importing cards from an OPML file into the current folder. Export will be next, but I thought import may be useful immediately.
A few things:
Tested with a largeish OPML manuscript import