diff --git a/package.json b/package.json index 6c0d19f..ac17f46 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "joplin-plugin-tag-and-notebook-links", - "version": "1.3.4", + "version": "1.3.6", "homepage":"https://discourse.joplinapp.org/t/go-to-tag-notebook-or-notes-via-links-and-by-highlighting-text-in-editor/12731", "scripts": { "dist": "webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive", "prepare": "npm run dist", "update": "npm install -g generator-joplin && yo joplin --update", - "distrun": "npm run dist && ~/.joplin/Joplin.AppImage --env dev" + "distrun": "npm run dist && ~/.joplin/Joplin.AppImage --env dev", + "distrun2": "npm run dist && ~/Downloads/Joplin-1.6.8.AppImage --env dev" }, "license": "MIT", "keywords": [ diff --git a/src/index.ts b/src/index.ts index 25db169..08fdca2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,7 @@ function escapeTitleText(text: string) { joplin.plugins.register({ onStart: async function () { + let dialog = await joplin.views.dialogs.create('wrongText') async function findTag(tagName) { console.log(tagName) let tagId = '' @@ -156,8 +157,8 @@ joplin.plugins.register({ } catch (err) { console.log(err) - let dialog = await joplin.views.dialogs.create('wrongText') - await joplin.views.dialogs.setHtml(dialog, "Seems like text is not an exact id,tag or folder
Or other error occured"); + //let dialog = await joplin.views.dialogs.create('wrongText') + await joplin.views.dialogs.setHtml(dialog, "Seems like text is not an exact note id, tag or folder
Include # or @ in front of tag or notebook
Or other error occured"); await joplin.views.dialogs.setButtons(dialog, [{ id: "ok" }]); await joplin.views.dialogs.open(dialog); } @@ -201,8 +202,8 @@ joplin.plugins.register({ } catch (err) { console.log(err) - let dialog = await joplin.views.dialogs.create('wrongText') - await joplin.views.dialogs.setHtml(dialog, "Seems like text is not an exact id,tag or folder
Or other error occured"); + + await joplin.views.dialogs.setHtml(dialog, "Seems like text is not an exact note id, tag or folder
Include # or @ in front of tag or notebook
Or other error occured"); await joplin.views.dialogs.setButtons(dialog, [{ id: "ok" }]); await joplin.views.dialogs.open(dialog); } diff --git a/src/manifest.json b/src/manifest.json index 89752fd..88eb56f 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 1, "id": "joplin.plugin.ambrt.goToItem", "app_min_version": "1.6", - "version": "1.3.4", + "version": "1.3.6", "name": "Create and go to #tags and @notebooks", "description": "Go to tag,notebook or note via links or via text", "author": "a",