mirror of
https://github.com/al0cam/AutoMover.git
synced 2026-07-22 12:10:26 +00:00
23 lines
624 B
TypeScript
23 lines
624 B
TypeScript
import type AutoMoverPlugin from "main";
|
|
import type { ExclusionRule } from "Models/ExclusionRule";
|
|
import type { MovingRule } from "Models/MovingRule";
|
|
|
|
export interface AutoMoverSettings {
|
|
moveOnOpen: boolean;
|
|
// moveOnSave: boolean;
|
|
movingRules: MovingRule[];
|
|
exclusionRules: ExclusionRule[];
|
|
}
|
|
|
|
export const DEFAULT_SETTINGS: Partial<AutoMoverSettings> = {
|
|
moveOnOpen: true,
|
|
// moveOnSave: true,
|
|
movingRules: [],
|
|
exclusionRules: [],
|
|
};
|
|
|
|
function loadSettings(
|
|
AutoMoverPlugin: AutoMoverPlugin,
|
|
): Partial<AutoMoverSettings> {
|
|
return Object.assign({}, DEFAULT_SETTINGS, AutoMoverPlugin.loadData());
|
|
}
|