I would probably start by:
- copy-pasting the code to an editor which makes spaces and tabs visible,
- looking quickly for tab/space mixes, and then
- standardising consistently on one or the other.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
I would probably start by:
This may well be a known or fixed issue – Editorial crashes/exits on out-of-range set_selection()
To reproduce:
create an empty file
run a python script workflow action like:
#coding: utf-8
import editor
editor.set_selection(4,4) # out of range - buffer empty
Am I right in thinking that a Select from List interaction can only be achieved as a workflow action ?
(i.e. that I haven't failed to notice an equivalent function in Editorial's Python libraries ?)
thanks,
Rob
Thanks – that's helpful.
The problem is having to sandwich the 'Select from List' between two different Python modules when both populating the list from code and then using its output in further code – having to pass the state of various variables between two modules.
I am doing this mainly with a kind of JSON ping-pong in:
http://www.editorial-workflows.com/workflow/5270117608849408/OZjQ2s3oIyg
which does work, but I wanted to check that I wasn't getting into more complexity than is really needed :-)
I have personally switched off Settings → Check Spellings in Editorial,
but I agree that it would be very helpful for 1.1 to recognise the iOS → Settings → General → Language
distinction between British English and English
(It is well known that the Americans somehow contrived to skip the 19c – the 1840s in particular – and that while this has left them with pleasantly old-school manners, it has also left them with obviously 18c banknotes and spellings ... )
While editing a workflow, button at top right (next to 'Done') > Copy
Creating a new workflow will then offer a "workflow in clipboard" message,
and the option to base the new one on the copy
There's no hurry – this is already an unexpected feast.
( and the phrase 'in this update' sounds like welcome rain :-)
It looks really excellent.
( and my attention is caught by what might just be a disclosure triangle in the upper left corner ... )
Fantastic work ... and it has already transformed the value of the platform
Not sure of the context, and this workflow is probably overkill, but it throws up a menu allowing you to adjust the number of levels in an outline which have hash headers.
See the section on Editorial workflows for the TaskPaper syntax here:
http://www.macdrifter.com/2014/02/the-taskpaper-rd-notebook.html
Something analogous for Mac FoldingText, which could be rewritten in Python for Editorial at
https://github.com/RobTrew/tree-tools/blob/master/FoldingText%20scripts/Import%20Export/TaskPaper-FT-Toggle.applescript
There are, of course, some options for how you do it.
Multiple hash headers ⇄ nested TP projects ? for example.
Should be fine with .jpg
e.g. (if the URL is in the clipboard)
from photos import save_image
from Image import open as open_image
from cStringIO import StringIO as string_as_file
from urllib import urlopen
from clipboard import get as get_clip
save_image(
open_image(
string_as_file(
urlopen(
get_clip()
).read()
)
)
)
print 'Saved'
I don't know why Pandoc makes all of the headings in docx files blue
It doesn't really – Pandoc simply delegates styling to MS Word 'Themes', and what you are finding is that the default theme on your system has blue headings.
(Switching theme in Word will switch all colors and formatting).
PS what this means in practice is repeatedly swapping back and forth between Pythonista and other apps to switch the input language every time you need to type (localising or other) UTF-8 strings from non-Roman character sets amongst the reserved (roman) tokens of the Python lexicon.
# coding: utf-8
print '三十六计不如一跑\n'
print 'Of the 36 classical military stratagems,\n\
none can compare with the simple expedient of running away ...'
A keyboard shortcut for toggling editor and console is an excellent idea.
This particular assignment ( ⌘SPACE ) happens, however, to override (perhaps inadvertently) the standard iOS and OSX convention for cycling between input languages.
I can imagine that those of us who regularly switch input languages are probably in a minority, but I had been aware of a puzzlement that ⌘SPACE was occasionally failing on my iPad, and specifically while I was using Pythonista, but for some reason I had foolishly failed to guess that the app itself might be overriding the standard system assignment :-)
Perhaps an option to retain the standard use of ⌘SPACE, and choose something else for console toggling ?
Thanks for thinking about this !
Rob
The previewer requires well-formed Markdown, whereas the formatting display of the editor is a little more tolerant.
My guess is that you may be inadvertently omitting a space between the hashes and the text, or that you have not deleted all of the spaces before the hashes.
Probably worth double-checking the details of Markdown syntax at:
It would be very useful to be able to preview MMD tables (including spanning fields) in Editorial, in the way that is supported, for example in iOS ByWord, which provides MultiMarkdown 3 previews.
Sample tables and contrasting previews (Editorial + iOS ByWord) below:
Editorial table preview http://www.flickr.com/photos/43145703@N00/11146616433/
ByWord table preview http://www.flickr.com/photos/43145703@N00/11146442055/
### Previewing spanning MMD tables
|alpha|beta||
|---|---|---|
|1|2|3|
|4|5|6|
|main banner |||||||||
|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|
|1st section ||| 2nd section ||| 3rd section|||
|alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|
|main banner |||||||||
|1st section ||| 2nd section ||| 3rd section|||
|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|
|alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|
|2|3|5|7|11|13|17|19|23|
|29|31|37|41|43|47|51|53|57|