The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniOutliner > OmniOutliner for iPad
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Send to app as Plain Text (tabs vs spaces) Thread Tools Search this Thread Display Modes
I find that tab-indented text outlines work better than multiple-space indents for interchange with other apps (through file or clipboard).

Whereas the OS X OmniOutliner offers tab-indented text export, the iPad app's Send to app as Plain Text only offers multiple spaces, which for example, are not recognised as logical indents when pasted into something like Cotton Notes, and are interpreted as code paragraphs by Markdown-idiom editors like FoldingText.

A tab-indented text export would would allow iOs OO to get much more use than it currently does on my iPad.

(It already does a very good job of reading tab-indented text the asymmetry seems a pity )


Last edited by RobTrew; 2012-11-01 at 05:06 AM..
I guess one could write a line or two of clipboard-transforming Python in Pythonista in the meanwhile, but it seems a little circuitous ...
FWIW the iPad clipboard can indeed be transformed with something like this (run in Pythonista).

import clipboard, re

str_clip = clipboard.get()

# Translate each sequence of 4 spaces to a tab
str_clip = re.sub('    ', '\t', str_clip)
# Unbreak wrap-broken lines (look for residual spaces after tab)
str_clip = re.sub('[\r\n]+\t* ',' ', str_clip)
# Add Markdown bullets between tab and text ? iOS OmniOutliner adds them anyway ...
# str_clip = re.sub(r'^(\s*)(\S)', r'\1- \2', str_clip, flags=re.MULTILINE)
# Prune duplicate space
str_clip = re.sub(r' {2,}', r' ', str_clip)

Thanks Rob - very useful - informed me a out pythonista too, which looks quite useful.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pasting in Plain Text srd OmniOutliner 3 for Mac 4 2014-01-27 01:36 PM
Paste Plain Text? robboyd OmniOutliner 3 for Mac 1 2010-09-16 02:35 PM
Fixed width plain text export spaces columns too far apart sully OmniOutliner 3 for Mac 1 2010-09-09 10:23 PM
export plain text (with tabs) numbering bug cgg123 OmniOutliner 3 for Mac 1 2007-09-06 02:16 PM
plain text export mikejt OmniOutliner 3 for Mac 2 2007-07-16 12:50 PM

All times are GMT -8. The time now is 09:54 AM.

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