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: Copy selected rows as tab-indented (Markdown) plain text outlines (http://forums.omnigroup.com/showthread.php?t=26726)

RobTrew 2012-11-01 09:11 AM

Script: Copy selected rows as tab-indented (Markdown) plain text outlines
 
Copies the text of selected rows (and their children) in a format suitable for pasting into a plain text outliner and/or Markdown editor.
[LIST=1][*]Copies outlines with tab indents rather than the OO3 clipboard's default multiples of four spaces.[*]Leaves the lines unbroken by word-wrapping (the default Edit > Copy breaks the lines)[/LIST]

(I have assigned the script to a keystroke using Keyboard Maestro)

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

RobTrew 2012-11-29 02:52 AM

2 Attachment(s)
An extended version of the Copy As Markdown script for OO3.
[LIST=1][*]Any column values are copied as FoldingText-style inline [B]@key(value)[/B] pairs or child line [B]key : value[/B] property pairs. (The latter are used for longer values).[*]MD bold/italic/combined emphases are captured[*]Selection logic is improved selecting a single OO3 node will still copy that node and its whole sub-tree, but extended selections will no longer cause duplicated copying.[/LIST]

RobTrew 2012-11-29 03:19 AM

PS

This Copy As script can be converted to a Save As script by flipping the value of two properties:

[CODE]-- PLACE THE FOLDINGTEXT VERSION IN THE CLIPBOARD ?
property pblnSetClipboard : false

-- SAVE TO A FILE ?
property pblnWriteFile : true[/CODE]


All times are GMT -8. The time now is 04:41 AM.

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