omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    9
    589
    180502
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ihf
      ihf last edited by

      @cvp I sometimes take notes in another app and I want them to be an Outline so an easy way to import them would be very useful.

      cvp 2 Replies Last reply Reply Quote 0
      • cvp
        cvp @ihf last edited by cvp

        @ihf I understand the request, I already think about it, but so long time I did not touch this script 😢

        1 Reply Last reply Reply Quote 0
        • cvp
          cvp @ihf last edited by

          @ihf You know that there is a way to copy selected lines of an outline and paste them via the popup menu.

          I'll try to reuse this code but I need to differentiate both cases. Not a little work

          1 Reply Last reply Reply Quote 0
          • ihf
            ihf last edited by

            @cvp The thing I really miss is undo/redo but I know you said that was a major issue.

            cvp 2 Replies Last reply Reply Quote 0
            • cvp
              cvp @ihf last edited by cvp

              @ihf yes, I can understand but I think that you can forget it, unfortunately because it had never correctly worked with TableView where I have to delete/insert rows, but in the future, if ScrollView work with my own array of rows, who can say...

              1 Reply Last reply Reply Quote 0
              • cvp
                cvp @ihf last edited by cvp

                @ihf new V01.33 and outline.versions with

                Version V01.33
                  - add new "paste_text" option in popup menu to add multiple rows after the
                    selected one by copying several lines from another note/text
                

                1 Reply Last reply Reply Quote 0
                • ihf
                  ihf last edited by

                  @cvp I tried copying some text from another notes app and went to Outline. It pasted the text perfectly. However, if I click on the outline level to get the menu (on iPhone) it no longer displays properly.

                  cvp 1 Reply Last reply Reply Quote 0
                  • cvp
                    cvp @ihf last edited by cvp

                    @ihf said

                    it no longer displays properly

                    What does that mean ? Example? Perhaps I need to shorten the line if too long

                    1 Reply Last reply Reply Quote 0
                    • ihf
                      ihf last edited by

                      @cvp I created a new outline and when I touch 1.0 to get the menu I got this:

                      https://i.imgur.com/JXu9PbE

                      cvp 1 Reply Last reply Reply Quote 0
                      • cvp
                        cvp @ihf last edited by

                        @ihf Could you try to copy a text of some short lines, I think the problem comes from very long lines

                        1 Reply Last reply Reply Quote 0
                        • ihf
                          ihf last edited by

                          @cvp It worked and displayed the Paste option with a few words and ...although it added 4 extra blank outline elements after the text.

                          cvp 1 Reply Last reply Reply Quote 0
                          • cvp
                            cvp @ihf last edited by cvp

                            @ihf said

                            although it added 4 extra blank outline elements after the text.

                            Don't understand. Do you mean that you did not copy some lines that are pasted?

                            I'll shorten to max 20 characters the first copied line in the menu but I'll paste all full copied lines

                            1 Reply Last reply Reply Quote 0
                            • ihf
                              ihf last edited by

                              @cvp It worked fine when I copied several shorter lines (the extra lines were actually in the copied text so that is not a bug). I guess the problem is that when the lines are long it ruins the menu display.

                              cvp 1 Reply Last reply Reply Quote 0
                              • cvp
                                cvp @ihf last edited by

                                @ihf see remark in edited previous post

                                1 Reply Last reply Reply Quote 0
                                • ihf
                                  ihf last edited by

                                  @cvp that would be great. I'll test it after you make the change.

                                  cvp 1 Reply Last reply Reply Quote 0
                                  • cvp
                                    cvp @ihf last edited by

                                    @ihf new V01.34 and outline.versions with

                                    Version V01.34
                                      - shorten to maximum 20 characters of the first copied line but paste
                                        all full copied lines
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • ihf
                                      ihf last edited by

                                      @cvp C'est parfait! Merci!!

                                      cvp 1 Reply Last reply Reply Quote 0
                                      • ihf
                                        ihf last edited by

                                        @cvp I just noticed that if I go to Settings or Show only if Level, and touch Done, I get an AttributeError (no attribute close).
                                        Unrelated, I may have forgotten, but is there a way to delete an outline from within the script or Do I use Files app to delete it?

                                        cvp 2 Replies Last reply Reply Quote 0
                                        • ihf
                                          ihf last edited by

                                          @cvp also got an IndexError when I went to menu and did Delete with Children.

                                          cvp 3 Replies Last reply Reply Quote 0
                                          • cvp
                                            cvp @ihf last edited by cvp

                                            @ihf said

                                            just noticed that if I go to Settings or Show only if Level, and touch Done, I get an AttributeError (no attribute close).

                                            😭never ending story

                                            Édit: not for me, depends perhaps on what we did before, line number?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors