From 05fbb3f05e97fb26a2740651df55f2d0aa83ce1a Mon Sep 17 00:00:00 2001 From: SebastianMC <23032356+SebastianMC@users.noreply.github.com> Date: Wed, 19 Apr 2023 17:06:03 +0200 Subject: [PATCH] #74 - Integration with Bookmarks core plugin and support for indirect drag & drop arrangement - minor code reformatting for easier diff & readability --- src/custom-sort/custom-sort.spec.ts | 7 +++++-- src/custom-sort/custom-sort.ts | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/custom-sort/custom-sort.spec.ts b/src/custom-sort/custom-sort.spec.ts index 45675c6..59e1a21 100644 --- a/src/custom-sort/custom-sort.spec.ts +++ b/src/custom-sort/custom-sort.spec.ts @@ -5,9 +5,12 @@ import { determineFolderDatesIfNeeded, determineSortingGroup, FolderItemForSorting, - matchGroupRegex, sorterByBookmarkOrder, sorterByMetadataField, + matchGroupRegex, + sorterByBookmarkOrder, + sorterByMetadataField, SorterFn, - getSorterFnFor, ProcessingContext + getSorterFnFor, + ProcessingContext } from './custom-sort'; import {CustomSortGroupType, CustomSortOrder, CustomSortSpec, RegExpSpec} from './custom-sort-types'; import {CompoundDashNumberNormalizerFn, CompoundDotRomanNumberNormalizerFn} from "./sorting-spec-processor"; diff --git a/src/custom-sort/custom-sort.ts b/src/custom-sort/custom-sort.ts index ad47cc4..9dfb7be 100644 --- a/src/custom-sort/custom-sort.ts +++ b/src/custom-sort/custom-sort.ts @@ -1,5 +1,15 @@ -import {FrontMatterCache, MetadataCache, Plugin, requireApiVersion, TAbstractFile, TFile, TFolder} from 'obsidian'; -import {determineStarredStatusOf, Starred_PluginInstance} from '../utils/StarredPluginSignature'; +import { + FrontMatterCache, + MetadataCache, + Plugin, + requireApiVersion, + TAbstractFile, + TFile, + TFolder} from 'obsidian'; +import { + determineStarredStatusOf, + Starred_PluginInstance +} from '../utils/StarredPluginSignature'; import { determineIconOf, ObsidianIconFolder_PluginInstance