MacBookPro.lan 2026-4-24:22:8:20
This commit is contained in:
+18
-2
@@ -1797,6 +1797,7 @@ var DEFAULT_SETTINGS = {
|
||||
excludeInternalLinkPathGlobPatterns: [],
|
||||
excludeSelfInternalLink: false,
|
||||
excludeExistingInActiveFileInternalLinks: false,
|
||||
excludeUnresolvedInternalLinks: false,
|
||||
updateInternalLinksOnSave: true,
|
||||
insertAliasTransformedFromDisplayedInternalLink: {
|
||||
enabled: false,
|
||||
@@ -2704,6 +2705,20 @@ var VariousComplementsSettingTab = class extends import_obsidian3.PluginSettingT
|
||||
});
|
||||
}
|
||||
);
|
||||
addFilterableSetting(
|
||||
"Exclude unresolved internal links",
|
||||
"Exclude internal links that point to non-existing files (phantom links) from the suggestions.",
|
||||
(setting) => {
|
||||
setting.addToggle((tc) => {
|
||||
tc.setValue(
|
||||
this.plugin.settings.excludeUnresolvedInternalLinks
|
||||
).onChange(async (value) => {
|
||||
this.plugin.settings.excludeUnresolvedInternalLinks = value;
|
||||
await this.plugin.saveSettings({ internalLink: true });
|
||||
});
|
||||
});
|
||||
}
|
||||
);
|
||||
addFilterableSetting(
|
||||
"Insert an alias that is transformed from the displayed internal link",
|
||||
null,
|
||||
@@ -5033,7 +5048,7 @@ var InternalLinkWordProvider = class {
|
||||
];
|
||||
}
|
||||
});
|
||||
const unresolvedInternalLinkWords = this.appHelper.searchPhantomLinks().map(({ path: path2, link }) => {
|
||||
const unresolvedInternalLinkWords = option.excludeUnresolvedLinks ? [] : this.appHelper.searchPhantomLinks().map(({ path: path2, link }) => {
|
||||
return {
|
||||
value: link,
|
||||
type: "internalLink",
|
||||
@@ -7804,7 +7819,8 @@ var AutoCompleteSuggest = class _AutoCompleteSuggest extends import_obsidian7.Ed
|
||||
makeSynonymAboutEmoji: this.settings.matchingWithoutEmoji,
|
||||
makeSynonymAboutAccentsDiacritics: this.settings.treatAccentDiacriticsAsAlphabeticCharacters,
|
||||
frontMatterKeyForExclusion: this.settings.frontMatterKeyForExclusionInternalLink,
|
||||
tagsForExclusion: this.settings.tagsForExclusionInternalLink
|
||||
tagsForExclusion: this.settings.tagsForExclusionInternalLink,
|
||||
excludeUnresolvedLinks: this.settings.excludeUnresolvedInternalLinks
|
||||
});
|
||||
this.statusBar.setInternalLinkIndexed(
|
||||
this.internalLinkWordProvider.wordCount
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "various-complements",
|
||||
"name": "Various Complements",
|
||||
"version": "11.1.0",
|
||||
"version": "11.2.0",
|
||||
"minAppVersion": "1.11.4",
|
||||
"description": "This plugin enables you to complete words like the auto-completion of IDE",
|
||||
"author": "tadashi-aikawa",
|
||||
|
||||
Reference in New Issue
Block a user