-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display: Sort by date and/or reverse order for vsdlist menu.
This adds two config directives for sorting vsdlist (sd card file list) on a LCD connected to the printer (dumb character display). Add "sort_by_date: True" to a vsdlist menu config to have the files sorted by date chronologically. If not present or "False" then files will be sorted alphabetically just as before. Add "sort_reverse: True" to a vsdlist menu config to have the files sorted in reverse order (descending). If not present or "False" then the files will be sorted in ascending order just as before. By setting both "sort_by_date" and "sort_reverse" to "True" files will be sorted in reverse chronological order (newest first). Please note the file timestamp (date) is taken from the filesystem and some filesystems may have broken timestamps on subsequent writes. Signed-off-by: Dragos Galalae <gala 'underline' dragos 'at' yahoo 'dot' com>
- Loading branch information
Dragos GALALAE
committed
Nov 30, 2024
1 parent
a18c74b
commit 7794d33
Showing
3 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters