Skip to content

Commit ef664b9

Browse files
authored
Merge pull request #420 from pjkaufman/master
Release Prep and Disable Custom Commands on Folder and Vault Lint
2 parents 8642f60 + 974aaa7 commit ef664b9

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-linter",
33
"name": "Linter",
4-
"version": "1.4.4",
4+
"version": "1.5.0",
55
"minAppVersion": "0.15.6",
66
"description": "Enforces consistent markdown styling.",
77
"author": "Victor Tao",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-linter",
3-
"version": "1.4.4",
3+
"version": "1.5.0",
44
"description": "Enforces consistent markdown styling for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ export default class LinterPlugin extends Plugin {
232232

233233
await this.app.vault.modify(file, newText);
234234

235-
this.rulesRunner.runCustomCommands(this.settings.lintCommands, this.app.commands);
235+
// Make sure this is disabled until we actually add something to let it work on folder and vault linting
236+
// this.rulesRunner.runCustomCommands(this.settings.lintCommands, this.app.commands);
236237
}
237238

238239
async runLinterAllFiles(app: App) {
@@ -491,7 +492,7 @@ class SettingTab extends PluginSettingTab {
491492
this.containerEl.createEl('h2', {text: 'Custom Commands Settings'});
492493
this.containerEl.createEl('p', {text: `Custom commands are Obsidian commands that get run after the linter is finished running its regular rules.
493494
This means that they do not run before the yaml timestamp logic runs, so they can cause yaml timestamp to be triggered on the next run of the linter.
494-
You may only select an Obsidian command once.`});
495+
You may only select an Obsidian command once. Note that this currently only works on linting the current file.`});
495496
this.containerEl.createEl('p', {text: `When selecting an option, make sure to select the option either by using the mouse or by hitting the enter key.
496497
Other selection methods may not work and only selections of an actual Obsidian command or an empty string will be saved.`}).style.color = '#EED202';
497498

versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"1.5.0": "0.15.6",
23
"1.4.4": "0.15.6",
34
"1.4.3": "0.15.6",
45
"1.4.2": "0.15.6",

0 commit comments

Comments
 (0)