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 I'm sorry for the delay in responding. My problem is that I can't seem to reliably get long-press to be recognized and therefore begin the drag/drop. Is there a specific part of the line that needs to be touched to make this work? Also renumbering is failing for some moves.
Here is a log file and an image of the outline (which ought not to be a valid outline).
0,0,01
4,4,61
5,5,0a
10,10,62
11,11,0a
16,16,63
17,17,0a
22,22,64
23,23,0a
28,28,01
30,30,65
31,31,0a
38,38,66
39,39,0a
drop,12,32,40 -
@ihf said:
My problem is that I can't seem to reliably get long-press to be recognized and therefore begin the drag/drop. Is there a specific part of the line that needs to be touched to make this work?
The problem comes from the fact that the long press gesture is linked to a TextView which can also be touched by standard gestures for select/copy/paste.
That's why I propose to override the outline text by a transparent view which would be touched by a long press while the text it-self would stay touchable by standard gestures of a text.
So, popup menu and long press should only be active on the outline and standard menu should only be active on the text it-self.
But I need your ok before to develop this important modif. -
@ihf said:
Here is a log file and an image of the outline (which ought not to be a valid outline).
I'll study this case tomorrow but I know there are still renumbering bugs in some moves.
-
@cvp Your idea sounds like it would solve the problem I am seeing.
-
@ihf said:
Your idea sounds like it would solve the problem I am seeing.
Ok, I'll develop that in priority...Tomorrow, except if I get a no go from you this night
-
@ihf your renumbering bug: you move to after 2.0
Do you want The f becomes 3.0 or 2.1? -
@cvp Good question. On the Notebook app that I've mentioned earlier, if you move to under the 2.0 it becomes 3.0 but if you move to under the b (in 2.0) then it becomes 2.1. So it is sensitive to whether the location is indented or not.
-
@ihf said:
So it is sensitive to whether the location is indented or not.
That becomes complex, isn'it?
-
@ihf V00.19 will include
- gestures on outline <> gestures on text
- difference between drop under outline or under text, in function of horizontal position of finger
- drop under outline or under text
-
@ihf New V00.19 available with:
Version V00.19 - correction of bug "log may not be activated after an 'open file'" - correction of bug "move last line shows a too high pink area" - correction of bug "bad renumbering after move" - support new setting "font size of hidden outlines, may be set to 0" - support longpress and double tap popup menu only on outline - support standard gesture select/copy/paste only on text it-self - differentiate if we would drop under the outline or under the text by start the red line at left of outline or left of the text - support drop under outline and under text
-
Is there a way to promote by drag/drop? For example in the outline below,: is there a way to take 4.2.1 and move it with children to 4.3?
https://i.imgur.com/XoyFoue -
@ihf I don't understand the request: why a drag/drop if you can do it with a backtab on 4.2.1which will become 4.3 and its children would follow.
But, if you want it becomes 4.2, you can drag/drop,
If you drag/drop to under (see where begins the red line)
- an outline, the first moved line will have the level of the target.
- a text, the first moved line will be a child of the target
You decide where begins the red line by moving left/right your finger while dragging
-
@ihf there are still bugs of renumbering when dropping a group with children under outline of a line which has itself children...and I am completely drowned š¤
-
-
@cvp yes , you can promote by moving the child above the desired point and then moving it down. The notebook app permits this in one step by moving to the left. Currently this triggers the error of moving to itself. However, you are also quite right to say that the back tab will accomplish the same in one step. I did hit one Indexerror (out of range) but Iām not sure how i got it. I think outline.py is now working rather well. I will do more testing. I am amazed at what you have been able to do and I thank you for all of your efforts.
-
@cvp future enhancement: add checkboxes to outline.
-
@ihf said:
The notebook app permits this in one step by moving to the left.
Don't forget that I have also foreseen the left or right swipe gestures to promote/demote.
Better than a long press, I think.But ok, next version will also include left and right move during longpressing
That will say you will be able to promote/demote by 4 ways:
- Tab and back tab keys
- Double tap an outline and choosing tab or backtab in popup menu
- Swiping left or right a line of text
- Moving left or right a long pressed outline
-
-
@cvp At left of text. For task or todo lists. As an option.
-
Like a Markdown checklist?
[ ] Milk [ ] Bread [ ] Eggs