Skip to content

Sorting Both Files and Folders by Date in Filename #200

Answered by SebastianMC
JSG-1 asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed there is such a limitation in the pattern matching!
So, for now there is no other way than to explicitly list the day names like:

  # Sort by ending date for files and folders
  target-folder: /*
  /+ ... \[yyyy-mm-dd] Mon
  /+ ... \[yyyy-mm-dd] Tue
  /+ ... \[yyyy-mm-dd] Wed
  /+ ... \[yyyy-mm-dd] Thu
  /+ ... \[yyyy-mm-dd] Fri
  /+ ... \[yyyy-mm-dd] Sat
  /+ ... \[yyyy-mm-dd] Sun
    > a-z

Long term I can introduce yet another date pattern to cover this specific scenario

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SebastianMC
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Q & A An issue which turned into Q & A
2 participants
Converted from issue

This discussion was converted from issue #199 on March 14, 2025 15:56.