Skip to content

Instantly share code, notes, and snippets.

@ninrod
Created July 7, 2016 20:30
Show Gist options
  • Save ninrod/bb0fa1e9c2c0a9d022baae090c28ba94 to your computer and use it in GitHub Desktop.
Save ninrod/bb0fa1e9c2c0a9d022baae090c28ba94 to your computer and use it in GitHub Desktop.
Convert from Workflowy export format to Org-Mode
(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))))
@mrcnski
Copy link

mrcnski commented Sep 14, 2017

I solved this problem using a more sane language: https://github.com/m-cat/workflowy2org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment