Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting files based on regex - specific format requested in #173 #178

Closed
SebastianMC opened this issue Nov 16, 2024 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@SebastianMC
Copy link
Owner

SebastianMC commented Nov 16, 2024

See #173 for details.
Creating an explicit ticket for the low-hanging feature described in the Discussions section.

The idea is extracting dates for sorting from files named like:

  • 2024-W06 (02-05), where W06 is the week number to be ignored in sorting. The pattern like yyyy-W.. (mm-dd)
  • 2024-W06, where W06 is the week number to be translated into its Monday date for sorting. The pattern like yyyy-Www
  • because there is a difference between week numbering in ISO vs. U.S., both standards should be supported. Assuming the U.S. standard (more natural) to be the default, the pattern for ISO would be yyyy-WwwISO
    • U.S. standard - the 1st week of the year is the week containing 1st of January
    • ISO standard - the 1st week of the year is the week containing the 1st Thursday of the year. In other words, if 1st of January falls on Fri, Sat or Sun, these days belong to the last week of previous year only
@SebastianMC SebastianMC added the enhancement New feature or request label Nov 16, 2024
@SebastianMC SebastianMC self-assigned this Nov 16, 2024
SebastianMC added a commit that referenced this issue Jan 14, 2025
- more unit tests
#191 - added two obvious date formats yyyy-mm-dd and yyyy-dd-mm
SebastianMC added a commit that referenced this issue Jan 14, 2025
SebastianMC added a commit that referenced this issue Jan 14, 2025
…arlier than the first day of the week or later than the last day of the week

- syntax W1 W1- W1+
SebastianMC added a commit that referenced this issue Jan 14, 2025
…arlier than the first day of the week or later than the last day of the week

- syntax W1 W1- W1+
SebastianMC added a commit that referenced this issue Jan 14, 2025
…patterns

#178 - week-number based date extraction patterns for titles, incl. Www, Www- and Www+ specs
#191 - Explicit support for the common date formats of `yyyy-mm-dd` and `yyyy-dd-mm`
@SebastianMC
Copy link
Owner Author

Plugin release 3.1.1 comes with the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant