2024-03-19 21:33:29 +00:00
|
|
|
import FolderNotesPlugin from '../main';
|
|
|
|
|
export class ExcludePattern {
|
|
|
|
|
type: string;
|
2024-05-21 15:31:33 +00:00
|
|
|
id: string;
|
2024-03-19 21:33:29 +00:00
|
|
|
string: string;
|
|
|
|
|
path: string;
|
|
|
|
|
position: number;
|
|
|
|
|
subFolders: boolean;
|
|
|
|
|
disableSync: boolean;
|
|
|
|
|
disableAutoCreate: boolean;
|
|
|
|
|
disableFolderNote: boolean;
|
|
|
|
|
enableCollapsing: boolean;
|
|
|
|
|
excludeFromFolderOverview: boolean;
|
|
|
|
|
hideInSettings: boolean;
|
2024-06-15 15:55:47 +00:00
|
|
|
detached: boolean;
|
|
|
|
|
detachedFilePath?: string;
|
2024-09-05 15:05:58 +00:00
|
|
|
hideNote: boolean;
|
2024-05-21 15:31:33 +00:00
|
|
|
constructor(pattern: string, position: number, id: string | undefined, plugin: FolderNotesPlugin) {
|
2024-03-19 21:33:29 +00:00
|
|
|
this.type = 'pattern';
|
2024-05-21 15:31:33 +00:00
|
|
|
this.id = id || crypto.randomUUID();
|
2024-03-19 21:33:29 +00:00
|
|
|
this.string = pattern;
|
|
|
|
|
this.position = position;
|
|
|
|
|
this.subFolders = plugin.settings.excludePatternDefaultSettings.subFolders;
|
|
|
|
|
this.disableSync = plugin.settings.excludePatternDefaultSettings.disableSync;
|
|
|
|
|
this.disableAutoCreate = plugin.settings.excludePatternDefaultSettings.disableAutoCreate;
|
|
|
|
|
this.disableFolderNote = plugin.settings.excludePatternDefaultSettings.disableFolderNote;
|
|
|
|
|
this.enableCollapsing = plugin.settings.excludePatternDefaultSettings.enableCollapsing;
|
|
|
|
|
this.excludeFromFolderOverview = plugin.settings.excludePatternDefaultSettings.excludeFromFolderOverview;
|
|
|
|
|
this.path = '';
|
|
|
|
|
this.hideInSettings = false;
|
|
|
|
|
}
|
|
|
|
|
}
|