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 New V00.52 available with
Version V00.52 - protection against crash when open a file. Offer only "on my iDevice" and "iCloud Drive" if their path exists, that will say "open once as external folder"
When I posted V00.51, as temporary protection, I didn't remember (and neither do you 🙄) that to allow access to iCloud Drive you have to open it once as external folder on your iPhone.
Now, the V00.52 will not crash but first will check if the folder is accessible before trying to offer it for open. -
@ihf said:
With regard to the scrolling, I just tested on the iPad and it works except that if I am looking at the outline which takes up more than 1/2 the screen and I select a line which is below the midpoint,, the keyboard will appear (as it should) and obscure the line I selected. I can then scroll the outline up to see it but it would be better, if possible, if the view scrolled in such a way that the selected line was visible when the keyboard appears.
New V00.53 available with
Version V00.53 - when editing a row that would be hidden by the appearing keyboard, automatically scrolls so the row is above the keyboard
Please tell me if you're happy with this update, it is important for me ❗️
Also, tell 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 ❗️
-
@ihf said:
I save an outline to iCloud on iPad and then go to IPhone but do not see the outline I just saved. Is it now necessary for me to go back to Files to download it? That may be outside your control but it is very inconvenient to always remember to do that if you are going from one device to the other.
I'll solve it, promised, in one future version. You would no more need to go through the Files app first,
but not so urgent, isn'it?There are several ways to pick a file or select a folder.
File_Picker module is ok for local Pythonista files but, for external folders like iCloud Drive or 'on my iDevice', needs these folders to be open as external folders.
Also, for Pythonista iCloud, only downloaded files are shown (your problem).
The dialogs.pick_document is ok for Files app folders but does not allow to select a folder (needed by 'new file' option).
This function is based on ObjectiveC UIDocumentPickerViewController.
I'll use my own UIDocumentPickerViewController for Files app files but also to select a folder. Unfortunately, it does not allow access to Pythonista files, thus I'll need to first ask the user (you) if he wants to access Pythonista local files or all other ones. Sorry to be so long in my explanation, but this was needed, I think, for a better understanding. -
@cvp with respect to the change in version 53 to make the edited row visible above the keyboard, I just started testing and it works except if I go to the last line of the outline, the keyboard moves as it should, but if I hit return a new Outline item is created that is hidden by the keyboard. Ideally the editing point would always be visible. I will do some more testing of this and the other changes.
-
@ihf said:
except if I go to the last line of the outline, the keyboard moves as it should, but if I hit return a new Outline item is created that is hidden by the keyboard
Not true for me, new line is just above the keyboard
-
@cvp I will go back and test that again more thoroughly. I just saved the outline on the iPad then went to the iPhone, to the Files app, download it the newly saved outline. When I went to open it, I got the following:
Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/6CCAAFF1-947E-4DC8-B33B-58EE87A0823C/Pythonista3/Documents/outline.py", line 2077, in tableview_cell_for_row if row == self.cursor[0]: AttributeError: 'Outliner' object has no attribute 'cursor' Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/6CCAAFF1-947E-4DC8-B33B-58EE87A0823C/Pythonista3/Documents/outline.py", line 2077, in tableview_cell_for_row if row == self.cursor[0]: AttributeError: 'Outliner' object has no attribute 'cursor' Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/6CCAAFF1-947E-4DC8-B33B-58EE87A0823C/Pythonista3/Documents/outline.py", line 2077, in tableview_cell_for_row if row == self.cursor[0]: AttributeError: 'Outliner' object has no attribute 'cursor' Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/6CCAAFF1-947E-4DC8-B33B-58EE87A0823C/Pythonista3/Documents/outline.py", line 2077, in tableview_cell_for_row if row == self.cursor[0]: AttributeError: 'Outliner' object has no attribute 'cursor'
-
@ihf said:
When I went to open it, I got the following:
Sorry for that, never meT this problem.
Did you- open the file by files/open
- open automatically as last open
- open by shortcut argument?
-
@cvp I went back to the iPad and confirmed that if I select the last line for text insertion, hit return to add an item, that new item is hidden by the keyboard. If you then scroll up to see that line and bring up the floating menu, the keyboard is hidden and the floating menu appears but points to the middle of the outline.
-
@ihf sorry, what is the floating menu? The popup menu?
-
@ihf said:
floating menu appears but points to the middle of the outline.
I'll become crazy 😂, or perhaps is it already so.
-
@cvp Sorry, yes, the popup menu. Answer to previous question, open via files/open.
-
@ihf said:
the keyboard is hidden and the floating menu appears but points to the middle of the outline.
Very new bug due to automatic scroll back during the displaying of the popup menu.
I hope I could find a solution, not yet sure, but what is sure is that I cry. -
@cvp I just need to tell you again that what you have built is amazing and, notwithstanding any bugs, I am using it for real outlines every day. I very much appreciate that you have continued to try to fix everything that comes up as well as continue to enhance it.
-
@ihf said:
AttributeError: 'Outliner' object has no attribute 'cursor'
Will be solved in next version
-
@ihf said:
I just need to tell you again that what you have built is amazing and, notwithstanding any bugs, I am using it for real outlines every day. I very much appreciate that you have continued to try to fix everything that comes up as well as continue to enhance it.
Too kind.
-
@ihf said:
the keyboard is hidden and the floating menu appears but points to the middle of the outline.
I think that the problem comes if you ask the popup menu while the keyboard is there on an automatically scrolled up row. The program displays the popup menu above the keyboard, then the keyboard disappears and the pop menu stays at the same position while the automatic scrolls down the row at its original place....
Not easy to solve.
But, even if the popup is not at its right location, it refers to the right row as shows it it's title
-
@cvp Yes, I should have said that. The line number in the popup is correct and this is not a big problem.
-
@ihf could you wait that the keyboard disappears and the line scrolls back to the bottom before asking popup menu, just to try
-
@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.