Hi!
Quick question: is there a way to change how the files on the sd card are sorted in the web3 interface? It looks like the default is by name, but I would ideally like them to be by most recently modified/created.
Thanks!
Hi!
Quick question: is there a way to change how the files on the sd card are sorted in the web3 interface? It looks like the default is by name, but I would ideally like them to be by most recently modified/created.
Thanks!
I’m not sure of a way to do that. But I do agree that would be a nice option to have.
@Michael_Melancon or @jeyeager would be the ones to better answer this question
The current FluidNC file list commands don’t support returning the modified date. It’s Name and Size only.
WebUI can’t currently support sorting by date. This would require changes in the underlying firmware.
Quick glance…
The way the WebUI protocol is implemented in FluidNC, I can probably add it pretty easily…
I’ll look into it pretty soon-ish (maybe) and see if it’s simple enough to do on both sides
No, I don’t think so. The filelist that the WebUI retrieves from FluidNC only contains the file name and size. I’d have to look to see what order it provides by default and if the WebUI is sorting it.
Wow, thanks for the fast replies!
@Michael_Melancon That would be amazing if you end up adding it!
@jeyeager Interesting. That makes sense. I am guessing gathering more info is probably more cycle intensive, right?
As an alternative, is there a way to add reverse name sorting? Then I could just name my files with a prefix 250627 year, month, day, and I could have my recently added files filter to the top.
It looks like the options are name descending or random via sorting off.
It uses a C++ standard call.
“The iteration order is unspecified, except that each directory entry is visited only once.”
Somewhat related question. Is there a way to mass delete files through the webui? I’ve found it annoying to click individual files, delete, and confirm.
nope. Probably easier to just move the SD card to a computer if you want to do any mass file operations.