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 hope that even if you meet one bug, you don't stop your tests.
-
@cvp Of course not. I wish there were an easier way to show what I've done to get the errors. I use video but that means doing a screen recording, uploading to vimeo, getting a link and copying it to the forum. I think I will try to write down what I do since I can't remember it well enough to reconstruct it once I hit a bug. Perhaps a debug log could be created so that I could send you that each time I find something?
-
@cvp I think that the show and hide children function would be better done as a symbol to the left of the item rather than in the double tap menu.
-
@ihf Perhaps I could log all what you are typing...But quid For touches? Need to think but not for today.
End of the work day for me
I hope you don't find the total delay too long. -
@ihf said:
think that the show and hide children function would be better done as a symbol to the left of the item rather than in the double tap menu.
Future...
-
@cvp could we at some point add support for external keyboard tab and back tab?
-
@cvp I'm only mentioning it now because I will forget otherwise :-)
-
@ihf said:
could we at some point add support for external keyboard tab and back tab?
Sure, but I don't have any keyboard, thus you have to tell me which \xnn the keys generate.
-
@cvp OK ,need to find how to do that for tab and shift tab.
-
@ihf ok, I stop now
-
@ihf little script which should give the hexadecimal of your pressed keys
import ui class MyTextFieldDelegate (object): def textfield_should_change(self, textfield, range, replacement): for character in replacement: print(character, character.encode('utf-8').hex()) return True tf = ui.TextField() tf.delegate = MyTextFieldDelegate() tf.present('sheet')
-
@cvp when using the external keyboard, tab (demote) shows as ‘09’ as does shift tab (promote).
-
@ihf said:
tab (demote) shows as ‘09’ as does shift tab (promote).
Weird but I can't help. Perhaps somebody can help?
-
@ihf New V00.16 available, with
Version V00.16 - support "log" - new general setting - log each typed key - play log typed keys - log each move - play log move
It supports a log of all your actions (I hope) and a way to play the log so I could reproduce a problem to (try to) correct it.
The script has a new setting " log active".To get a log:
- set the setting log active
- create a new file
- do your actions
- terminate the program (the log file is created even if you don't save the file itself)
- rename manually outline.log in any xxx.log
To play the log
- set the setting log active
- create a new file
- select in Files, play log
- it should run automatically your commands
To send me a log
- post by pasting the log content (editable file)
-
-
@cvp Wow! I will test as soon as I am able (probably not before this evening).
-
@cvp I turned on the log and immediately got an error on line 1081 saying Outliner object has no attribute log_fil
-
@ihf I think you have turned it after a file has been loaded
Please try to set the flag, then new file
-
@ihf To avoid confusion between long press / double tap on an outline,
and standard gestures for text selection (copy, paste), a solution could be a button covering only the outline, but not the text it-self.And a single (or double as you prefer) tap on the outline would generate the popup menu (if needed), and a longpress on the outline would start the drag and drop process.
Thus,
- own process by gesture on the outline
- standard process by gesture on text it-selfDo you want that?
-
Version V00.18 - bugs - correction of bug "bad renumbering after drop" - correction of bug "crash 'tuple index out of range' if change outline type" - correction of bug "crash if drop after a line without outline"
I hope that you did not spend too much time in testing the drop because its (new) renumbering was very bad, sorry for that.