From 8bafa91a47c499288f8ba944dc0a66169fd4173b Mon Sep 17 00:00:00 2001 From: Don Sudduth Date: Sat, 20 Apr 2024 14:21:50 -0500 Subject: [PATCH] version 1.1.2 additions --- CHANGELOG.md | 8 ++++++-- package.json | 2 +- src/extractParagraphs.ts | 8 +++++++- src/locales/de_DE.json | 2 ++ src/locales/en_US.json | 2 ++ src/manifest.json | 2 +- src/settings.ts | 2 +- 7 files changed, 20 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15963b7..6ed5434 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ # Changelog -## not released +## v1.1.2 (2024-04-19) -## v1.1.0 (2024-03-09) +- Changed extractor dialog label from 'name' to 'keyword' +- Added option for combined, extracted paragraphs to title note with the tag keyword - similar to Logseq block linked references +## v1.1.0/1.1.1 (2024-03-09) + +- v1.1.1 no code change - just a redeployment fix - Added a dialog box to set the extraction keyword and tag - Added selection to extract at the folder level vs selecting individual notes diff --git a/package.json b/package.json index 037b9e2..143ea73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "joplin-plugin-paragraph-extractor", - "version": "1.1.0", + "version": "1.1.2", "scripts": { "prepare": "npm run dist && husky install", "dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive", diff --git a/src/extractParagraphs.ts b/src/extractParagraphs.ts index 67fe1f4..a0a6eec 100644 --- a/src/extractParagraphs.ts +++ b/src/extractParagraphs.ts @@ -27,7 +27,7 @@ namespace extractParagraphs { prefix + `"/>
- Name:

@@ -82,7 +82,12 @@ namespace extractParagraphs { export async function extract() { // Paragraph extraction dialog + const dialogs = joplin.views.dialogs; + const tN = await joplin.settings.value("tagName"); + const tP = await joplin.settings.value("tagPrefix"); + await extractParagraphs.setform(tP, tN); + const extract = await dialogs.open(phandle); if (extract.id === "cancel") { return; @@ -304,6 +309,7 @@ namespace extractParagraphs { newTitle = titles[titles.length - 1]; } else if (titleOption == "custom") { newTitle = await joplin.settings.value("combinedNoteTitleCustom"); + newTitle = newTitle.replace("{{TAGKEYWORD}}", tagName); newTitle = newTitle.replace("{{FIRSTTITLE}}", titles[0]); newTitle = newTitle.replace("{{LASTTITLE}}", titles[titles.length - 1]); newTitle = newTitle.replace("{{ALLTITLE}}", titles.join(", ")); diff --git a/src/locales/de_DE.json b/src/locales/de_DE.json index 6d17c7a..7498f12 100644 --- a/src/locales/de_DE.json +++ b/src/locales/de_DE.json @@ -7,6 +7,8 @@ "settings.ignoreCaseDescription": "Alle Notizen werden nach dem Schlüsselwort in beliebiger Kombination aus Groß- und Kleinschreibung durchsucht", "settings.includeHeaders": "Fügen Sie die Überschrift des extrahierten Absatzes ein", "settings.includeHeadersDescription": "Der H1-, H2- usw. Header ist in der zugrunde liegenden Extraktion enthalten (wenn ein Schlüsselwort im Header enthalten ist, wird es ignoriert).", + "settings.includeTaggedNotes": "Fügen Sie den gesamten Text aus Notizen mit dem Tag „Schlüsselwort“ ein", + "settings.includeTaggedNotesDescription": "Alle Notizinhalte, die über ein Joplin-Tag verfügen, das mit dem Schlüsselwort übereinstimmt, werden extrahiert", "settings.tagName": "Standard- oder zuletzt verwendetes Absatz-Tag oder Schlüsselwort", "settings.tagNameDescription": "Standardmäßiger oder zuletzt verwendeter Schlüsselwort- oder Hashtag-Text (ohne Präfix), der in den Absätzen verwendet wird.", "settings.tagPrefix": "Standard- oder zuletzt verwendetes Tag-Präfixzeichen", diff --git a/src/locales/en_US.json b/src/locales/en_US.json index 6c03b0e..e020bc9 100644 --- a/src/locales/en_US.json +++ b/src/locales/en_US.json @@ -7,6 +7,8 @@ "settings.ignoreCaseDescription": "All notes will be searched for the keyword in any upper or lower case mix", "settings.includeHeaders": "Include the header of the paragraph extracted", "settings.includeHeadersDescription": "The H1, H2, etc header will be included with the underlying extraction (if keyword included in header, this is ignored)", + "settings.includeTaggedNotes": "Include all text from notes with tag keyword", + "settings.includeTaggedNotesDescription": "All note content that has a Joplin tag that matches the keyword will be extracted", "settings.tagName": "Default or Last Used Paragraph Tag or Keyword", "settings.tagNameDescription": "Default or last used keyword or hashtag text (without prefix) used within the paragraphs.", "settings.tagPrefix": "Default or Last Used Tag Prefix Character", diff --git a/src/manifest.json b/src/manifest.json index 76e3b8e..d60de0f 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 1, "id": "io.github.djsudduth.paragraph-extractor", "app_min_version": "1.8.1", - "version": "1.0.0", + "version": "1.1.2", "name": "Paragraph Extractor", "description": "Extract specific paragraphs out of Joplin notes using keywords, hashtags or custom tags", "author": "djsudduth", diff --git a/src/settings.ts b/src/settings.ts index b312fb9..db76b83 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -96,7 +96,7 @@ export namespace settings { label: i18n.__("settings.combinedNoteTitleCustom"), description: i18n.__( "settings.combinedNoteTitleCustomDescription", - "{{FIRSTTITLE}}, {{LASTTITLE}}, {{ALLTITLE}}, {{DATE}}" + "{{TAGKEYWORD}}, {{FIRSTTITLE}}, {{LASTTITLE}}, {{ALLTITLE}}, {{DATE}}" ), }, });