ESP3D-WEBUI icon indicating copy to clipboard operation
ESP3D-WEBUI copied to clipboard

[FEATURE REQUEST] Sort Gcode files by "date modified" or leave them unsorted as provided by host/TFT

Open rondlh opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. Typically I want to print the last file I copied to the USB flash drive in my TFT display when I issue a M20 U: (list USB files). Unfortunate ESP3D sorts the files alphabetically, so I have to dig around to find the file I want to print.

Describe the solution you'd like Add an option to 1. sort the files alphabetically, or 2. don't sort them because the TFT handles this already.

Describe alternatives you've considered This can also be hard coded, then leave it up to Marlin or in my case the TFT to provide the files in the required order (which can be configured).

Additional context I use ESP3D V3.0, which I can recommend over V2.1

rondlh avatar Apr 22 '24 13:04 rondlh

Thank your for submiting, please be sure you followed template or your issue may be dismissed.

github-actions[bot] avatar Apr 22 '24 13:04 github-actions[bot]

https://marlinfw.org/docs/gcode/M020.html well only in latest Marlin are avaible the time stamp for M20 , so I think they can be sort by date or name

kleffa avatar May 07 '24 00:05 kleffa

https://marlinfw.org/docs/gcode/M020.html well only in latest Marlin are avaible the time stamp for M20 , so I think they can be sort by date or name

The case you describe is different from my case. I would like to have the option to not sort the files alphabetically, but just display them in the order they are provided. This is because I use a TFT with SD/USB reader that gives me various options to sort the files. But then ESP3D sorts the files again, which makes the TFT sorting useless.

rondlh avatar Jun 05 '24 14:06 rondlh

ESP3D didn't sort files, they are just in order provided, which is a Marlin feature, maybe you can try make a better UI to make god lists or change options in marlin to sort them by date

kleffa avatar Jun 05 '24 16:06 kleffa

ESP3D sorts the files in src\components\Helpers\filters.js This has nothing to do with Marlin, because the M20 response is provided by the TFT, not Marlin.

rondlh avatar Jun 05 '24 16:06 rondlh

Fixed by https://github.com/luc-github/ESP3D-WEBUI/commit/423dbae646ada07fe3088f0e66b46ab671b21491

luc-github avatar Jul 02 '24 00:07 luc-github

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Jul 12 '24 00:07 github-actions[bot]