Skip to content

Commit

Permalink
Further fixes for kanban helper not finding files in folders #23
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jun 10, 2021
1 parent d86ee52 commit 5284b8e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "metaedit",
"name": "MetaEdit",
"version": "1.6.10",
"version": "1.6.11",
"minAppVersion": "0.12.0",
"description": "MetaEdit helps you manage your metadata.",
"author": "Christian B. B. Houmann",
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": "metaedit",
"version": "1.6.10",
"version": "1.6.11",
"description": "MetaEdit helps you manage your metadata.",
"main": "main.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ export default class MetaEdit extends Plugin {
const linkFile: TFile = markdownFiles.find(f => f.path.includes(`${link.link}.md`));

if (linkFile instanceof TFile) {
const heading = this.getTaskHeading(link.link, fileContent);
const headingAttempt1 = this.getTaskHeading(linkFile.path.replace('.md', ''), fileContent);
const headingAttempt2 = this.getTaskHeading(link.link, fileContent);
const heading = headingAttempt1 || headingAttempt2;

if (!heading) {
this.logError("could not open linked file (KanbanHelper)");
return;
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"1.6.10": "0.12.0"
"1.6.11": "0.12.0"
}

0 comments on commit 5284b8e

Please sign in to comment.