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 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
-
@ihf said:
At left of text
At left of text, like @ccc 's example or at left of outline?
✅ ▶️1.1.1 text
▶️✅1.1.1.text
▶️1.1.1.✅textThere are a lot of possibilities,
- before/after the arrow of hide/show
- before/after the blanks of outlines (vertically aligned or not)
Is this ok? Ho yes, this image shows also a new feature of gray lines drawn to separate text lines
-
@ihf New V00.21 available with
Version V00.21 - correction of BIG (sorry) bug "hide/show icons were not synchronized with lines when scrolling more than one screen" - correction of bug "tap outside search field while it was not empty" does not reshow all lines"" - support move left/right dragged box on its initial line to promote/demote - support "show lines separator" - new general setting - display or not a line after each (not hidden) text line - support "checkboxes" - new general setting - display or not a checkbox in front of (not hidden) line - store checkbox per line in the .content file
But....
I don't like my program.
Outlines are identified by their position in the text, and this is very fragile. Even the smallest bug has huge consequences.
You remember the discussion with @mikael about choosing between ui.TextView and ui.TableView. I am still (until when?) convinced that ui.TextView is better in this case but I think that I should completely revise my script to remember the identification of outlines by their line number rather than by their position in the text.
But this can be a huge job with the risk of lots of new bugs.
Anyway, the actual script could become much too slow for long texts ...Since I play with ui.TextView (ObjectiveC) inset to solve problem of desynchronization between text lines and their checkbox and hide/show buttons, a bad scroll is done when typing in a file longer than one page. This problem is still present, sorry for that.
And I'm looking for the reason for hours... 😢 I have enough for todayÉdit: perhaps is this problem existing for weeks but I never did play wiTh a text bigger than one page, thus who knows? Did you?
-
@cvp i did not try long lines or outlines longer than a page. This weekend I would like to try using it for a “real” outline to see how it works in practice.
-
@cvp Checkboxes are being reset as soon as I type a new item
-
@ihf said:
Checkboxes are being reset as soon as I type a new item
I don't understand : do you want the checkboxes to be all reset as soon as you type a new line?
Don't you prefer a title bar button to reset all?For instance. If your list is a todo list, and if you have already done some tasks, I don't understand why if you add one task in your list, you have to reset all already done task.
-
@ihf scrolling bug: only to be sure you know it: if you have a text longer than one page, il you set cursor in the first lines, then type something, at each TextView automatically scrolls to the end of the text... Annoying
I'je just spent more than 4 hours to try to identify why, but without success. Sorry for you
-
@ihf said:
Checkboxes are being reset as soon as I type a new item
Sorry, I did not understand. I thought it was a request, but it is a bug. Shame on me.
-
@ihf New V00.22 available with:
Version V00.22 - correction of bug "if text bigger than one screen, any typing automatically scrolls until end of file". workaround found is to locate text row at edited line - correction of bug "checkbox was not saved correctly in .content" - correction of bug "checkboxes are being reset as soon as new item is typed"