From 659690302bfc16831b252c4fcd70992ad0c7f380 Mon Sep 17 00:00:00 2001 From: SeptemberHX Date: Fri, 26 Aug 2022 10:10:53 +0800 Subject: [PATCH] v0.3.0 --- README.md | 28 +++++++++++++++++++++++++--- package.json | 2 +- src/index.ts | 6 +++--- src/inlineTodo/index.ts | 3 +-- src/inlineTodo/panelHtml.ts | 6 +++--- src/manifest.json | 4 ++-- 6 files changed, 35 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 3a37f54..7f9d81c 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,34 @@ # Joplin Plugin Bundle -Plugins with panels. Some of the plugins come from other repo, and I modified it to show all the plugin panels in the same panel under different tabs. +Plugins in one panel. Some of the plugins come from other repo, and I modified them to show all the plugin panels in the same panel under different tabs. + +> **Why?** : Save my screen space by aggregating those plugins into one panel + +> **How?** : Copy & Paste code from existing plugins, and modify them at the code level. I cannot figure out a non-intrusive way to gather them together in one panel. Current plugins: * Outline (v1.3.1): https://github.com/cqroot/joplin-outline - -![](./screenshot/tab-panels.png) +* Inline Todo (v1.4.0): https://github.com/CalebJohn/joplin-inline-todo +* Daily Note: Idea from https://github.com/liamcain/obsidian-calendar-plugin + +Under development: + +* Note Link System (v0.8.0): https://github.com/ylc395/joplin-plugin-note-link-system +* Writing Marker [Planned]: Help to mark text with a label and show them in the sidebar ordered by marker categories: + * Recheck: text needs to be rechecked + * Rewrite: text needs to be rewritten + * ... (It depends on what I need to finish my papers) +* Aggregated Search [Planned]: Allow search multiple resources and present the results in one panel. + > I treat Joplin as my top-level knowledge base while there exist many other tools behind Joplin. Joplin is not a good choice for document management, so I need to search other tools. + * Joplin Notes + * ReadCube Papers: https://www.papersapp.com/ + * ArchiveBox: https://github.com/ArchiveBox/ArchiveBox + * ... ? + +![Imgur](https://i.imgur.com/yfcsNDb.gif) + +![Imgur](https://i.imgur.com/h7fP8iq.gif) ## Building the plugin diff --git a/package.json b/package.json index eec97ab..1d2761e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "joplin-plugin-bundle", - "version": "1.0.0", + "version": "0.3.0", "scripts": { "dist": "webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive", "prepare": "npm run dist", diff --git a/src/index.ts b/src/index.ts index 573773d..346f119 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,9 +15,9 @@ joplin.plugins.register({ outlinePlugin, todolistPlugin, dailyNotePlugin, - writingMarkerPlugin, - noteLinkPlugin, - aggregateSearchPlugin + // writingMarkerPlugin, + // noteLinkPlugin, + // aggregateSearchPlugin ]; await sidebar.init(plugins); diff --git a/src/inlineTodo/index.ts b/src/inlineTodo/index.ts index ae8e171..99fecc1 100644 --- a/src/inlineTodo/index.ts +++ b/src/inlineTodo/index.ts @@ -12,7 +12,7 @@ class TodolistPlugin extends SidebarPlugin { sidebar: Sidebars; summary_map: Summary; builder: SummaryBuilder; - todoTypeClicked: number = 0; + todoTypeClicked: number = 3; refresh = debounce(async () => { await this.builder.search_in_all(); @@ -96,7 +96,6 @@ class TodolistPlugin extends SidebarPlugin { private async update_summary(summary_map: Summary, settings: Settings) { this.summary_map = summary_map; - console.log(summary_map); await this.sidebar.updateHtml(this.id, await panelHtml(this.summary_map, this.todoTypeClicked)); } } diff --git a/src/inlineTodo/panelHtml.ts b/src/inlineTodo/panelHtml.ts index 4444a35..4305df7 100644 --- a/src/inlineTodo/panelHtml.ts +++ b/src/inlineTodo/panelHtml.ts @@ -64,10 +64,10 @@ export default async function panelHtml(summary: Summary, activedTab: number) { result += `