joplin-plugin-heading-navigator 0.6.9 → 0.7.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
|
@@ -20,22 +20,25 @@ A Joplin plugin that provides a simple overlay panel allowing you to navigate an
|
|
|
20
20
|
|
|
21
21
|
In the markdown editor, click the Heading Navigator toolbar button, or use the assigned keyboard shortcut.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
> There isn't a default keyboard shortcut, you can assign one under Tools | Options | Keyboard Shortcuts | "Go to Heading" command.
|
|
23
|
+
There isn't a default keyboard shortcut, you can assign one under Tools | Options | Keyboard Shortcuts | "Go to Heading" command.
|
|
25
24
|
|
|
26
25
|
You can navigate through headings using tab key (goes to next heading), shift tab key (goes to previous heading), arrow keys, or by scrolling and selecting a heading.
|
|
27
26
|
|
|
28
|
-
When selecting a heading with the keyboard, the editor will immediately scroll to the selected heading. Hitting enter in the dialogue (or clicking somewhere else) will close the dialogue. Hitting escape will close the dialogue & return to your original scroll/cursor position.
|
|
29
|
-
|
|
30
27
|
You can filter the list of headings using the search filter at the top of the panel.
|
|
31
28
|
|
|
29
|
+
When selecting a heading with the keyboard, the editor will immediately scroll to the selected heading. Hitting enter in the panel (or clicking somewhere else) will close the panel. Hitting escape will close the panel & return to your original scroll/cursor position.
|
|
30
|
+
|
|
31
|
+
> [!note]
|
|
32
|
+
> When the panel is pinned, clicking outside of the panel will not close the panel, and hitting escape will move focus to the editor without closing the panel or restoring previous scroll position.
|
|
33
|
+
|
|
32
34
|
### Features
|
|
33
35
|
|
|
34
36
|
- Navigate through headings with the keyboard
|
|
35
37
|
- Search filter to filter list of headings
|
|
36
38
|
- Copy link to heading
|
|
37
39
|
- Panel adapts to your Joplin theme
|
|
38
|
-
- Adjustable panel size
|
|
40
|
+
- Adjustable panel size (desktop only)
|
|
41
|
+
- Ability to pin panel so it stays open until you unpin it (desktop only)
|
|
39
42
|
|
|
40
43
|
### Settings
|
|
41
44
|
|
|
@@ -45,8 +48,10 @@ The plugin can be customized via Tools | Options | Heading Navigator:
|
|
|
45
48
|
- Useful for longer heading text or smaller screens
|
|
46
49
|
- **Panel max height**: 40-90% of editor viewport (default: 75%)
|
|
47
50
|
- Prevents the panel from obscuring too much content
|
|
51
|
+
- **Panel top offset**: 0-200px distance from the top of the editor (default: 12px)
|
|
52
|
+
- Push the panel down to avoid overlapping other top-right editor decorations, such as a backlinks indicator (desktop only)
|
|
48
53
|
- **Compact mode**: Hide `H# - line #` metadata and reduce heading row height (default: off)
|
|
49
|
-
- Shows more headings at once in the panel
|
|
54
|
+
- Shows more headings at once in the panel (desktop only)
|
|
50
55
|
- **Copy internal anchor links**: Copy `[Heading](#heading-anchor)` instead of `[Heading @ Note](:/noteId#heading-anchor)` (default: off)
|
|
51
56
|
|
|
52
57
|
Panel appearance settings take effect the next time the panel is opened. The copy link setting applies to the next copied link.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-heading-navigator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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",
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
"lint": "eslint --ext .ts src/",
|
|
10
10
|
"lint:fix": "eslint --ext .ts src/ --fix",
|
|
11
11
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
12
|
-
"test": "
|
|
13
|
-
"test:watch": "
|
|
12
|
+
"test": "vitest run",
|
|
13
|
+
"test:watch": "vitest",
|
|
14
|
+
"knip": "knip"
|
|
14
15
|
},
|
|
15
16
|
"license": "MIT",
|
|
16
17
|
"keywords": [
|
|
@@ -20,29 +21,30 @@
|
|
|
20
21
|
"publish"
|
|
21
22
|
],
|
|
22
23
|
"devDependencies": {
|
|
24
|
+
"@codemirror/lang-markdown": "6.5.1",
|
|
25
|
+
"@codemirror/language": "6.12.4",
|
|
23
26
|
"@codemirror/state": "6.5.2",
|
|
24
27
|
"@codemirror/view": "6.38.7",
|
|
25
|
-
"@eslint/eslintrc": "^3.3.5",
|
|
26
28
|
"@eslint/js": "^10.0.1",
|
|
27
|
-
"@lezer/
|
|
28
|
-
"@types/
|
|
29
|
-
"@types/node": "^25.6.2",
|
|
29
|
+
"@lezer/common": "^1.5.2",
|
|
30
|
+
"@types/node": "^25.9.4",
|
|
30
31
|
"@typescript-eslint/eslint-plugin": "^8.59.2",
|
|
31
32
|
"@typescript-eslint/parser": "^8.59.2",
|
|
32
33
|
"chalk": "^4.1.0",
|
|
33
34
|
"copy-webpack-plugin": "^14.0.0",
|
|
34
35
|
"eslint": "^10.3.0",
|
|
35
36
|
"eslint-config-prettier": "^10.1.8",
|
|
36
|
-
"eslint-plugin-
|
|
37
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
37
38
|
"fs-extra": "^10.1.0",
|
|
38
39
|
"glob": "^8.0.3",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
40
|
+
"globals": "^17.7.0",
|
|
41
|
+
"jsdom": "^29.1.1",
|
|
42
|
+
"knip": "^6.24.0",
|
|
41
43
|
"prettier": "^3.8.3",
|
|
42
44
|
"tar": "^7.5.16",
|
|
43
|
-
"ts-jest": "^29.4.11",
|
|
44
45
|
"ts-loader": "^9.5.7",
|
|
45
46
|
"typescript": "^6.0.3",
|
|
47
|
+
"vitest": "^4.1.10",
|
|
46
48
|
"webpack": "^5.106.2",
|
|
47
49
|
"webpack-cli": "^7.0.2"
|
|
48
50
|
},
|
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": 1,
|
|
3
3
|
"id": "com.bwat47.heading-navigator",
|
|
4
4
|
"app_min_version": "3.3",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.7.1",
|
|
6
6
|
"platforms": [
|
|
7
7
|
"desktop",
|
|
8
8
|
"mobile"
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"type": "codeMirrorPlugin"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
"_publish_hash": "sha256:
|
|
62
|
-
"_publish_commit": "main:
|
|
61
|
+
"_publish_hash": "sha256:511208a91475385c3f76d01ad87ee08e771268943d09212ebef94387b442fbc4",
|
|
62
|
+
"_publish_commit": "main:9472b1c1911a493438df8f436112dd630f00c69a"
|
|
63
63
|
}
|