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 - part 2
-
@ihf you want this?
⬜️1.0 unchecked 🕦 1.1 due date unchecked ✅ 1.1.1 checked •1.1.2 no checkbox
Or this
⬜️1.0 unchecked 🕦 1.1 due date unchecked ✅ 1.1.1 checked ▪️1.1.2 no checkbox
-
@cvp If that is the size of the bullet then I would go with the square
-
@ihf V01.12 and outline.versions with
Version V01.12 - square emoji used for outline without checkbox and aligning texts
Édit: it is ok when you edit the notes field but square emoji does not appear correctly on the Apple Watch, weird. (Zoom the image and you'll see squares, perhaps due to black squares on black background)
-
@cvp yes, that is hard to see on the watch.
-
@ihf V01.13 and outline.versions with
Version V01.13 - gray square emoji used for outline without checkbox due to black background
-
@cvp and the auto-install is a BIG time saver. Thank you!
-
@ihf you're welcome. If you use this program so frequently, I can't imagine you don't meet a lot of circumstances where a new functionally could be hoped.
-
@ihf V01.14 and outline.versions with
Version V01.14 - correction of bug "title of popup menu was 'outline for xxx' where xxx was not the tapped outline but the text of an eventual copied row, same as 'paste xxx...'"
😂 Just to prove that I
continue to be interested in enhancing this incredibly useful program
-
@cvp haha. OK, here goes. It would be nice if the due date event could optionally set the Repeat interval and the Alert/Second alert timing.
-
@cvp you implemented a select with copy, delete, etc. from within outline but is there already a way to select and copy to the pasteboard so that the items can be pasted into another app?
-
@ihf did:
but is there already a way to select and copy to the pasteboard so that the items can be pasted into another app?
No. But, of course, I could foresee such an option but whaT do you want To paste? Only the texts or also the outlines? And for several lines?
@ihf said
It would be nice if the due date event could optionally set the Repeat interval and the Alert/Second alert timing.
No code is incorporated in outline.py, but could you test this little script only to see if you like the standard calendar event dialog
import ui from objc_util import * load_framework('EventKitUI') def EventEditViewController(title=None): v = ui.View() if title: v.name = title v.rgb = None vc = ObjCInstance(v) store = ObjCClass('EKEventStore').alloc().init() calendar = None for cal in store.calendars(): #print(cal.title()) if str(cal.title()) == 'Outline': calendar = cal break EKEventEditViewController = ObjCClass('EKEventEditViewController').new().autorelease() EKEventEditViewController.eventStore = store event = ObjCClass('EKEvent').eventWithEventStore_(store) event.title = 'Todo: text line' event.setCalendar_(calendar) EKEventEditViewController.event = event clview = EKEventEditViewController.view() w,h = ui.get_screen_size() v.frame = (0,0,w,h) vc.addSubview_(clview) v.present('sheet') v.wait_modal() return EventEditViewController()
-
@cvp Script gets an error:
Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/test_outline_dateUI.py", line 32, in <module> EventEditViewController() File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/test_outline_dateUI.py", line 18, in EventEditViewController EKEventEditViewController = ObjCClass('EKEventEditViewController').new().autorelease() File "/var/containers/Bundle/Application/8778D1CF-1C08-48BA-9714-9D2CFE524EA1/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 429, in __init__ raise ValueError('no Objective-C class named \'%s\' found' % (name,)) ValueError: no Objective-C class named 'b'EKEventEditViewController'' found
-
@cvp As to what text to copy: yes, multiple lines with the outline numbers and text. Obviously I can do this now in multiple steps (save as text, copy from there and paste to other app), but it would be useful to copy/paste or even share via share sheet a portion of the outline.
-
@cvp I seem to have just stumbled on a bug. When I touch the outline number of one of the items in order to get the pop-up menu ,instead of showing it for the line I touch, it shows it for one of the items in the middle of the outline. It shows this item no matter which one I touch. There may also be a related bug which is this particular outline item has a long line of text and the pop-up menu tries to show this entire line which pushes the right hand part of the menu off the screen
-
@ihf said:
Script gets an error:
Weird. I don't have any problem with this little script.
Could you check if code is identical no retry after a restart of Pythonista? Before testing any other script -
@ihf said
I seem to have just stumbled on a bug. When I touch the outline number of one of the items in order to get the pop-up menu ,instead of showing it for the line I touch, it shows it for one of the items in the middle of the outline. It shows this item no matter which one I touch. There may also be a related bug which is this particular outline item has a long line of text and the pop-up menu tries to show this entire line which pushes the right hand part of the menu off the screen
Do you have this problem with new V 01.14version?
Where do you see in the popup window for which line it is?
-
@ihf popup window:
- at top, tapped outline
- at bottom, last copied text, stored in file outline.clipboard, able to be pasted
-
@cvp I tried the above script again after restarting Pythonista and I get the same error about a missing objective-C class. I presume you are running iOS 15?
-
@cvp I’m in landscape mode and the line I’m talking about is to the left of hide children in the pop-up menu. The interesting thing is that this line which is one line of an outline isn’t going away regardless of which item I touch even if I change outlines. It even persists if I start a new outline and touch 1.0 in the new outline.
-
@ihf said:
I presume you are running iOS 15
Yes.
aren't you?
But this ObjectiveC class exists from ios4...
Did you try on a device where Pythonista is authorized to access calendar?Could you try on iPad please?
Edit: same problem as you on my iPhone.