Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bulk import from Dynalist to Outlinely
- These are notes to myself for how to migrate from Dynalist's backup file format to Outlinely. I do these as multifile search and replace operations in BBEdit using grep.
- The first two, along with the change of file name extension (I use name mangler 3 to do this) ensure that Outlinely can open the files.
- The third search takes colored labels from Dynalist and turns them to Outlinely psudo-markdown highlights.
- ### Find and replace 1
- ```
- <\?xml((.|\n)*?)body>
- ```
- with
- ```
- <?xml version="1.0" encoding="UTF-8" ?>
- <outlinely version="2665">
- <format>
- <plaintext>true</plaintext>
- </format>
- <content>
- ````
- ### Find and replace 2
- ```
- </body>\n</opml>
- ```
- with
- ```
- </content>
- </outlinely>
- ```
- ### Find and replace 3
- ```
- (<outline text=")(.*?)(" colorLabel="[1-9]")(/>|>)
- ```
- with
- ```
- \1::\2::" \4
- ```
- ### Find and replace filename extension
- ```
- .opml
- ```
- with
- ```
- .outline
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement