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
-
@cvp Just to be clear ...If i open outline now and do text insertion on last item, hit return, a new item is created that is hidden by the keyboard. If I scroll the outline I can see it and if I then bring up the pop-up menu, it comes up but in the middle of the outline (i.e., not at the item that is being edited). If instead, I hide the keyboard and then select the popup menu, it points to the correct item.
-
@ihf said:
If i open outline now and do text insertion on last item, hit return, a new item is created that is hidden by the keyboard. If I scroll the outline I can see it and if I then bring up the pop-up menu, it comes up but in the middle of the outline (i.e., not at the item that is being edited). If instead, I hide the keyboard and then select the popup menu, it points to the correct item.
Understood, thanks for the clarification, don't know yet how to solve it.
-
@ihf said:
If i open outline now and do text insertion on last item, hit return, a new item is created that is hidden by the keyboard
I can't reproduce this problem, could you post a print screen specifying where you tap enter
-
@cvp does this help: https://vimeo.com/580319736
-
@ihf could you also post the print screen after you have pressed enter because, for me, pressing enter shows the next line
-
-
@ihf thanks but weird because for me the entire new line is visible.
One bug more not easy to solve because not reproductible on my iPad. 😢 -
-
@ihf State of the art
I'm a little tired to debug some annoying bugs, then, here a quick summary of where I am in this program.
-
bugs
1.1 your description
"If I scroll the outline I can see it and if I then bring up the pop-up menu,
it comes up but in the middle of the outline (i.e., not at the item that is being edited).
If instead, I hide the keyboard and then select the popup menu, it points to the correct item."not vital, workaround: do not ask popup while keyboard is active
1.2 your description
"If i open outline now and do text insertion on last item, hit return,
a new item is created that is hidden by the keyboard."not vital, workaround: manual scroll nb: on my device, I only get it for landscape on small lines number
-
new functionalities
2.1 2nd argument of program = directory of 1st argument file to open
thinking in progress
2.2 multiple undo
thinking in progress **question** : average size of your files?
2.3 open iCloud file even if not yet downloaded
thinking in progress workaround: use Files app for first downloading file
2.4 support images
**questions** : This program could support images, that's sure,
but images could not be integrated in the text file, so you would not be able to print the text
with images by normal printing tools.
So, I would need to store them in the .content file, and the printing of text with its integrated images could only be done by this program...
And that's a big modification.
Assume we support images, we could start the process by an additional option in the popup menu. This option could allow to pick an image file. But do you want images as separate outline row
or do you want an image integrated in the text of a row?
How do you want to specifiy the size of the image in the text?2.5 extension in 1st argument already supported **question** : when the program shows all the files, other extensions are grayed, do you want to hide them?
-
-
@cvp Something has happened on my iPhone that I have never seen before. If I start Pythonista, I cannot even see the outline.py script. That is if I manage to get to the list of scripts (don't even get that far most of the time), it looks like it is loading the script and never finishes. I have force restarted, Pythonista, the iPhone many times and I cannot get it to work. I'm afraid my testing (and for that matter any use of Pythonista) will be on hold until I can figure this out. I could delete the app altogether but then I will lose all data. I am at a loss as to what to do.
P.S. While writing this the following appeared on my phone: https://i.imgur.com/zFD9Y79 What the heck?
-
Open the url pythonista3:// which will open the app in "safe” mode.
-
@ccc Thanks!! I think something happened when I downloaded the latest version of
outline.py
. The link is incorrect and when I did the wget to download it, I must have messed up pythonista. I am back to where I was but with the latest version. I should just have a script that downloads the latest version since, AFAIK, the link does not change. -
@ihf said:
The link is incorrect
You're right, the link pointed to the list of all my Pythonista scripts on GitHub. Sorry for that.
Small error, big effects. I didn't know that you didn't first visually follow the link before downloading.I can't promise that this error will never occur anymore , thus tap on it first to check you arrive on one source code.
The link is V00.54
-
-
@ihf I don't know if you have read my "state of the art". I don't forget the two bugs (I have still spent some time today but without success). But I want to have some fun during some days, then I agree to think about the images in the text. Could you answer to my questions, please.
-
@cvp on further reflection, I think the Inclusion of images should be a low priority as I only occasionally have a need for it. I may have mentioned this before but having a way to fully collapse or expand the entire outline with one button would be helpful.
-
@ihf said:
I may have mentioned this before but having a way to fully collapse or expand the entire outline with one button would be helpful.
I don't think that I have already seen this request, but anyway, could you explain.
Collapse all lines in one? Or collapse all children?Édit: on iPhone, no more room for an additional button.
Could we use the eye button with a submenu- show hidden
- collapse all
- expand all
-
@ihf You never told me if you are happy with the modification of V00.50 relative to reaching the right side of your window, it is also important for me ❗️
-
@cvp I just tested on the iPad in Landscape mode and when I reach the end of the line it continues onto the next line as it should. The new line is (not surprisingly) hidden by the keyboard so I need to scroll the outline up at that point but you know all about that.
However, I went into portrait mode and I got a TypeError 'builtin_function_or_method' object is not iterable. I'm not exactly sure what I did when I got it but I believe I was trying to paste a new line and then delete it. It also seems to occur when I hit return to create a new item.
-
@cvp I exited the program and now when I start it and try to select an outline I am getting the same error. Here is a traceback:
Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 728, in tableView_heightForRowAtIndexPath_ row=indexPath.row() File "/var/containers/Bundle/Application/8778D1CF-1C08-48BA-9714-9D2CFE524EA1/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 801, in __call__ ordered_args = list(args) + [kwargs[key] for key in kwarg_order] TypeError: 'builtin_function_or_method' object is not iterable Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 728, in tableView_heightForRowAtIndexPath_ row=indexPath.row() File "/var/containers/Bundle/Application/8778D1CF-1C08-48BA-9714-9D2CFE524EA1/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 801, in __call__ ordered_args = list(args) + [kwargs[key] for key in kwarg_order] TypeError: 'builtin_function_or_method' object is not iterable Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 728, in tableView_heightForRowAtIndexPath_ row=indexPath.row() File "/var/containers/Bundle/Application/8778D1CF-1C08-48BA-9714-9D2CFE524EA1/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 801, in __call__ ordered_args = list(args) + [kwargs[key] for key in kwarg_order] TypeError: 'builtin_function_or_method' object is not iterable Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 728, in tableView_heightForRowAtIndexPath_ row=indexPath.row() File "/var/containers/Bundle/Application/8778D1CF-1C08-48BA-9714-9D2CFE524EA1/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 801, in __call__ ordered_args = list(args) + [kwargs[key] for key in kwarg_order] TypeError: 'builtin_function_or_method' object is not iterable