joplin-plugin-tag-navigator 1.2.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![DOI](https://zenodo.org/badge/753598497.svg)](https://zenodo.org/doi/10.5281/zenodo.10701718) ![downloads](https://img.shields.io/badge/dynamic/json?color=brightgreen&label=downloads&query=%24.totalDownloads&url=https%3A%2F%2Fjoplin-plugin-downloads.vercel.app%2Fapi%3Fplugin%3Djoplin.plugin.alondmnt.tag-navigator)
4
4
 
5
- Type inline #tags in the note editor. View your tagged paragraphs and tasks / TODOs in an advanced search panel, or in a generated note. Convert inline and Obsidian tags into Joplin tags, and vice versa.
5
+ Type inline #tags or front matter in the note editor. View your tagged paragraphs and tasks / TODOs in a search panel, or in a generated note. Build a table view / database from notes and tags. Convert between Obsidian tags and Joplin tags.
6
6
 
7
7
  [Community discussion thread](https://discourse.joplinapp.org/t/plugin-inline-tag-navigator-v0-8-0-2024-06-26/35726)
8
8
 
@@ -19,17 +19,20 @@ This plugin adds inline tag support (such as #inline-tag) to [Joplin](https://jo
19
19
 
20
20
  1. It adds a panel for searching and viewing tagged paragraphs across all your notes ([video](https://www.youtube.com/watch?v=im0zjQFoXb0)).
21
21
  - **Save search queries** in notes and sync them across devices ([video](https://www.youtube.com/watch?v=GuzCwYxyYZ0)).
22
+ - **Display results in a table** or a list ([video](https://www.youtube.com/watch?v=J7h8c6iW4rU)).
22
23
  - **Tag-by-notes:** Search for links or [[wikilinks]] to notes (including backlinks to the current note).
24
+ - **Tag in front matter:** All Markdown front matter fields can be treated as tags.
23
25
  - **Edit tags:** Add, replace and remove inline tags via the panel context menu (right-click on a tag).
24
- - **Toggle checkboxes** / TODOs from the panel, including [[x]it! style](https://xit.jotaen.net) checkboxes (click, or right-click for 6 task states).
25
- - **Nested tags** hierarchy: Search parent tags to find the locations of their children. Example: #parent/child.
26
+ - **Insert tags** from the panel into the note editor ([video](#tag-insertion)).
27
+ - **Toggle checkboxes** / TODOs from the panel, including [[x]it! style](https://xit.jotaen.net) checkboxes (click, or right-click for 6 task states). See also [tips](#inline-todos).
28
+ - **Nested tags** hierarchy: Search parent tags to find the locations of their children ([video](https://www.youtube.com/watch?v=h-HdX7npbIw)). Example: #parent/child.
26
29
  - Search for a **range of tags**, according to their lexicographic order. Example: #2024/07 -> #2024/08
27
30
  - Search tags by **today's date**. Examples: #today, #today+1 (tomorrow), #today-10 (ten days ago)
28
- 2. It can generate a note with all tagged paragaraphs that match a saved query (dynamically updated).
31
+ 2. It can generate a note with all tagged paragaraphs that match a saved query (dynamically updated) ([video](https://www.youtube.com/watch?v=GuzCwYxyYZ0)).
29
32
  - Save a query in a note, and switch note view on: `Tools --> Tag Navigator --> Toggle search results display in note`
30
33
  3. It adds a panel for quickly navigating between inline tags that appear in the current note, or in all notes ([video](https://www.youtube.com/watch?v=h-HdX7npbIw)).
31
34
  4. It can convert your existing inline tags to native Joplin tags, so that they are accessible using Joplin's built-in tag search.
32
- 5. It can convert your existing native Joplin tags to inline tags, so that they are accessible using inline tag search (this plugin).
35
+ 5. It can convert your existing native Joplin tags to inline tags, so that they are accessible using inline tag search (this plugin). See also [tips](#converting-joplin-tags).
33
36
 
34
37
  After installing the plugin, check the commands listed under `Tag Navigator` in the `Tools` menu, as well as the corresponding settings section.
35
38
 
@@ -37,6 +40,7 @@ After installing the plugin, check the commands listed under `Tag Navigator` in
37
40
 
38
41
  - [Inline tag search](#inline-tag-search)
39
42
  - [Saved search queries](#saved-search-queries)
43
+ - [Table view / database](#table-view--database)
40
44
  - [Navigation panel](#navigation-panel)
41
45
  - [Tag insertion](#tag-insertion)
42
46
 
@@ -48,6 +52,10 @@ After installing the plugin, check the commands listed under `Tag Navigator` in
48
52
 
49
53
  <img src="img/tag-navigator-queries.gif" width="80%" title="saved search queries demo">
50
54
 
55
+ ### Table view / database
56
+
57
+ <img src="img/tag-navigator-table.gif" width="80%" title="table view demo">
58
+
51
59
  ### Navigation panel
52
60
 
53
61
  <img src="img/tag-navigator-panel.gif" width="80%" title="navigation panel demo">
@@ -62,6 +70,7 @@ After installing the plugin, check the commands listed under `Tag Navigator` in
62
70
  - [Custom tag definitions](#custom-tag-definitions)
63
71
  - [Inline TODOs](#inline-todos)
64
72
  - [Keyboard shortcuts](#keyboard-shortcuts)
73
+ - [Converting Joplin tags](#converting-joplin-tags)
65
74
 
66
75
  ### Troubleshooting
67
76
 
@@ -74,6 +83,33 @@ After installing the plugin, check the commands listed under `Tag Navigator` in
74
83
  - You may also define an exclusion rule to ignore certain tags.
75
84
  - Example: Numeric (`#123`) or hexanumeric (`#C0FF1E`) tags can be filtered using an exclusion regex such as `#(\d+|[a-fA-F0-9]{6})$`.
76
85
 
86
+ ### Front matter tags
87
+
88
+ For example, the following YAML front matter, when inserted at the top of the note:
89
+
90
+ ```yaml
91
+ ---
92
+ nested: tag with spaces
93
+ arrayed: [v1, v2, v3]
94
+ tags:
95
+ - tag1
96
+ - tag2
97
+ ---
98
+ ```
99
+
100
+ will be converted to the following inline tags:
101
+
102
+ ```text
103
+ #nested/tag_with_spaces
104
+ #arrayed/v1
105
+ #arrayed/v2
106
+ #arrayed/v3
107
+ #tag1
108
+ #tag2
109
+ ```
110
+
111
+ These tags will be accessible in the search panel / notes / tables like standard inline tags.
112
+
77
113
  ### Inline TODOs
78
114
 
79
115
  - Filter results by pending tasks (`"- [ ]"`) or ones done (`"- [x]"`).
@@ -115,6 +151,21 @@ After installing the plugin, check the commands listed under `Tag Navigator` in
115
151
  | Arrow-Down | Toggle negation of last tag / note in query |
116
152
  | Arrow-Up | Toggle last operator AND <--> OR |
117
153
 
154
+ ### Converting Joplin tags
155
+
156
+ 1. It is recommended (as for any other plugin), before converting all notes:
157
+ - Test a few individual notes (one command above the all-note conversion).
158
+ - Backup your note database.
159
+ 2. If you would like organise your tags hierarchically (using nested tags) rename your Joplin tags first, before the conversion.
160
+ - Example: `#child` -> `#parent/child`
161
+ - You may also choose to rename your inline tags after the conversion, using the plugin's `Replace all` command. However, this will create a divergence between your inline and Joplin tags.
162
+ 3. Select your preferred conversion settings.
163
+ - Converted inline tags will appear at the top / bottom depending on the `Location` advanced setting.
164
+ - Converted inline tags will have the prefix # depending on the `Tag prefix` advanced setting.
165
+ - The list of converted inline tags will begin with the text 'tags: ' depending on the `List prefix` advanced setting.
166
+ - Spaces in Joplin tags will be converted to inline tags depending on the `Space replacement` advanced setting. When converting inline tags back to Joplin spaces will be introduced back to tags. For example: [Joplin: `tag with space`] -> [inline: `#tag_with_space`] -> [Joplin: `tag with space`]
167
+ 4. After the conversion all Joplin tags remain assigned to their notes. They are not deleted, and only a single line of text is added to each note.
168
+
118
169
  ## Companion plugins
119
170
 
120
171
  - The excellent [Inline Tags](https://github.com/roman-r-m/joplin-inline-tags-plugin) plugin can autocomplete tags while typing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-tag-navigator",
3
- "version": "1.2.2",
3
+ "version": "1.4.0",
4
4
  "scripts": {
5
5
  "dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
6
6
  "prepare": "npm run dist",
@@ -6,9 +6,9 @@
6
6
  "desktop",
7
7
  "mobile"
8
8
  ],
9
- "version": "1.2.2",
9
+ "version": "1.4.0",
10
10
  "name": "Inline Tag Navigator",
11
- "description": "Type inline #tags in the note editor. View your tagged paragraphs and tasks / TODOs in an advanced search panel, or in a generated note. Convert inline and Obsidian tags into Joplin tags, and vice versa.",
11
+ "description": "Type inline #tags or front matter in the note editor. View your tagged paragraphs and tasks / TODOs in a search panel, or in a generated note. Build a table view / database from notes and tags. Convert between Obsidian tags and Joplin tags.",
12
12
  "author": "Alon Diament",
13
13
  "homepage_url": "https://github.com/alondmnt/joplin-plugin-tag-navigator#readme",
14
14
  "repository_url": "https://github.com/alondmnt/joplin-plugin-tag-navigator",
@@ -24,6 +24,6 @@
24
24
  ],
25
25
  "screenshots": [],
26
26
  "icons": {},
27
- "_publish_hash": "sha256:e5d61471add6a477eb69c6815fd493e0b8c7fd9df7daac8103c2f7b8d6d3026a",
28
- "_publish_commit": "main:fd02fc3bdb3c33271e636befab59b847aa9082e3"
27
+ "_publish_hash": "sha256:dab318709b65aeec69c88507d1088e266daa91db2781b522a88d67e265d34b46",
28
+ "_publish_commit": "main:b21815a3972407802eba320efebf98c732ef6fbb"
29
29
  }