The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniOutliner 3 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=9)
-   -   Script: Pasting from FoldingText Markdown to oo3 nesting and columns (http://forums.omnigroup.com/showthread.php?t=27209)

RobTrew 2012-11-27 02:56 PM

Script: Pasting from FoldingText Markdown to oo3 nesting and columns
 
A lot of my workflow is in FoldingText Markdown now (hash-headers and/or tab indents, with inline [I]@key(value)[/I] tags, child-line [I]key : value[/I] properties or just plain [I]@key[/I] tags for booleans.

(Either authored in FoldingText, or on my favourite machine – an inexpensive AA powered ultra-simple portable with a good keyboard [url]http://www.neo-direct.com[/url]
Tip – remove all software from the Neo except the plain text editor, quickly upload all the text files to OS X with the free NeoManager utility via USB).

I do, however, like to use OmniOutliner's excellent column display for some things, particularly to generate column-based PDF documents.

Here is a rough working draft of a [URL="https://github.com/RobTrew/tree-tools/blob/master/FoldingText%20scripts/Import%20Export/PasteMDinOmniOutliner-009.applescript"]script[/URL] which I am using to paste FT-style Markdown plain text into OO3, with the inline [B]@key(value)[/B] tag pairs, and the child element [B]key : value[/B] property pairs going to values in key-named columns (either pre-existing or created, if necessary, by the pasting script).

In addition to moving tag values to columns it also normalises the mixed nesting style of MD (hash headers and/or tab indents) into regular OO3 nesting.

(⌘⌥V for OmniOutliner 3 in my KeyBoard Maestro setup)

[COLOR="White"]--[/COLOR]

RobTrew 2012-11-28 03:03 AM

Updated (ver 0.04 above) to also translate MarkDown **bold** and *italic* emphases in row topics into OO3 [B]bold[/B] and [I]italic[/I] formats.

and ver (0.06 above) to translate MarkDown ordered list numbers into OO3 numbered heading styles.

ver 0.07 handles [B]key : value[/B] property pairs in child lines as well as in-line [B]@key(value)[/B] tag pairs - both are now transferred to column values for the appropriate row.

[COLOR="White"]--[/COLOR]

RobTrew 2012-11-28 08:48 AM

2 Attachment(s)
Before and after:

(The plain text 'property lines' automatically become column entries in OO3)

[LIST=1][*]Plain text in FoldingText, and
[IMG]http://forums.omnigroup.com/attachment.php?attachmentid=2658&stc=1&d=1354124709[/IMG]
[*]pasted (with script) into OO3.
[IMG]http://forums.omnigroup.com/attachment.php?attachmentid=2659&stc=1&d=1354124709[/IMG][/LIST]

RobTrew 2012-12-01 11:10 AM

PS on the matter of originating outlines and column entries in plain text (Markdown) format, for subsequent work in OmniOutliner, I came across this report of a good plain text authoring setup:

[iPad with Neo as keyboard]([url]http://vimeo.com/11754480[/url])

It turns out that the efficiency of the system can be improved still further by simply removing and discarding the iPad - this additional step has become even more important since a change in iPad system software rendered it inoperable for this purpose. Fortunately, the Neo itself continues to work very well, and, unlike the iPad, has a a decent keyboard, a standard built-in USB connector, and the ability to transfer text files directly and simply to the OS X machine.

RobTrew 2012-12-05 07:39 AM

[URL="https://github.com/RobTrew/tree-tools/blob/master/FoldingText%20scripts/Import%20Export/PasteMDinOmniOutliner-009.applescript"]Updated[/URL] to improve parsing of inline @key(value) tags (for their conversion to oo3 column entries)

[COLOR="White"]--[/COLOR]

macula 2014-05-11 10:34 AM

Very good stuff, thanks Rob.

Would you be able to offer us a free-form description of your workflow(s) involving FoldingText? For some time I've been trying to streamline my toolbox, move away from large software packages, and rely on plaintext as possible. Judging from your GitHub repos and your tweets, I suspect you're exploring FT-based workflows for todo list/GTD management, is that right?

Many thanks indeed.


All times are GMT -8. The time now is 03:12 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.