|
1 | 1 | // DOCS https://github.com/esm7/obsidian-vimrc-support/blob/master/JsSnippets.md |
2 | | -//────────────────────────────────────────────────────────────────────────────── |
3 | | - |
4 | | -function toggleLineNumbers() { |
5 | | - const vault = view.app.vault; |
6 | | - vault.setConfig("showLineNumber", !vault.getConfig("showLineNumber")); |
7 | | -} |
8 | | - |
9 | | -function clearNotices() { |
10 | | - const allNotices = activeDocument.body.getElementsByClassName("notice"); |
11 | | - for (const el of allNotices) el.hide(); |
12 | | -} |
13 | 2 |
|
14 | 3 | function deleteLastChar() { |
15 | 4 | const cursor = editor.getCursor(); |
@@ -64,11 +53,6 @@ function openAppearanceSettings() { |
64 | 53 | container.scrollTop = container.scrollHeight; |
65 | 54 | } |
66 | 55 |
|
67 | | -function openCommunityPluginsSettings() { |
68 | | - |
69 | | - view.app.setting.openTabById("community-plugins"); |
70 | | -} |
71 | | - |
72 | 56 | function openDynamicHighlightsSettings() { |
73 | 57 | const setting = view.app.setting; |
74 | 58 | setting.open(); |
@@ -341,7 +325,7 @@ async function fixWordUnderCursor() { |
341 | 325 | } |
342 | 326 | } |
343 | 327 |
|
344 | | -/** Save/Load a workspace using the Workspaces Core Plugin. |
| 328 | +/** Save/load a workspace using the Workspaces Core Plugin. |
345 | 329 | * Enables the plugin before, and disables it afterward. |
346 | 330 | * @param {"load"|"save"} action |
347 | 331 | * @param {string} workspaceName |
@@ -420,7 +404,6 @@ function inspectUnresolvedLinks() { |
420 | 404 |
|
421 | 405 | // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: okay here |
422 | 406 | function toggleComment() { |
423 | | - // CONFIG |
424 | 407 | /** @type {Record<string, string|string[]>} */ |
425 | 408 | const commentChars = { |
426 | 409 | md: ["<!--", "-->"], |
|
0 commit comments