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

    Pythonista
    10
    1003
    840446
    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.
    • cvp
      cvp @ihf last edited by

      @ihf long_press should come from gestures, try to download the last version

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

        @cvp I think that once again i need to send a video but from another app called Notebook that is the best implementation of this that I have ever come across. Alternatively, we could do a Zoom so that I could share a window and show it to you.

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

          @ihf That will say you don't like the way I do a drag and drop?
          Ok for a video, no private dialog if possible

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

            Here is a quick screen recording. The outline has controls on each line (optional) to make it easy to select with a mouse. Using drag/drop I think the finger (or pen) would just touch the line and long-press. This does not show all of the various ways that the outline can be re-ordered but it may give you some ideas. I can do more if that would be helpful.

            https://vimeo.com/manage/videos/561037612

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

              @ihf access denied, your link was not correct, ok if changed in vimeo.com/561037612

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

                @ihf did you try my way? It is the solution of long press anywhere on a line to get it with its children for moving. Is that not what you asked? I thought it was exactly what you wanted by your sentence "Using drag/drop I think the finger (or pen) would just touch the line and long-press"

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

                  @cvp Yes that is correct but ideally it should only show the line(s) that are moving as you drag.

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

                    @ihf but, you asked to move the pressed line and it's children lines, what I did
                    In my example, I pressed the 2.3 ne the moving area contains 2.3, 2.3.1 and 2.3.2

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

                      @ihf and I could only move vertically, forcing the x at left, like

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

                        @ihf said:

                        as you drag

                        Do you want to say that I would only show the moving area if and only if I move my finger?

                        Édit: I stop for today but, if you have still time, answer to the last question.., thanks

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

                          Showing the area to be moved before you actually move your finger is fine. My only concern was that it not be a box larger than the area of the text otherwise it can block out part of what you’re moving to (if that makes any sense).

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

                            @ihf ok, understood, it will be so

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

                              @ihf the next version will contain, for promote/demote by gestures, two ways:

                              • either by a long press on one line and moving the dragging box left or right on the same line
                              • either by a left or right swipe on one line (what I prefer)

                              You should try both ways and tell me which one to keep in the script, or we can keep both

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

                                I would recommend an app called SpringNotes which does what you are looking for. It is an outliner that supports drag and drop for lists and auto numbers and syncs across Mac and iOS
                                https://springNotes.app

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

                                  @edev7666 Thanks for the info. It is true that I never had searched for this kind of application.
                                  I'll let @ihf decide

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

                                    @ihf Anyway, a new Github version is available with

                                    Version V00.06
                                      - moving box for dragging limited to text it contains
                                      - during dragging, a red line indicates where the moving text would be inserted
                                      - font button for font selection
                                      - font size button for font size selection
                                      - promote/demote by gestures:
                                        - either by a long press on one line and moving the dragging box left or right 
                                          on the same line
                                        - either by a left or right swipe on one line 
                                    

                                    Don't forget that drop process is not yet programmed.

                                    I'll stop my development until you have decided if you prefer your own script with a few functionalities or an app like adviced just above.

                                    Please, tell me.

                                    Nb: no qualms or regrets if you find an app that suits you better

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

                                      @ihf Waiting for your decision, and for my own fun, Github up to date

                                      Version V00.07
                                        - tap popup menu y-centered on the tapped line
                                        - popup menu now horizontal in more standard aspect
                                        - locally built icon for font size button
                                        - locally built icon for font button
                                        - correction of (one) bug of cursor always set at end of text
                                        - support outline bullets format
                                        - height of outline format types menu computed in function of types number
                                        - font size introduction via integer keyboard in popover TextField
                                      

                                      Remark that's a third way to promote/demote outlines

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

                                        I am William Smith, a woo commercial builder and I have developed many plugins like WooCommerce Banner Images, WooCommerce Banner Images (Products, Post, Categories) plugin allows you to add Banners for sale, flash marketing, and other functions to promote your Product Categories, Pages, Products, Cart, Checkout and Thankyou Pages. The controller has full control of the plugin to enable or disable Banners throughout the store.

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

                                          @cvp I have not yet looked at the app that is referenced above so I can’t directly comment on its functionalities relative to my needs. On the one hand, I am in awe of how much you have managed to accomplish up to this point and I love the idea of having an app, even with more limited functionality, written in python and extendable by others (at least potentially). However, I also don’t want to impose on you, so I completely understand if you would rather move onto another project. If you decide to continue, I am very happy to continue testing and making suggestions for improvements.

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

                                            @cvp I took a quick look at the website and at the video of the springnotes app and it looks very nice but it is missing crucial features (at least as far as I can tell). In particular I don’t see any mention of outline format such as legal, or other conventional formats. It could be that they just didn’t mention it but that would be a reason for me not to use it.

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