Skip to content

Commit

Permalink
impliedParents, prep 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Jun 20, 2021
1 parent 761fa64 commit a410d9d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 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.2.0",
"version": "0.2.1",
"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.2.0",
"version": "0.2.1",
"description": "Visualise the hierarchy of your vault using a breadcrumb trail",
"main": "main.js",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ class BreadcrumbsView extends ItemView {
parents.forEach((successor: string, i) => {
this.makeInternalLinkInEl(upDiv, successor, currFile, i + 1);
});
const impliedParents: string[] = gChildren.predecessors(currFile.basename) ?? [];
impliedParents.forEach((predecessor: string, i) => {
this.makeInternalLinkInEl(upDiv, predecessor, currFile, i + 1);
});

// currDiv
this.makeInternalLinkInEl(currDiv, currFile.basename, currFile);
Expand All @@ -285,6 +289,7 @@ class BreadcrumbsView extends ItemView {
siblings.forEach((successor: string, i) => {
this.makeInternalLinkInEl(rightDiv, successor, currFile, i + 1);
});


// bottomDiv
const children: string[] = gChildren.successors(currFile.basename) ?? [];
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.2.1": "0.12.5",
"0.2.0": "0.12.5",
"0.1.1": "0.12.5",
"0.1.0": "0.12.5",
Expand Down

0 comments on commit a410d9d

Please sign in to comment.