-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplugin.integrations.ts
69 lines (67 loc) · 1.32 KB
/
plugin.integrations.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
export interface Integration {
name: string,
description: string,
enabled: boolean,
available: boolean,
options: IntegrationOptions,
settings: {
type: "enable" | "disable",
callback(plugin: any): void
}[]
}
export interface IntegrationOptions {
[key: string]: {
active: boolean,
description?: string
}
}
export const pluginIntegrations: Integration[] = [
{
name: "cm-typewriter-scroll-obsidian",
description: "Automatically enable typewriter scroll when entering Zen mode.",
enabled: false,
available: false,
options: {
zenEnabled: {
active: false,
description: "Enable the darkening of non-active lines"
}
},
settings: [
{
type: "enable",
callback(plugin: any): void {
plugin.enableZen();
return plugin.enableTypewriterScroll();
}
}, {
type: "disable",
callback(plugin: any): void {
plugin.disableZen();
return plugin.disableTypewriterScroll();
}
}
]
},
{
name: "obsidian-stille",
description: "Automatically enable Stille when entering Zen mode.",
enabled: false,
available: false,
options: {
},
settings: [
{
type: "enable",
callback(plugin: any): void {
return plugin.toggleStille();
}
}, {
type: "disable",
callback(plugin: any): void {
return plugin.toggleStille();
}
}
]
}
];