• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

[Feature request] Print file sorting options

Scheduled Pinned Locked Moved
PanelDue
6
11
583
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.
  • undefined
    pkos
    last edited by 1 Mar 2021, 11:15

    Is there any chance at all a new way of sorting could be added to the Panel Due Print file section?

    Currently, they are being sorted alphabetically.
    I would love to see an option to change it so that the order is by file creation date, so you can just quickly see which was the latest uploaded file and hit print ๐Ÿ˜‰

    Could this be added? Pretty please? ๐Ÿ˜„

    Voron 2.4 (Duet 3 6HC + 3HC standalone), Voron SW (Duet 3 mini 5+ standalone), Voron Trident (Duet 3 mini 5+ standalone), Voron 0.1

    1 Reply Last reply Reply Quote 3
    • undefined
      Phaedrux Moderator
      last edited by 1 Mar 2021, 23:02

      This came up in October 2020 and I think it was planned. Or at least to be able to see the last uploaded file. Not sure how far that got. @wilriker ?

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 1
      • undefined
        wilriker
        last edited by 3 Mar 2021, 08:20

        The problem with sorting by anything but alphabetical order is that PanelDue would have to fetch file details for every single file because the default file list does not contain anything but the filename (and I even think there is no guarantee that the list is even sorted alphabetically although it most of the time is coincidentally). That would lead to an enormous overhead and might lead to literally minutes until the file list would become available.

        So unless RRF provides means of getting file lists in a specific sort order unfortunately there is no sensible way of sorting otherwise.

        Manuel
        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
        with probably always latest firmware/DWC (incl. betas or self-compiled)
        My Tool Collection

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 3 Mar 2021, 09:53

          It would be possible for PanelDue to use M20 S3 instead of M20 S2 in order to get the time stamp as well as the filename, however it would greatly increase the time taken to fetch the file list, which might be a problem when there are a lot of files.

          PanelDue currently sorts the files into alphabetical order.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • undefined
            Blacksheep99
            last edited by 3 Mar 2021, 10:07

            I would say date order is preferable to alphabetical, it is for me at least.

            1 Reply Last reply Reply Quote 1
            • ?
              A Former User
              last edited by A Former User 3 Mar 2021, 17:16 3 Mar 2021, 12:51

              Maybe in a future release something optional in the setup? But I can imagine that the day you have it in the panelDue options, people would flood the forum by complaining how slow it is (including me 10 years younger or so)...

              1 Reply Last reply Reply Quote 0
              • undefined
                Phaedrux Moderator
                last edited by 3 Mar 2021, 17:00

                @dc42 @wilriker How bout just an object for LastPrintedGcode and LastUploadedGcode which could be displayed at the top of the file list? Or maybe even keep track of the last 3 of each?

                Z-Bot CoreXY Build | Thingiverse Profile

                ? 1 Reply Last reply 3 Mar 2021, 17:18 Reply Quote 0
                • undefined
                  pkos
                  last edited by pkos 3 Mar 2021, 17:15 3 Mar 2021, 17:14

                  So in my use case, the LastUploadedGCode would suffice. My printer is not near any computer and that's why I have the amazing PanelDue 7i on it.

                  I can imagine just like @LB wrote, that if it's just changed - people will complain. It should definitely be a toggle.

                  I could imagine that it would still need changes in RRF though, right?

                  Then again... imagine a world where you have an option in RRF, where you specify how the file list should be provided to the PanelDue - sorted either alphabetically or by upload date, with newest at the top... and the Duet handles the sorting... such a wonderful world indeed ;D

                  Another option is to add another button to PanelDue that would show a different file list, one sorted by date - and add a big fat warning in release notes (for example, or on the button) saying that this would be slow to populate.

                  Or even better yet! The second option now as a workaround, while the proper way later down the line.

                  Now THAT would be something ๐Ÿ˜‰

                  Voron 2.4 (Duet 3 6HC + 3HC standalone), Voron SW (Duet 3 mini 5+ standalone), Voron Trident (Duet 3 mini 5+ standalone), Voron 0.1

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @Phaedrux
                    last edited by A Former User 3 Mar 2021, 17:24 3 Mar 2021, 17:18

                    @Phaedrux said in [Feature request] Print file sorting options:

                    @dc42 @wilriker How bout just an object for LastPrintedGcode and LastUploadedGcode which could be displayed at the top of the file list? Or maybe even keep track of the last 3 of each?

                    -> Could imagine this one in the print-screen... beside "Repeat last print" an "Print last uploaded file" or so? Altough it would not be really an answer to the OP-post...

                    Lotยดs of possibilities...

                    undefined 1 Reply Last reply 3 Mar 2021, 17:27 Reply Quote 0
                    • undefined
                      pkos @A Former User
                      last edited by 3 Mar 2021, 17:27

                      @LB actually... that would also work! ๐Ÿ˜‰ Just a single button that reads - print last uploaded file. It doesn't give you the option of seeing more files, but this would cover the most common use case.

                      Voron 2.4 (Duet 3 6HC + 3HC standalone), Voron SW (Duet 3 mini 5+ standalone), Voron Trident (Duet 3 mini 5+ standalone), Voron 0.1

                      ? 1 Reply Last reply 3 Mar 2021, 17:33 Reply Quote 0
                      • ?
                        A Former User @pkos
                        last edited by A Former User 3 Mar 2021, 17:40 3 Mar 2021, 17:33

                        @pkos said in [Feature request] Print file sorting options:

                        @LB actually... that would also work! ๐Ÿ˜‰ Just a single button that reads - print last uploaded file. It doesn't give you the option of seeing more files, but this would cover the most common use case.

                        It was the idea of @phaedrux not mine, also I can understand the two of you and would also agree that it could be helpful for my avarage usecase... ๐Ÿ˜‰
                        -> But I guess that would also need some sort in the background because how would it know what is the latest uploaded file...?
                        Question that comes up my mind - could the latest uploaded file:
                        A) be written in some "cloaked" area
                        B) tagged (?)
                        to have the panelDue read that info "lightning"-fast?

                        (Already a "fan-boy" of the sort-setting in the options-tab but still have fun playing with your idea...)

                        1 Reply Last reply Reply Quote 0
                        8 out of 11
                        • First post
                          8/11
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA