generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
104 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ data.json | |
|
||
# Exclude macOS Finder (System Explorer) View States | ||
.DS_Store | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Setting } from "obsidian"; | ||
import { SettingsTab } from "../SettingsTab"; | ||
|
||
export default (tab: SettingsTab, containerEl: HTMLElement) => { | ||
containerEl.createEl('h3', { text: 'Zig Settings' }); | ||
new Setting(containerEl) | ||
.setName('zig path') | ||
.setDesc("Path to your zig installation") | ||
.addText(text => text | ||
.setValue(tab.plugin.settings.zigPath) | ||
.onChange(async (value) => { | ||
const sanitized = tab.sanitizePath(value); | ||
tab.plugin.settings.zigPath = sanitized; | ||
console.log('zig path set to: ' + sanitized); | ||
await tab.plugin.saveSettings(); | ||
})); | ||
new Setting(containerEl) | ||
.setName('zig arguments') | ||
.addText(text => text | ||
.setValue(tab.plugin.settings.zigArgs) | ||
.onChange(async (value) => { | ||
tab.plugin.settings.zigArgs = value; | ||
console.log('zig args set to: ' + value); | ||
await tab.plugin.saveSettings(); | ||
})); | ||
tab.makeInjectSetting(containerEl, "zig"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,5 +42,6 @@ | |
"1.7.1": "0.12.0", | ||
"1.8.0": "0.12.0", | ||
"1.8.1": "0.12.0", | ||
"1.9.0": "1.2.8" | ||
"1.9.0": "1.2.8", | ||
"1.9.1": "1.2.8" | ||
} |