Disclaimer
Is this project open source? Yes
Is this project completely free? Yes
Is this project made with AI beyond the author’s ability to comprehend how it works? No
To group by a week’s range (e.g., Sun, Aug 30th - Sat, Sep 5), and to sort by these weeks, lead the range with the year and month (e.g., September of 2026 = 2026-09) with a format like the following Bases formula:
(file.mtime.date() + ((6 - Number(file.mtime.format("e"))) + "d").toString()).format("(YYYY-MM) ")
+ (file.mtime.date() - ((Number(file.mtime.format("e"))) + "d").toString()).format("ddd, MMM DD")
+ " - "
+ (file.mtime.date() + ((6 - Number(file.mtime.format("e"))) + "d").toString()).format("ddd, MMM DD")