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

      @mikael and another problem is that you need a TextField at each row...
      Sincerely, except move/drag features, I'm not sure of which is the best.

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

        @cvp, sure, there’s pros and cons, and @ihf’s use case should provide some guidance here.

        But you can have a TextView that resizes to fit the paragraph, and TableView rows that also resize to their contents.

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

          @mikael Agree, not easy to choose. I'll actually go on with TextView until I meet to much problems.
          Sure TableView could be easier for some functionalities.
          You disturb me because I had hesitated two days before I took my decision 😢

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

            Shift tab is often used to do the back tab (demote) function.

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

              @ihf You see that I don't forget you...I'll send some screen copies to prove it 😂

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

                @ihf

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

                  @ihf

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

                    @ihf but I don't dare to send you this current version because a lot of open bugs.
                    But, if you want to have it, it is ok, but it is very far to be clean and to offer full functionalities

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

                      @ihf last for today, I stop until tomorrow

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

                        @ihf because, you insist 😂 Github but don't come cry, it is full bugs and limits

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

                          @cvp I am very impressed by what you have working already!
                          I presume that an external keyboard is required at this point since there is no tab otherwise. I am able to create an outline (of course, without shift-tab I can’t go up a level) and moving items is not there but it’s a great start. Obviously , there is a need to be able to save and read the outline.

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

                            Ordinarily, I would expect that tab (or shft-tab) would promote (or demote) a line regardless of when it is hit. In other words if I am on a line and I do tab it would indent and change levels (likewise but reversed for shift -tab). If tab is needed in the text for some reason then promote/demote buttons could be used instead of tab but I have never needed tabs in my text.

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

                              @ihf I said you that this initial version was far from perfect. Of course we will need file new/save/load functions but they are not yet needed for testing thé édition part. Please, don't rush me

                              I didn't know that you used an iPhone.
                              Thus, we need to add buttons for tab and shift/tab. What do you prefer:

                              • in the title bar of the script
                              • in a supplementary row above the keyboard?

                              Please let me know and you will need to be patient: you will not get all functionalities briefly

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

                                @ihf example of what it could be on iPhone SE (small)

                                Icons would be at your own choice among iOS SFSymbols

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

                                  @ihf If I can use shift-tab anywhere in a line, it is sure I can't use left-delete as key.
                                  Thus I need to have a "new" key (like in my example just above).
                                  So I also can use another key than tab for indentation, thus ok also in my example above.
                                  So normal tab and normal left-delete will keep their original signification.

                                  Ok with that and this additional row of specialized keys?

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

                                    @cvp Firstly, please don't take any of my messages as indicating impatience. I am very grateful that you are taking on this project and am in no particular hurry at all. In so far as iPhone or iPad, I use both. As to special keys, I leave it to you for the best way to do it but I have no problem with dedicated keys given the absence of the tab key (when not using an external keyboard).

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

                                      @ihf ok, sorry, I was afraid you could be hurry.
                                      I'll go on with these dedicated keys, so you can have it on iPhone where there is no tab key.
                                      After your future tests , we would decide how you prefer to use the script.
                                      But I'm not yet far enough for a second version. I've been very busy this week-end, first sunny days since 3 weeks.

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

                                        @ihf you will not have news before some days because we have our fist sunny days since a long time and I take some holidays.

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

                                          @ihf I don't forget you. I'll send something testable, not perfect, end of next week, sorry for the delay.

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

                                            @ihf Hello, I'm sorry but currently i can't concentrate well. Thus my script does not evolve a lot.
                                            You will find in GitHub the last version but a lot of functionalities are still missing or buggy
                                            You can already test the two additional keys but only at end of file because renumbering does not work correctly.
                                            You can also test the Files sub-options new, open, save. This part of the script uses modules that you will also find in GitHub: File_Picker.py and Folder_Picker.py.
                                            Thus here is outline.py.
                                            The script uses any editable file (aaaa.bbb or aaaa) but creates a aaaa.content partner file with needed infos.
                                            don't be angry if there are too many bugs, I try to find the motivation to go on...

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