From 0840b0182659b7e260ec179a862f9d6386279080 Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Sat, 19 Jun 2021 15:34:08 +0200 Subject: [PATCH] Prep 0.0.8 --- manifest.json | 16 ++++++++-------- package.json | 2 +- src/main.ts | 4 +++- versions.json | 15 ++++++++------- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/manifest.json b/manifest.json index c9d22436..e07db913 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { - "id": "breadcrumbs", - "name": "Breadcrumbs", - "version": "0.0.7", - "minAppVersion": "0.12.5", - "description": "Visualise the hierarchy of your vault using a breadcrumb trail", - "author": "SkepticMystic", - "authorUrl": "https://github.com/SkepticMystic/breadcrumbs", - "isDesktopOnly": false + "id": "breadcrumbs", + "name": "Breadcrumbs", + "version": "0.0.8", + "minAppVersion": "0.12.5", + "description": "Visualise the hierarchy of your vault using a breadcrumb trail", + "author": "SkepticMystic", + "authorUrl": "https://github.com/SkepticMystic/breadcrumbs", + "isDesktopOnly": false } diff --git a/package.json b/package.json index 889c8c5f..aaed5313 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "breadcrumbs-plugin", - "version": "0.0.7", + "version": "0.0.8", "description": "Visualise the hierarchy of your vault using a breadcrumb trail", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 0fd4a47e..2827b127 100644 --- a/src/main.ts +++ b/src/main.ts @@ -105,7 +105,7 @@ class BreadcrumbsView extends ItemView { // General use const splitLinksRegex = new RegExp(/\[\[(.+?)\]\]/g); const dropHeaderOrAlias = new RegExp(/\[\[([^#|]+)\]\]/); - + function splitAndDrop(str: string | undefined): string[] | [] { if (str === undefined || str === "") { return []; @@ -145,6 +145,8 @@ class BreadcrumbsView extends ItemView { const childLinks: string | undefined = arr.content.match(getChildLinksRegex)?.[1]; + console.log({workingOn: arr.fileName}) + const [splitParentLinks, splitSiblingLinks, splitChildLinks] = [ splitAndDrop(parentLinks), splitAndDrop(siblingLinks), diff --git a/versions.json b/versions.json index f64869d8..c20dc5f2 100644 --- a/versions.json +++ b/versions.json @@ -1,9 +1,10 @@ { - "0.0.7": "0.12.5", - "0.0.6": "0.12.5", - "0.0.5": "0.12.5", - "0.0.4": "0.12.5", - "0.0.3": "0.12.5", - "0.0.2": "0.12.5", - "0.0.1": "0.12.5" + "0.0.8": "0.12.5", + "0.0.7": "0.12.5", + "0.0.6": "0.12.5", + "0.0.5": "0.12.5", + "0.0.4": "0.12.5", + "0.0.3": "0.12.5", + "0.0.2": "0.12.5", + "0.0.1": "0.12.5" }