Advertisement
Guest User

dynalist to outlinely

a guest
Sep 26th, 2018
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. # Bulk import from Dynalist to Outlinely
  2.  
  3. 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.
  4.  
  5. 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.
  6.  
  7. The third search takes colored labels from Dynalist and turns them to Outlinely psudo-markdown highlights.
  8.  
  9. ### Find and replace 1
  10. ```
  11. <\?xml((.|\n)*?)body>
  12. ```
  13. with
  14. ```
  15. <?xml version="1.0" encoding="UTF-8" ?>
  16. <outlinely version="2665">
  17. <format>
  18. <plaintext>true</plaintext>
  19. </format>
  20. <content>
  21. ````
  22.  
  23. ### Find and replace 2
  24.  
  25. ```
  26. </body>\n</opml>
  27. ```
  28. with
  29.  
  30. ```
  31. </content>
  32. </outlinely>
  33. ```
  34.  
  35. ### Find and replace 3
  36. ```
  37. (<outline text=")(.*?)(" colorLabel="[1-9]")(/>|>)
  38. ```
  39. with
  40. ```
  41. \1::\2::" \4
  42. ```
  43.  
  44. ### Find and replace filename extension
  45. ```
  46. .opml
  47. ```
  48. with
  49. ```
  50. .outline
  51. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement