Skip to content

Commit

Permalink
🔖 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 4, 2023
1 parent 620f4df commit 3e0c040
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [0.1.3](https://github.com/ebullient/obsidian-show-whitespace-cm6/compare/0.1.2...0.1.3)

- ♻️ ✨ Plugin settings instead of style settings [`645eefc`](https://github.com/ebullient/obsidian-show-whitespace-cm6/commit/645eefca253f62664403f421c9e0597b23c12e34)
- ✨ Reload styles on external config change [`620f4df`](https://github.com/ebullient/obsidian-show-whitespace-cm6/commit/620f4df58e4f8c21298d36d75b764b88f5b6a2eb)

#### [0.1.2](https://github.com/ebullient/obsidian-show-whitespace-cm6/compare/0.1.1...0.1.2)

> 2 December 2023
- 🎨 Additional style settings + codeblock support [`9730d89`](https://github.com/ebullient/obsidian-show-whitespace-cm6/commit/9730d89b45d35f76cc2c582d1615fb71fed0206a)
- 🎨 Always use whitespace color (missed codeblock) [`7bb37d1`](https://github.com/ebullient/obsidian-show-whitespace-cm6/commit/7bb37d1a87116a66791359d70f5a1aa090799961)

Expand Down
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "show-whitespace-cm6",
"name": "Show Whitespace (CM6)",
"version": "0.1.2",
"version": "0.1.3",
"minAppVersion": "1.5.0",
"description": "Show leading and trailing whitespace in source mode (CodeMirror6)",
"author": "ebullient",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "show-whitespace-cm6",
"name": "Show Whitespace (CM6)",
"version": "0.1.2",
"version": "0.1.3",
"minAppVersion": "1.5.0",
"description": "Show leading and trailing whitespace in source mode (CodeMirror6)",
"author": "ebullient",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "show-whitespace-cm6",
"version": "0.1.2",
"version": "0.1.3",
"private": true,
"description": "Show leading and trailing whitespace in source mode (CodeMirror6)",
"main": "main.js",
Expand Down
6 changes: 3 additions & 3 deletions src/@types/settings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface SWSettings {

declare module "obsidian" {
interface Plugin {
onConfigFileChange: () => void;
handleConfigFileChange(): Promise<void>;
onConfigFileChange: () => void;
handleConfigFileChange(): Promise<void>;
}
}
}
8 changes: 6 additions & 2 deletions src/whitespace-Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,15 @@ export class ShowWhitespacePlugin extends Plugin {
this.onExternalSettingsChange();
}

public onExternalSettingsChange = debounce(async () => {
public onExternalSettingsChange = debounce(
async () => {
this.removeClasses();
this.initClasses();
console.debug("(SW-CM6) external settings changed");
}, 2000, true);
},
2000,
true,
);

async loadSettings(): Promise<void> {
if (!this.settings) {
Expand Down

0 comments on commit 3e0c040

Please sign in to comment.