Skip to content

Commit

Permalink
Prep 0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Jun 25, 2021
1 parent 091e84e commit b4d15f9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "breadcrumbs",
"name": "Breadcrumbs",
"version": "0.3.7",
"version": "0.3.8",
"minAppVersion": "0.12.5",
"description": "Visualise the hierarchy of your vault using a breadcrumb trail",
"author": "SkepticMystic",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "breadcrumbs-plugin",
"version": "0.3.7",
"version": "0.3.8",
"description": "Visualise the hierarchy of your vault using a breadcrumb trail",
"main": "main.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/List.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
}
</script>

<details open>
<details open class="breadcrumbs-details">
<summary>{fieldName}</summary>
{#if realItems.length}
{#if settings.showRelationType}
<h5 class="header">Real</h5>
<h5 class="breadcrumbs-header">Real</h5>
{/if}

<ol class="markdown-preview-view">
Expand All @@ -52,7 +52,7 @@

{#if impliedItems.length}
{#if settings.showRelationType}
<h5 class="header">Implied</h5>
<h5 class="breadcrumbs-header">Implied</h5>
{/if}

<ol class="markdown-preview-view">
Expand All @@ -76,7 +76,7 @@
margin: 3px;
color: var(--text-title-h3);
}
h5.header {
h5.breadcrumbs-header {
margin: 3px;
color: var(--text-title-h5);
}
Expand Down
11 changes: 5 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,7 @@ export default class BreadcrumbsPlugin extends Plugin {
return gParents;
}

getBreadcrumbs(
g: Graph,
userTo: string = this.settings.indexNote
): string[] {
getBreadcrumbs(g: Graph, userTo: string = this.settings.indexNote): string[] {
const from = this.app.workspace.getActiveFile().basename;
const paths = graphlib.alg.dijkstra(g, from);
let step = userTo;
Expand All @@ -183,13 +180,15 @@ export default class BreadcrumbsPlugin extends Plugin {
resolvedClass(
toFile: string,
currFile: TFile
): "internal-link is-unresolved breadcrumbs-link" | "internal-link breadcrumbs-link" {
):
| "internal-link is-unresolved breadcrumbs-link"
| "internal-link breadcrumbs-link" {
return this.app.metadataCache.unresolvedLinks[currFile.path][toFile] > 0
? "internal-link is-unresolved breadcrumbs-link"
: "internal-link breadcrumbs-link";
}

async drawTrail() {
async drawTrail(): Promise<void> {
const gParents = await this.initParentGraph();
const breadcrumbs = this.getBreadcrumbs(gParents);
const currFile = this.app.workspace.getActiveFile();
Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"0.3.8": "0.12.5",
"0.3.7": "0.12.5",
"0.3.6": "0.12.5",
"0.3.5": "0.12.5",
Expand Down

0 comments on commit b4d15f9

Please sign in to comment.