Commit Graph

121 Commits

Author SHA1 Message Date
SebastianMC 44631bee4f Added support for more formats of dates extraction from titles
- \[dd-mm-yyyy] and \[mm-dd-yyyy]
- main README.md updated accordingly
2025-01-23 23:04:14 +01:00
SebastianMC 6e7b2e1b6a #178 - explicit support for telling if the Www date should be same, earlier than the first day of the week or later than the last day of the week
- syntax W1 W1- W1+
2025-01-14 21:48:52 +01:00
SebastianMC f7c69b18f9 #178 - explicit support for telling if the Www date should be same, earlier than the first day of the week or later than the last day of the week
- syntax W1 W1- W1+
2025-01-14 20:57:51 +01:00
SebastianMC 2204982485 #178, #191 - improved regexps for dates matching - e.g. \d{1,2} changes to [0-3]*[0-9] 2025-01-14 17:57:17 +01:00
SebastianMC 4eb5d7c120 Imports optimized in sorting-spec-processor.ts 2025-01-14 17:41:06 +01:00
SebastianMC b142d1951e #178 - week-number based date extraction patterns for titles
- more unit tests
#191 - added two obvious date formats yyyy-mm-dd and yyyy-dd-mm
2025-01-14 17:37:02 +01:00
SebastianMC 975f6ee26e #178 - week-number based date extraction patterns for titles 2025-01-14 13:51:34 +01:00
SebastianMC ae0d2f5280 #188 - Group of changes addressing compatibility issued with Obsidian 1.7.2 and newer 2025-01-06 02:25:41 +01:00
SebastianMC 6a47c51182 Merge branch '171-poc-metadata-value-extractors-idea' into nov-2024-refactoring-regroup-sorting-structures
# Conflicts:
#	manifest.json
#	src/test/unit/sorting-spec-processor.spec.ts
2025-01-03 19:43:40 +01:00
SebastianMC f293dff088 Merge branch 'master' into 171-poc-metadata-value-extractors-idea 2025-01-03 19:33:21 +01:00
SebastianMC 51ea92f0e8 #185 - drop backward compatibility
- removed legacy code to handle backward compatibility with <0.15.0, <1.2.0, <1.4.11 and <1.6.0
2025-01-03 13:24:13 +01:00
SebastianMC c3008946cc #185 - drop backward compatibility
- removed integration with Starred code plugin (which hasn't already been there for months)
2025-01-03 13:24:12 +01:00
SebastianMC 55fbae57da Merge branch 'master' into nov-2024-refactoring-regroup-sorting-structures
# Conflicts:
#	manifest.json
#	src/custom-sort/matchers.ts
#	src/test/unit/sorting-spec-processor.spec.ts
2025-01-02 15:06:57 +01:00
SebastianMC c5e463b44c Merge branch 'master' into 171-poc-metadata-value-extractors-idea
# Conflicts:
#	manifest.json
#	src/custom-sort/matchers.ts
#	src/test/unit/sorting-spec-processor.spec.ts
2025-01-02 14:59:37 +01:00
SebastianMC a0bd47b210 #184 - Sort notes in Mmm-dd-yyyy format 2025-01-02 14:04:38 +01:00
SebastianMC eeb581120d Major refactoring of sorting structures. Refactored the code. Unit tests not touched, broken. 2024-11-06 11:23:23 +01:00
SebastianMC 9e2e12046d #171 - a PoC of the idea of metadata value extractors. Extended syntax, unit tests, error handling 2024-11-05 20:12:47 +01:00
SebastianMC f210a412d3 #171 - a PoC of the idea of metadata value extractors. Working version, missing errors detection for new scenarios 2024-11-04 14:30:49 +01:00
SebastianMC d82a80c063 #171 - a PoC of the idea of metadata value extractors. Completed the sorting spec parser part. 2024-11-03 23:16:57 +01:00
SebastianMC 42a5f1feb2 #171 - started creation of a PoC of the idea of metadata value extractors. At a glance a low hanging fruit turned out to be far too complex to be worth it. 2024-11-03 22:56:55 +01:00
SebastianMC efe8e13267 #156 - improved support for index-note-based folder notes - fresh head review
- typos correction
- comment updates for clarity
2024-09-05 20:01:11 +02:00
SebastianMC 60a60dfb72 #156 - improved support for index-note-based folder notes
- implementation completed, basic tests done
- needs code review with a fresh head
- needs more regression tests of affected sorting methods
2024-09-02 00:11:29 +02:00
SebastianMC 605d5026a6 #156 - improved support for index-note-based folder notes: PUT ON HOLD
- turned out to be not so trivial with one challenging place
- PUT ON HOLD
- added inline annotations with !!! (intentionally breaking the TS syntax)
2024-09-01 17:07:56 +02:00
SebastianMC 16b50c3c20 #150 - Sort notes in dd-Mmm-yyyy format
- completed, tested.
2024-07-10 12:06:01 +02:00
SebastianMC 92a33215cc #150 - Sort notes in dd-Mmm-yyyy format
- additional unit tests
- fixes detected by unit tests

Next step: manual local testing of real scenarios
2024-07-08 23:49:24 +02:00
SebastianMC a7b807d5f5 #150 - Sort notes in dd-Mmm-yyyy format 2024-07-08 21:36:26 +02:00
SebastianMC 4ab21d6ff5 #145 - refactored the plugin integration point and sorting function invocation and wrapper(s) to work under Obsidian 1.6.0 (which introduced significant refactoring)
Remains to do:
- polish the code to remove duplication in main.js
- full testing under 1.6.0
- regression tests under latest 1.5.x (the code is backward compatible)
2024-05-13 20:14:03 +02:00
SebastianMC 2af53aa692 Removed debug console outputs 2024-05-13 14:51:05 +02:00
SebastianMC 107c32e461 The global `app` object becomes deprecated in Obsidian 1.6.0
- switched code to use the DI approach - the handle to `app` is handed over to the Plugin at initializaion. Keep in and supply down the execution chain, as needed
2024-05-13 14:36:13 +02:00
SebastianMC 8d9ccdd516 Version bump before release 2024-02-20 18:27:19 +01:00
SebastianMC 702fe9e027 Extracted and extended a basic integration test 2024-02-19 10:40:38 +01:00
SebastianMC 2c3de3d609 Reorganised unit tests locations - moved all of them to a dedicated folder 2024-02-19 08:59:17 +01:00
SebastianMC ba54e63a48 #132 - new orders: `advanced recursive modified` and `advanced recursive created` 2024-02-19 08:53:43 +01:00
SebastianMC 5ac915547c Introduced alias sorting name `unicode-charcode` for the `vsc-unicode`, for clarity for non-VSC users. 2024-02-13 16:30:54 +01:00
SebastianMC 424e56c962 Removed support for the experimental sorting methods: `aaa-z` and `a-zzz`. They weren't working correctly. 2024-02-13 16:24:15 +01:00
SebastianMC 53b5895e81 Bugfix for #131
Obsidian introduced breaking changes around File Explorer JS structure which prevented this custom-sort plugin from working.
- fix backward compatible with versions earlier that 1.5.4
- version bump before release
2024-02-09 14:24:04 +01:00
SebastianMC 9f4008c2a2 Revert "Bugfix for #131"
This reverts commit 238c027903.
2024-02-09 14:03:48 +01:00
SebastianMC 238c027903 Bugfix for #131
Obsidian introduced breaking changes around File Explorer JS structure which prevented this custom-sort plugin from working.
2024-02-07 23:34:27 +01:00
SebastianMC a2a808e78b Two experimental features + version bump before release
- `aaa-z` and `a-zzz` sort orders (uppercase first, alphanumeric order and lowercase  first, alphanumeric)
- `vsc-unicode` sort order, which is equivalent to what VS Code refers to as 'unicode' sorting (which name is arbitrary and confusing, yet familar to VS Code users)
2024-01-27 23:25:59 +01:00
SebastianMC 8d5ca13acb #127 - folder and file with the same (base) name advanced sorting support:
- bugfix for `files-first` or `folders-first` sorting methods
2024-01-26 00:34:24 +01:00
SebastianMC 9cf01e9591 Merge branch 'master' into 127-folder-and-file-with-the-same-basename-sorting
# Conflicts:
#	src/custom-sort/sorting-spec-processor.spec.ts
2024-01-25 21:23:54 +01:00
SebastianMC e0208e2793 #126 - Allow escaping the . (dot) character to remove ambiguity with the ... wildcard
- simplistic implementation - use `./...` syntax to remove ambiguity of `....`
2024-01-25 20:54:15 +01:00
SebastianMC 958a9b017c #127 - folder and file with the same (base) name advanced sorting support:
- the last-resort default fallback sorting method (which was alphabetical) is extended to give preference to files. In other words, if all the specified sorting levels don't sort two items, the file goes first (if the other item is a folder)
- added explicit syntax to specify `files-first` or `folders-first`
2024-01-25 18:10:36 +01:00
SebastianMC f5fafc184f #126 - Allow escaping the . (dot) character to remove ambiguity with the ... wildcard
- naive implementation, the escape lexeme is \\DOT (problematic long term because of overlaps)
- naive implementation, the escape is transformed to simple-regexp (technically this is not needed at all)
2024-01-25 17:09:30 +01:00
SebastianMC 11d6623191 #123 - sorting by file basename by default (instead of fullname with ext)
- new syntax `a-z.` and `true a-z.` introduced to allow explicitly sorting by filename with ext
2024-01-25 10:47:05 +01:00
SebastianMC 3000da4edc Removed the unfinished partial implementation of overrideTitle functionality 2024-01-22 19:54:15 +01:00
SebastianMC b5a9684f56 Removed console.log statements which slipped in 2.1.1
Version bump before release
2023-11-24 18:59:15 +01:00
SebastianMC 88327f6314 #115 - Add inline regex support to match capital letters and lowercase letters explicitly 2023-11-24 18:52:26 +01:00
SebastianMC b4d55c8b70 #111 - changed the sorting behavior for items with undefined attributes
- sorting by bookmarks, item w/o bookmark pushed to the bottom in both: asc and desc orders
- sorting by metadata, item w/o metadata pushed to the bottom in both, asc and desc orders
- sorting by creation or modification date, advanced mode: empty folders (or folders having only folder children) are pushed to the bottom, regardless of asc or desc order
2023-11-13 15:48:27 +01:00
SebastianMC b854ce14ce #74 - Integration with Bookmarks core plugin and support for indirect drag & drop arrangement
- functionality completed!!!
- increased coverage of the new functionality with unit tests
- more unit tests possible
- basic manual tests done
- next step: real-life usage tests
2023-10-21 00:40:38 +02:00