Created
July 7, 2016 20:30
-
-
Save ninrod/bb0fa1e9c2c0a9d022baae090c28ba94 to your computer and use it in GitHub Desktop.
Convert from Workflowy export format to Org-Mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun workflowy-to-org-mode () | |
(interactive) | |
(let (count) | |
(while (not (eobp)) | |
(setq count 0) | |
(while (looking-at " ") | |
(setq count (1+ count)) | |
(forward-char 1)) | |
(forward-char 1) | |
(delete-region (point-at-bol) (point)) | |
(insert (make-string (1+ count) ?*)) | |
(forward-line 1)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved this problem using a more sane language: https://github.com/m-cat/workflowy2org