- Introduced commands for exporting graph data and displaying chains from the current note. - Enhanced linting functionality with options for showing canonical hints and specifying chain traversal direction. - Added new utility functions for graph traversal and index building. - Updated settings interface to include new options for user configuration.
25 lines
729 B
TypeScript
25 lines
729 B
TypeScript
export interface MindnetSettings {
|
|
edgeVocabularyPath: string; // vault-relativ
|
|
graphSchemaPath: string; // vault-relativ (später)
|
|
maxHops: number;
|
|
strictMode: boolean;
|
|
showCanonicalHints: boolean;
|
|
chainDirection: "forward" | "backward" | "both";
|
|
}
|
|
|
|
export const DEFAULT_SETTINGS: MindnetSettings = {
|
|
edgeVocabularyPath: "_system/dictionary/edge_vocabulary.md",
|
|
graphSchemaPath: "_system/dictionary/graph_schema.md",
|
|
maxHops: 3,
|
|
strictMode: false,
|
|
showCanonicalHints: false,
|
|
chainDirection: "forward",
|
|
};
|
|
|
|
/**
|
|
* Optional helper: normalize to Obsidian vault paths (forward slashes).
|
|
*/
|
|
export function normalizeVaultPath(p: string): string {
|
|
return (p || "").trim().replace(/\\/g, "/");
|
|
}
|
|
|