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
    659672
    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

      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
                                      • cvp
                                        cvp @ihf last edited by cvp

                                        @ihf said:

                                        . If you decide to continue, I am very happy to continue testing and making suggestions for improvements.

                                        Ok, let's continue the adventure but don't worry if I prefer develop new funny features than debugging hard bugs (I'll do it but you will obviously think that I'm too slow).

                                        After you did read the V00.07 features, please answer to next questions.

                                        1. First of all, what do you prefer as popup menu: horizontal black or vertical?
                                        2. Do you agree for double tap instead single tap for this menu?
                                        3. What gesture do you prefer for promote /demote: long press and move left/right or swipe?
                                        4. Do I keep also these promote/demote in the popup menu?
                                        5. as there is a red line to show where the moving text would be inserted, is the blue point needed?

                                        As we will manage this program our-selves, we will be free for our imagination...
                                        Thus, feel free to ask any improvement.
                                        And please, don't forget that there are obviously a lot of bugs in the standard part, sorry for that

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

                                          @ihf sorry, I just edited my questions while you arrived.

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

                                            @ihf I'll force my-self: next week will be reserved for debugging (exception perhaps for very attractive new functionalities 😀)

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