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 your video, I see that you use version V00.05 but the last version I sent you was V00.10, thus you use a very old version.
You have to install each time the last version or you will find bugs, perhaps already solved in a newer version. I'll never be able to reproduce the same problems as you because I don't keep old versions. -
@ihf said:
Does the move take all children of a node with it?
Yes, as you asked.
For example, here I long pressed on the 5.2 line to get this moving box
-
@ihf New V00.11 with correction of some bugs. please be sure to install it before any new tests.
Version V00.11 - bugs - correction of bug "characters insertion before an outline was allowed" - correction of bug "CR before an outline was allowed" - correction of bug "CR before a line without outline crashed" - correction of bug "CR at begin of file before an outline was incorrect" - support CR in the middle of a line, with renumbering of following lines
I'm busy to do some tests, really not full time, but I think that when I change one line to correct a bug, I generate two new ones, thus, don't' be angry but it will take some time, sorry for that.
-
@cvp sorry about that…i downloaded a new version but had an old version open…won’t happen again :-) i tried the new version and when i typed a char on the 1st line, I got an IndexError at line 1088.
-
@ihf I want to cry... I'm sure this did not occur previously.
Sorry, I get too much problems, I need to correct them.
Sorry, sorry, sorryPlease stop all until I warn you.
I've too much new bugs each time I correct a bug...
I'll try to find the patience to review the whole code, at least this part.And I'm not so much free this week
Tomorrow: tab key
- at begin of file if empty (actually ok)
- at begin of file if only one line without outline (actually ok)
- at begin of file if only one line with outline (actually ok)
- at first line if outlines 1.0 and 2.0 exist and tab on 1. 0 (actually bug)
- at first line if outlines 1.0 and 2.0 exist and tab on 2.0 (actually bug)
and so on
Sorry to be so slow
-
@ihf Perhaps I become too old for this stuff
-
@ihf New V00.12 available with
Version V00.12 - bugs - full review of tab process and checks - full review of backtab process and checks - correction of bug "typing a tab or backtab before an outline was now allowed"
You may restart tests about tab and back tab and their automatic renumbering.
And if it seems ok, you can test drag and drop (renumbering part after delete original lines not yet full ok ) -
@ihf Weather is very hot here, I don't want to debug more today.
But some free time for some questions about new functionalities or updates:- you know that you can use standard copy and paste. It would be easier for me to not allow paste of text containing one or more CR. Is it acceptable for you?
- when I present the moving box, the text has a particular font and font size, but would you prefer that I use the same font and font size as in the TextView?
- you know that drag and drop is a move, buT do you want also to support copy of some lines and their outlines. If yes, how to choose move or copy? I could ask a question just at drop.
- you had asked me if I drag the selected line with its children. The answer is yes but do you want to support with and without children. If yes, how to choose it?
-
- I think that would be fine. I rarely need CR within an item
- Yes, I think the same font would be better
- For the drag/drop UI only move but copy/paste with the usual menu.
- I think always move with children (but not siblings)
-
@ihf said:
For the drag/drop UI only move but copy/paste with the usual menu.
What do call the usual menu?
Standard menu of Apple copy/paste =select....
Or the popup menu of the -
I was referring to the standard Apple copy/paste menu.
-
@ihf but tHe copy with the standard menu does not allow the drag operation of a line and its children
-
That is true although i just tried doing a copy/paste with the notebook app and somehow it knows to copy the parent with its children although i think i found a bug with that, so maybe ignore that case.
Unrelated, i just did a few drags using the latest version and got this.
https://imgur.com/a/RCH9NQo -
@ihf said:
did a few drags using the latest version and got this.
Sure I have still problems with drop.
Please test only tab, back tab and CR to see if their renumbering works.. -
@ihf said:
copy the parent with its children
Would you like to have a new option in the popup menu of the app (remember, you have to double tap on a line having an outline): "Copy line with its children"?
The script could
- display the moving box like if you had long pressed the line
- intercept your finger that will touch and move the box and drop it like for a move
- copy the lines of the box without deleting the original lines
You will even get the same bugs as for the move process 😂
-
@ihf said:
Unrelated, i just did a few drags using the latest version and got this.
https://imgur.com/a/RCH9NQoI am interested to receive photos of before (including the moving box and the red line showing where you will drop) and after the drop
Like in this example, you see, all has been ok, renumbering included
-
@cvp I am not quite sure how I created that outline and got the error but here’s another video which gives a list index out of range. It may or may not be related. There is a small problem I found where if I don’t save the outline and then the next time I try to create a new outline with the same name it says that the file already exists but if I try to load that empty file I get an error.
https://vimeo.com/562914682
I will try to be more systematic and record what I do before getting an error. -
@cvp different error: https://vimeo.com/562920493
-
@ihf New V00.13 available. I've spent a lot of time for debugging, version should be cleaner but there are still some renumbering bugs. Also, a new functionality to see easily where are located the original area of dragged lines.
Enough for today...
Version V00.13 - bugs - correction of bug "new file was saved as first use, even if not asked" - correction of bug "enter in font size did not close the textfield" - correction of bug "error 'list index out of range' at end of file" - correction of bug "error 'list index out of range' in renumbering" if last line has a CR" - full review for renumbering for - tab" - "lf " - "backtab" still in progress - "dropped lines" - "removed lines of dropped original" - text in moving box will have same font and font size as TextView text - support "show original area" - new general setting - display or no a coloured rectangle on the original dragged area
-
@cvp Line 1150 tap is not defined. Did i lose something?