UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    tedit development and design discussion

    Scheduled Pinned Locked Moved App Development
    tediteditorappdevelopmentfeatures
    200 Posts 13 Posters 46.3k Views 3 Watching
    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.
      • danfroD Offline
        danfro @domubpkm
        last edited by

        @domubpkm Thanks for your feedback.

        Regarding colors, I do agree, they have to provide clear contrast. I think I will need to provide some letter/font color + edit area background color combinations that do work. I will need to refactor settings a bit. But I need to do some work there anyway.

        We will definitely not have .odt files. This would require to include a full LibreOffice stack. I first don't know much about that and second this would make the app quite big (see docviewer size).

        The component we are using is a TextArea. This component does allow Rich text and therefore should allow us to have some basic formatting like bold, italic,... I need to check how that works and how to implement it. But this should be possible with reasonable amount of work.
        I think future versions of Qt will provide markdown formatting for TextArea, so this might become an option at some point.

        1 Reply Last reply Reply Quote 1
        • danfroD Offline
          danfro @arubislander
          last edited by danfro

          @arubislander Apps can be closed with a button press - if implemented. I think to remember uTorch or Timer app used that a while ago.

          This is easily done, but it takes up space for one more icon. Unless many users think this useful, I would not provide it right now since it kind of is against the UT guidelines for UI and usage.

          @domubpkm could you please file a feature request for that in the repo? We can keep the idea open and see what happens.

          Edit: I guess the reason is simply convenience. I thought it useful at some point too. Just a single press, where otherwise several swipe gestures are needed.

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            domubpkm @danfro
            last edited by

            @danfro Just an example : in 'Sapot', there is the 'quit' option :
            screenshot20240111_171621345.png

            I don't want .odt πŸ™‚. First, i thought it was necessary, but yes it isn't.

            danfroD 2 Replies Last reply Reply Quote 0
            • danfroD Offline
              danfro @domubpkm
              last edited by

              I don't want .odt πŸ™‚. First, i thought it was necessary, but yes it isn't.

              It is perfectly fine to discuss this kind of features. I personally would like to have the option to use text, rich text, markdown but also odt as file format. The wish for that is perfectly understandable.

              But that is beyond my skills and the technical capabilities right now. Also I don't think we should create a second LibreOffice. πŸ˜‰

              1 Reply Last reply Reply Quote 0
              • danfroD Offline
                danfro @domubpkm
                last edited by

                @domubpkm said in tedit development and design discussion:

                @danfro Just an example : in 'Sapot', there is the 'quit' option :

                To be honest, in my opinion having this quit option in a menu makes it even less valuable. It either is a quick access or I may as well use the swipes.

                Ah, I just checked Timer app. There I made this a setting. So users can choose to have a quit action on the header or not.

                Thinking about it, I don't consider this good for tedit. Notes are not saved automatically. So accidentally pressing that button will make you loose all text. And having to confirm it every time makes it cumbersome to use. Again, my personal opinion.

                D danfroD 2 Replies Last reply Reply Quote 1
                • D Offline
                  domubpkm @danfro
                  last edited by

                  @danfro Yes, the idea I submitted is not necessarily wise for tedit πŸ˜ƒ

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    ma
                    last edited by

                    Hi danfro, thanks for your efforts!

                    Color settings are not important to me. Only an adjustment to the system color scheme (dark mode) would be nice.

                    I would welcome a read-only mode. Sometimes I just want to read a note but unintentionally I change an entry while scolling. The keyboard also appears unintentionally.

                    danfroD 1 Reply Last reply Reply Quote 0
                    • M Offline
                      ma
                      last edited by

                      When you open the app you can create a new note directly. That's pretty nice. But when you open an existing note, you first have to close the app to create a new not. In other words, there is no way back to the initial screen.

                      danfroD 1 Reply Last reply Reply Quote 0
                      • M Offline
                        ma
                        last edited by

                        Notes are always saved in .local/share/tedit.danfro. When you select "save as" you can only choose a name but no directory. That would be a nice option.

                        When you open a file via file manager which is stored in your home directory you can edit the file. But a copy will be saved in .local/share/tedit.danfro. The original file in your home directory is unchanged.

                        danfroD 1 Reply Last reply Reply Quote 1
                        • danfroD Offline
                          danfro @ma
                          last edited by

                          @ma Thanks for the feedback.

                          Those two things I will implement. The theme adjustment already works but is not released. I need to fix the edit area background changing with the theme. That is difficult e.g. with yellow letters and then white background. πŸ˜‰

                          The read only mode I think we will be useful for other things in future too. I am just not quite sure where to place that in the UI. But my development version already has a button for that.

                          1 Reply Last reply Reply Quote 0
                          • danfroD Offline
                            danfro @ma
                            last edited by

                            @ma True, a "open new note" is needed. πŸ‘ Could you please open a feature request for that in the repo?

                            I would also like a "open last note on startup". Not sure if I get that done easily.

                            M 1 Reply Last reply Reply Quote 0
                            • danfroD Offline
                              danfro @ma
                              last edited by

                              @ma Yes, only the apps folders are readable and writable. That is due to apparmor restrictions. The app would need to be unconfined to get past that.

                              A note shared to tedit will be copied, correct. That is so the app can store changes.

                              Please see the readme in the repo for a way to link another folder for tedit to be used.

                              1 Reply Last reply Reply Quote 0
                              • danfroD Offline
                                danfro @danfro
                                last edited by

                                @danfro said in tedit development and design discussion:

                                Thinking about it, I don't consider this good for tedit. Notes are not saved automatically. So accidentally pressing that button will make you loose all text. And having to confirm it every time makes it cumbersome to use. Again, my personal opinion.

                                πŸ€” Maybe this actually would be the benefit of an "quit" button. If using that button would prompt the user if there are unsaved changes so they can be stored before closing the app, that would be better than closing the app and loosing all unsaved changes.

                                D 1 Reply Last reply Reply Quote 0
                                • D Offline
                                  domubpkm @danfro
                                  last edited by

                                  @danfro said in tedit development and design discussion:

                                  Maybe this actually would be the benefit of an "quit" button. If using that button would prompt the user if there are unsaved changes so they can be stored before closing the app, that would be better than closing the app and loosing all unsaved changes.

                                  In any case, one action would not exclude the other: exit by a swipe (no recording) can coexist with the 'quit' option which would ask whether you want to record or not.

                                  1 Reply Last reply Reply Quote 0
                                  • Josele13J Offline
                                    Josele13
                                    last edited by Josele13

                                    I think the app is perfect, if the background colors are a problem, you can remove that and leave it to change the Ut theme, I prefer in Ut the dark theme, in tedit too.
                                    a good option would be to share one or several notes and that way you can easily export them to Teleports or to another location in the file manager,
                                    the possibility of colors in the text is great, if you can keep it is perfect, if you see difficult to keep it then choose a viable color, for example with the dark theme it fits well the white, light grays and even the green that it has now.
                                    Thanks for your great effort in this app

                                    Captura de pantalla -2024-01-11 22-19-01.png

                                    Xiaomi Redmi Note 9 pro
                                    Oneplus Nord 100
                                    Xiaomi Redmi Note 7
                                    Nexus 5
                                    Bq E4.5 Ubuntu edition .... is dead

                                    1 Reply Last reply Reply Quote 1
                                    • Br1B Offline
                                      Br1 @danfro
                                      last edited by

                                      Hi @danfro most of the times I read the notes ... I'd like to open tedit directly on notes list and and tap the note to open it.

                                      Regarding colors the dark mode possibility It's enough for me.

                                      ^

                                      • Google Pixel 3a XL
                                      • Xiaomi MI A2
                                      danfroD 1 Reply Last reply Reply Quote 0
                                      • danfroD Offline
                                        danfro @Br1
                                        last edited by

                                        @Br1 True, not having to swipe a note to open it is something I would prefer too.

                                        I will think if having several start page options is possible: new (empty) note, notes list, last used note. But not sure yet if that is easy to do.

                                        I will certainly not only support dark theme. Many users like Ambiance too. So an app needs to support that. But I may reduce coloring options to make this work. Although maybe I add a setting for a fixed theme in tedit like other apps do (system theme, Ambiance, SuruDark).

                                        arubislanderA 1 Reply Last reply Reply Quote 1
                                        • arubislanderA Offline
                                          arubislander @danfro
                                          last edited by

                                          @danfro said in tedit development and design discussion:

                                          @Br1 True, not having to swipe a note to open it is something I would prefer too.

                                          Nevertheless, swiping the app away will remain possible. What happens to the note being edited then? Are the unsaved changes lost?

                                          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                          Happily running Ubuntu Touch
                                          Google Pixel 3a (20.04 DEV)
                                          JingPad (24.04 preview)
                                          Meizu Pro 5 (16.04 DEV)

                                          danfroD 1 Reply Last reply Reply Quote 0
                                          • danfroD Offline
                                            danfro @arubislander
                                            last edited by

                                            @arubislander said in tedit development and design discussion:

                                            @danfro said in tedit development and design discussion:

                                            @Br1 True, not having to swipe a note to open it is something I would prefer too.

                                            Nevertheless, swiping the app away will remain possible. What happens to the note being edited then? Are the unsaved changes lost?

                                            Yes, unsaved changes are lost on swipe&close of the app.

                                            1 Reply Last reply Reply Quote 0
                                            • M Offline
                                              ma @danfro
                                              last edited by

                                              @danfro Sorry, but I'm not on gitlab. So I can't open a feature request.

                                              Therefore I appreciate your survey here. πŸ‘

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post