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.
Outliner with drag/drop reordering
-
@ihf I can't do anything about the message of "already running", the shared script is not finished, perhaps due to writing in an iCloud file
-
@ihf If the problem can't be solved and you want to run full outline after the share, why don't you copy the text in your other app and paste it in Pythonista run?
-
@cvp I understand, I will just be patient. However, now I restarted Pythonista and the Outline script and any file I try to open is giving that error. After waiting a few minutes and doing it again, the error has gone away and I can open my outlines, including the one to which I used the share extension to append. Since the script isn't changing or presumably maintaining state, I can only assume that this is somehow related to using iCloud. I wouldn't use it but for the fact that I tend to use the iPad and iPhone with this script. Maybe just waiting is the answer for now.
-
@ihf said:
After selecting the file, might be nice to have it do the search within the file as if you had used the magnifying glass on the open file
Tomorrow
-
Version V00.92 - in appex mode, after saving the appended file, save its new name in outline.prm so when running outline, we will get the new file as last one - correction of bug "the box for the magnifying glass search is cutoff at the top by the menu bar (on iPad in Landscape mode)"
-
@cvp I did a Share of some text and got:
Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 5935, in <module> main() File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 5867, in main fil.write(t) UnicodeEncodeError: 'ascii' codec can't encode characters in position 2044-2045: ordinal not in range(128) Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 1698, in init2 self.button_files_action('Open') File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 2559, in button_files_action self.files_action(sender, act) File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 2633, in files_action self.pick_open_callback(None) File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 3050, in pick_open_callback prms = c_prms[1] IndexError: list index out of range
Also, should the share accept URLs or images?
-
@ihf Concerning list of files containing searched text, I need to have the list of outlines, and the only ways is a listdir but it only returns the locally downloaded files. Thus you can miss those who are not downloaded.
-
-
@cvp I presume there is no way for the script to download and undownloaded files when it starts?
-
@cvp the first time I did the share and got that error, I wa copying an equation and I figured that might be a problem. Then I tried again with text and got it again. Iβll try again..perhaps some state was preserved?
-
@ihf it could perhaps if their full names were all known
-
@ihf said:
equation and I figured that might be a problem.
Sure. Perhaps I could support it but needs to be studied
-
@cvp I just killed Pythonista and tried a share of text again and got the same error.
-
-
@ihf said:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 2044-2045: ordinal not in range(128)
Traceback (most recent call last):
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 1698, in init2
self.button_files_action('Open')
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 2559, in button_files_action
self.files_action(sender, act)
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 2633, in files_action
self.pick_open_callback(None)
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 3050, in pick_open_callback
prms = c_prms[1]
IndexError: list index out of rangeIt is not an error during the share, you did open the file in normal outline run?
-
@cvp There was another Todo outline file (different timestamp) with 0 length. I deleted it and tried again and the Share worked fine.
-
@cvp Here is the equation: πΛ2π2=8ππΊπ3
It does not render correctly in the forum. -
@cvp Tried again and got the "list index out of range". The 0 length file is created and that causes the error until it is deleted.
-
@cvp If I try to Share a URL as a URL, it gives an error about there being no text, however; I can Share the URL as text (by highlighting it rather than just long pressing) and then it pastes as an active URL. Being able to paste the URL (or an image ) would be handy.
-
@ihf About special characters, they are actually not supported: during the writing, the error occurs but the file is already created, thus length 0, thus error when reading it.
Your wishes become more and more complex
Todo:
- automatic text search in selected file after files search
- paste shared url
- support special characters
- paste a shared image but that needs to download the file and save it locally as other images