Sorting files based on regex #173
-
Hello, I've browsed the issues posted and docs, but I'm not sure if the plugin has the capability I'm looking for. I have rearranged some of my daily and weekly notes into the same folder. They have a different naming structure, but I'd like to sort them based on the date - i.e., a weekly note would be placed in order based on the first day of the week. My files already have these details in the names, like so:
The first files here are daily notes, and the later are weekly notes. I'd like to end up with the following order:
Is there a way to apply a sort based on the final dates, or only numerical values in these file names? This seems close to the suffix-based sorting, except the closing parentheses on my weekly note throws it off. I did confirm a workaround as suggested here in a somewhat similar question to use metadata with the following sort: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @andrew-m-j the sorting order which you think about would require deriving the date from the syntax Please confirm the pattern to add, I guess the below would be ok: There is an oncoming release of the plugin and I can add the support for such a pattern, low effort. At the same time the release date is unknown for now, due to time constraints on my side. [Update]: created explicit ticket #178 not to forget to include this feature when the time comes |
Beta Was this translation helpful? Give feedback.
-
Hi @andrew-m-j plugin release 3.1.1 comes with the requested feature. |
Beta Was this translation helpful? Give feedback.
Hi @andrew-m-j
plugin release 3.1.1 comes with the requested feature.