Introduced `normalizePath(...)` for consuming a path to note from plugin settings
This commit is contained in:
parent
ab1dfdfb02
commit
6e54db9f1c
|
@ -3,6 +3,7 @@ import {
|
|||
FileExplorerView,
|
||||
MetadataCache,
|
||||
Notice,
|
||||
normalizePath,
|
||||
Plugin,
|
||||
PluginSettingTab,
|
||||
setIcon,
|
||||
|
@ -332,7 +333,7 @@ class CustomSortSettingTab extends PluginSettingTab {
|
|||
.setPlaceholder('e.g. note.md')
|
||||
.setValue(this.plugin.settings.additionalSortspecFile)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.additionalSortspecFile = value;
|
||||
this.plugin.settings.additionalSortspecFile = normalizePath(value);
|
||||
await this.plugin.saveSettings();
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue