joplin-plugin-tag-navigator 2.2.0 → 2.3.1

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
@@ -72,6 +72,7 @@ After installing the plugin, check the commands listed under `Tag Navigator` in
72
72
  - [Tag values](#tag-values)
73
73
  - [Front matter tags](#front-matter-tags)
74
74
  - [Table views](#table-views)
75
+ - [Filtering results](#filtering-results)
75
76
  - [Inline TODOs](#inline-todos)
76
77
  - [Colour tags](#colour-tags)
77
78
  - [Keyboard shortcuts](#keyboard-shortcuts)
@@ -83,9 +84,9 @@ After installing the plugin, check the commands listed under `Tag Navigator` in
83
84
 
84
85
  ### Custom tag definitions
85
86
 
86
- - The definition of a "tag" can be adjusted with user-defined regular expressions.
87
+ - The definition of a "tag" can be adjusted with user-defined regular expressions (see the advanced setting `Tag regex`).
87
88
  - Example: Every word in the text may be defined as a tag using a custom regex such as `[A-Za-z0-9]+[\w]*`.
88
- - You may also define an exclusion rule to ignore certain tags.
89
+ - You may also define an exclusion rule to ignore certain tags (see the advanced setting `Exclude regex`).
89
90
  - Example: Numeric (`#123`) or hexanumeric (`#C0FF1E`) tags can be filtered using an exclusion regex such as `#(\d+|[a-fA-F0-9]{6})$`.
90
91
 
91
92
  ### Tag insertion
@@ -151,11 +152,12 @@ These tags will be accessible in the search panel / notes / tables like standard
151
152
 
152
153
  ### Table views
153
154
 
155
+ - To enable table view, start by [saving a query](#saved-search-queries). Next, select `Tools --> Tag Navigator --> Toggle search results display in note` (or the corresponding toolbar button) until the saved query shows the property `"displayInNote": "table"` and a table appears.
154
156
  - Quickly add new entries to the table by clicking on `New table entry note` in the context menu, toolbar, or Tag Navigator menu.
155
- - The new note will contain a front matter template with properties for each column.
157
+ - The new note will contain a [front matter](#front-matter-tags) template with properties for each column.
156
158
  - Tables can be customised using the following settings:
157
159
  - `Note view: Table view columns`: Set the default number of columns (most common ones) to display in the table view.
158
- - `Note view: Table view notebook path`: Set to true to display the notebook path in the table view.
160
+ - `Search: Extract the full notebook path`: Enable this to display the notebook path in the table view, and to allow [filtering results](#filtering-results) by this path.
159
161
  - `Note view: Note view: Tag case in table view`: Set to "Title Case" / "lowercase".
160
162
  - Tables can be customised per note using the saved query, by adding an `options` field with any of the following properties:
161
163
  - `includeCols`
@@ -167,7 +169,7 @@ These tags will be accessible in the search panel / notes / tables like standard
167
169
  - a comma-separated list of columns to sort the table by
168
170
  - `sortOrder`
169
171
  - a comma-separated list of the words "ascending" / "descending" (or "desc", "descend", etc.) corresponding to the columns in the `sortBy` field
170
- - example:
172
+ - Example for a saved query:
171
173
 
172
174
  ```json
173
175
  {
@@ -190,10 +192,18 @@ These tags will be accessible in the search panel / notes / tables like standard
190
192
  }
191
193
  ```
192
194
 
195
+ ### Filtering results
196
+
197
+ - Text entered in the results filter (on the panel or in a saved query) can be used to search within title of the notes, their notebook name / path, or the content of the displayed results.
198
+ - To gain more control over filtering by notebook, you may enable the setting `Search: Extract the full notebook path`.
199
+ - Example: Limit results to a notebook that appears in the top level by searching for `|/topNotebook`.
200
+ - Example: Search for `topNotebook/childNotebook` to show only results from childNotebook.
201
+ - You may enable `Search: Use regex for tag / note / content filtering` to filter using regular expressions.
202
+
193
203
  ### Inline TODOs
194
204
 
195
205
  - Filter results by pending tasks (`"- [ ]"`) or ones done (`"- [x]"`).
196
- - Add support for [additional tags](https://github.com/CalebJohn/joplin-inline-todo?tab=readme-ov-file#confluence-style) for @mentions, +projects and //due-dates using a custom tag regex such as `(?<=^|\s)([#@+]|\/\/)([^\s#@'\"]*\w)`.
206
+ - Add support for [additional tags](https://github.com/CalebJohn/joplin-inline-todo?tab=readme-ov-file#confluence-style) for @mentions, +projects and //due-dates using a custom tag regex such as `(?<=^|\s)([#@+]|\/\/)([^\s#@+'",.()\[\]:;\?\\]+)`.
197
207
  - Supported additional checkbox styles (inspired by `[x]it!`).
198
208
  - Set any of them to done by clicking the checkbox in the search panel.
199
209
 
@@ -204,7 +214,7 @@ These tags will be accessible in the search panel / notes / tables like standard
204
214
  ![checkbox commands](img/checkboxes-commands.png)
205
215
 
206
216
  - You may increase the checkbox size on smaller screens by setting `Search: Panel style` with the CSS `.itags-search-checkbox { width: 18px; height: 18px; font-size: 18px }` (adjust as needed).
207
- - Furthermore, every checkbox in the text (even ones that are not tagged by any inline #tag) may be defined as a tag using a custom regex such as `(?<=^|\s)([#]|\-\s\[[x\s@\?!~]\])([^\s#'\"]*\w)?`.
217
+ - Furthermore, every checkbox in the text (even ones that are not tagged by any inline #tag) may be defined as a tag using a custom regex such as `(?<=^|\s)(#([^\s#'",.()\[\]:;\?\\]+)|(\-\s\[[x\s@\?!~]\]))`.
208
218
  - You may then use queries to search for tag-tasks based on their state (`- [ ]`, `- [x]`, `- [@]`, ...).
209
219
 
210
220
  ### Colour tags
@@ -266,7 +276,7 @@ These tags will be accessible in the search panel / notes / tables like standard
266
276
  - You can highlight tags in the Markdown editor using [Rich Markdown](https://github.com/CalebJohn/joplin-rich-markdown) (version ≥ 0.14).
267
277
  - In `Joplin settings --> Rich Markdown --> Advanced Settings --> Custom classes JSON` enter:
268
278
  ```
269
- [{"name": "rm-tag", "regex": "(?<=^|\\s)#([^\\s#'\"]*\\w)"}]
279
+ [{"name": "rm-tag", "regex": "(?<=^|\\s)#([^\\s#'\",.()\\[\\]:;\\?\\\\]+)"}]
270
280
  ```
271
281
  - In `Joplin settings --> Appearance --> Custom stylesheet for Joplin-wide app styles` add the following to the style sheet:
272
282
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-tag-navigator",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
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,7 +6,7 @@
6
6
  "desktop",
7
7
  "mobile"
8
8
  ],
9
- "version": "2.2.0",
9
+ "version": "2.3.1",
10
10
  "name": "Inline Tag Navigator",
11
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",
@@ -24,6 +24,6 @@
24
24
  ],
25
25
  "screenshots": [],
26
26
  "icons": {},
27
- "_publish_hash": "sha256:211a6a85d6927b055b4defdb83fc9992124062f341b6092a8bfd13caf13c5494",
28
- "_publish_commit": "main:97d2216ccbd2da4938b8e5d7273125194fd766be"
27
+ "_publish_hash": "sha256:af7b3a1476b1d972111811d4765445c92f26d4e9287403e477b7c8b702864d06",
28
+ "_publish_commit": "main:29d71f03380b411875b8d9f64cbfb646521eefb0"
29
29
  }