-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
29 lines (25 loc) · 780 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const PREFIX = "obsidian-enhanced-headers-";
export const Classes = {
backlinks: (addPeriod?: boolean) =>
`${(addPeriod ? "." : "") + PREFIX}backlinks`,
group: (addPeriod?: boolean) => `${(addPeriod ? "." : "") + PREFIX}group`,
groupTitle: (addPeriod?: boolean) =>
`${(addPeriod ? "." : "") + PREFIX}group-title`,
obsidianCmSizer: (addPeriod?: boolean) => `${addPeriod ? "." : ""}cm-sizer`,
} as const;
export const DEFAULT_SETTINGS: BacklinkPluginSettings = {
attachTop: false,
showLinks: false,
showBacklinks: true,
separator: "·",
backlinksFirst: true,
showLinkTitle: false,
};
export type BacklinkPluginSettings = {
attachTop: boolean;
showLinks: boolean;
showBacklinks: boolean;
separator: string;
backlinksFirst: boolean;
showLinkTitle: boolean;
};