devonthesofa_obsidian-note-.../types/pluginSettings.ts

41 lines
1.7 KiB
TypeScript
Raw Normal View History

2025-07-15 15:30:17 +00:00
import { NoteStatus } from "./noteStatus";
export interface StatusTemplate {
id: string;
name: string;
description: string;
statuses: NoteStatus[];
}
export type PluginSettings = {
fileExplorerIconPosition:
| "absolute-right"
| "file-name-left"
| "file-name-right";
2025-07-15 15:30:17 +00:00
statusColors: Record<string, string>;
showStatusBar: boolean;
autoHideStatusBar: boolean;
templates: StatusTemplate[];
2025-07-15 15:30:17 +00:00
customStatuses: NoteStatus[];
2025-08-06 17:36:36 +00:00
statusBarShowTemplateName: "always" | "never" | "auto"; // How to show template names in status bar
2025-07-15 15:30:17 +00:00
showStatusIconsInExplorer: boolean;
hideUnknownStatusInExplorer: boolean;
enabledTemplates: string[]; // IDs of enabled templates
useCustomStatusesOnly: boolean; // Whether to use only custom statuses or include templates
useMultipleStatuses: boolean; // Whether to allow multiple statuses per note
tagPrefix: string; // Prefix for the status tag (default: 'status')
strictStatuses: boolean; // Whether to only show known statuses
quickStatusCommands: string[];
// Unknown status customization
unknownStatusIcon: string; // Custom icon for unknown status
unknownStatusColor: string; // Custom hex color for unknown status
statusBarNoStatusText: string; // Custom text for status bar when no status
statusBarShowNoStatusIcon: boolean; // Whether to show icon in status bar for no status
statusBarShowNoStatusText: boolean; // Whether to show text in status bar for no status
vaultSizeLimit: number; // Disable dashboard and grouped view for vaults with more notes than this limit
// Editor toolbar button settings
showEditorToolbarButton: boolean; // Whether to show the toolbar button
editorToolbarButtonPosition: "left" | "right" | "right-before"; // Position of the toolbar button
2025-07-15 15:30:17 +00:00
[key: string]: unknown;
};