Commit Graph

351 Commits

Author SHA1 Message Date
SebastianMC 2407520923
Update README.md
According to suggestions by [TheOneLight](https://github.com/TheOneLight) in [this discussion](https://github.com/SebastianMC/obsidian-custom-sort/discussions/95#discussioncomment-7048584)
- an example of Basic Scenario 2
- link to videos on editing multi-line properties
2023-09-19 18:57:36 +02:00
SebastianMC 3c0cc70b03 #74 - Integration with Bookmarks core plugin and support for indirect drag & drop arrangement
- adjusted behavior of by-bookmark-comparator to adhere to the multi-level sorting support implemented in #89 and merged recently to this branch. Basically, each comparator is responsible only for its own comparison and should no fallback into other default comparisons - instead it should return 0, which indicates item which are equal from the perspective of the comparator
2023-09-19 15:50:42 +02:00
SebastianMC 527a03b050 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/custom-sort/custom-sort.spec.ts
#	src/custom-sort/custom-sort.ts
2023-09-19 15:43:09 +02:00
SebastianMC c5cd18f498 #89 - Support for multi-level sorting
- full runtime handling (application) of multi-level sorting
- full unit tests coverage of new functions
- metadata-based sorting extended to be applicable at each of sorting level, possibly with different metadata + full unit tests coverage
- having the run-time part ready, the missing part is the extending the sorting-spec-processor.ts
2023-09-19 15:34:39 +02:00
SebastianMC 9f537f34c7 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin 2023-09-18 14:17:19 +02:00
SebastianMC 24af493734 Support for implicit sorting specs - refined priorities of implicit vs explicit rules
- new unit tests cover the changes
2023-09-18 14:04:33 +02:00
SebastianMC a3190cff62 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/custom-sort/custom-sort.ts
2023-08-29 00:21:47 +02:00
SebastianMC 76ee3dfa62 #89 - Support for multi-level sorting
- fix in comparator by metadata to support multi-level sorting
- update of relevant existing unit tests
2023-08-29 00:17:58 +02:00
SebastianMC f72c4d61da #89 - Support for multi-level sorting
- removed unused imports
2023-08-29 00:12:06 +02:00
SebastianMC b809d73d54 Adjustment of comparator by bookmark order to support multi-level sorting 2023-08-29 00:09:07 +02:00
SebastianMC 85b0e722d2 Adjustment of comparator by bookmark order to support multi-level sorting 2023-08-29 00:07:45 +02:00
SebastianMC 726b3089b7 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/custom-sort/custom-sort.ts
2023-08-29 00:06:32 +02:00
SebastianMC 8ea694fcf4 #89 - Support for multi-level sorting
- added run-time execution logic for multi-level sorting
- modified the sorter-by-metadata (required change for multi-level sorting)
- adjusted unit tests
- NO NEW UNIT TESTS
- no syntax added to support specification of multi-level (remains to be done)
2023-08-28 23:41:23 +02:00
SebastianMC 879c11b62f Introduction of 'overrideTitle' property for sorting group:
- sorting engine updated
- no dedicated syntax introduced, new feature used only in unit tests
- replaces the simplistic support for secondary sorting level for regexps
- unit tests
2023-08-25 19:10:38 +02:00
SebastianMC 2670cdb613 Fix for head tail regex match logic, when both regexp produce matching groups
- unit tests
2023-08-25 14:43:43 +02:00
SebastianMC 15c3ce833a Post-merge cleanup (auto-merge failures) 2023-08-24 11:30:15 +02:00
SebastianMC 947e384705 Post-merge cleanup (auto-merge failures) 2023-08-24 11:29:47 +02:00
SebastianMC eed3a65f08 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/custom-sort/custom-sort.spec.ts
#	src/custom-sort/custom-sort.ts
2023-08-24 11:25:41 +02:00
SebastianMC 3cc58f69b9 Refactoring of internal processing context plus support for implicit sorting specs
- !!! NO UNIT TESTS ADDED - remember to do it
2023-08-24 11:18:22 +02:00
SebastianMC bea70ea90e Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/custom-sort/custom-sort.spec.ts
#	src/custom-sort/custom-sort.ts
#	src/main.ts
2023-08-24 01:16:23 +02:00
SebastianMC 45f5918598 Major improvement: added support for determining and applying sort order currently selected in Obsidian UI
- the meaning of CustomSortOrder.standardObsidian changes from a fixed one to what is actually selected in Obsidian UI
- the CustomSortOrder.standardObsidian can be applied at a folder level (as the default for folder) and at a group level (this is a major addition)
- added a mapping of Obsidian UI sorting methods onto internal plugin sorting methods, plus addition of the Obsidian UI logic to push folders to the top unconditionally
- !!! NO NEW UNIT TESTS FOR THIS FEATURE - must add later
- not tested manually, as the commits extraction and pushing is done as part of #88 github issue
2023-08-24 01:11:22 +02:00
SebastianMC 16f5d61818 Merge branch 'master' into 88-technical-aug-23-refactorings 2023-08-24 00:46:11 +02:00
SebastianMC 7a36f46fa8 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/custom-sort/custom-sort.spec.ts
#	src/custom-sort/custom-sort.ts
2023-08-24 00:40:30 +02:00
SebastianMC 24355ff0a4 Bugfix in sorterByMetadataField - reverse order working correctly now
- fix in unit tests
2023-08-24 00:35:19 +02:00
SebastianMC b1f36156d1 Bugfix in sorterByMetadataField - reverse order working correctly now
- new unit tests
2023-08-24 00:28:24 +02:00
SebastianMC f48bc4d11f Simplification of this.app ==> app - this is a globally exposed object 2023-08-24 00:16:10 +02:00
SebastianMC 949b58b5ff Bugfix in sorterByMetadataField - reverse order working correctly now
- new unit tests
2023-08-24 00:15:32 +02:00
SebastianMC c125fa78e3 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/custom-sort/custom-sort.spec.ts
2023-08-24 00:13:09 +02:00
SebastianMC 24b37eb87c Bugfix in sorterByMetadataField - reverse order working correctly now
- new unit tests
2023-08-24 00:09:04 +02:00
SebastianMC 74ac675f27 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin 2023-08-23 23:50:05 +02:00
SebastianMC e811d6d7e4 Simplification of this.app ==> app - this is a globally exposed object 2023-08-23 23:47:41 +02:00
SebastianMC 2d34813a3f Simplification of this.app ==> app - this is a globally exposed object 2023-08-23 23:45:30 +02:00
SebastianMC 9005a6b3b7 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/main.ts
2023-08-23 19:38:40 +02:00
SebastianMC b752662d82 Simplification of this.app ==> app - this is a globally exposed object 2023-08-23 18:55:29 +02:00
SebastianMC c3090229a9 Snapshot commit before extraction of some refactorings and minor fixed into a separate branch 2023-08-23 18:08:02 +02:00
Lishid 7112f01bc6
Update README.md 2023-07-25 15:17:26 -04:00
SebastianMC 140f7a69b1 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin 2023-07-17 20:18:36 +02:00
Johannes Theiner e8f03522bc
Adapt to plugin guidelines (#65)
- remove header in settings
- remove logging of changed settings value
2023-07-17 12:36:25 -04:00
Erica Xu 9be2b5d748
Update manifest.json 2023-07-11 11:37:36 -04:00
SebastianMC 150b864cae Version bump before release
- fixed the mess in manifest, package and version jsons :-|
2023-07-01 22:28:00 +02:00
SebastianMC 5a8d375d72 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin 2023-06-30 19:41:43 +02:00
SebastianMC 8e6ed50d9c Fixed JSON syntax error in versions.json 2023-06-30 19:34:32 +02:00
SebastianMC 5304c9d601 Merge branch 'master' into 74-integration-with-bookmarks-core-plugin
# Conflicts:
#	src/custom-sort/custom-sort.ts
2023-06-30 19:30:59 +02:00
SebastianMC 4cd512799c Version bump before release 2023-06-30 19:08:17 +02:00
SebastianMC 037ada5a88
79 foldername variable support (#81)
* #79 - parent-folder-name variable support

- introductions of simplistic macros / templating support
- initially only one macro supported: {:%parent-folder-name%:}
  - macro expanded only for plain-text matching rules, ignored for regexp-based rules
  - for children of the root folder the macro is ignored
- unit tests for the new macros.ts
- unit tests for the testable part of updated custom-sort.ts
2023-06-30 19:05:29 +02:00
SebastianMC 5900452e8a Merge remote-tracking branch 'upstream/master' into merge-upstream-1
# Conflicts:
#	README.md
2023-06-28 19:38:41 +02:00
SebastianMC d32e71f064 #74 - Integration with Bookmarks core plugin and support for indirect drag & drop arrangement
- singificants refactoring, compilable, basic functions work
2023-05-05 20:49:08 +02:00
Alexander Pozdneev 2aee08d3d5
Remove old info about styles.css (#56) 2023-05-01 14:48:46 -04:00
SebastianMC 62a91db3de
new todos 2023-04-27 00:11:24 +02:00
SebastianMC be80efa314 #74 - Integration with Bookmarks core plugin and support for indirect drag & drop arrangement
- handler for 'changed' event of the vault to reflect files/folders locations change in the bookmarks automatically, whenever applicable
2023-04-25 13:12:20 +02:00