-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.ts
More file actions
78 lines (76 loc) · 2.19 KB
/
Copy pathsettings.ts
File metadata and controls
78 lines (76 loc) · 2.19 KB
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
70
71
72
73
74
75
76
77
78
/*
* settings.ts - plugin settings (separate module to avoid circular imports).
*/
import { definePluginSettings } from "@api/Settings";
import { OptionType } from "@utils/types";
export const settings = definePluginSettings({
defaultMode: {
type: OptionType.SELECT,
description: "Mode when a chat box gains focus",
options: [
{
label: "Insert",
value: "insert",
default: true,
},
{
label: "Normal",
value: "normal",
},
{
label: "Remember last mode per editor",
value: "remember",
},
],
},
escapeInNormal: {
type: OptionType.SELECT,
description: "Behavior of Escape while already in NORMAL mode",
options: [
{
label: "Swallow (never reaches Discord)",
value: "swallow",
},
{
label: "Pass through (closes reply/edit immediately)",
value: "passthrough",
default: true,
},
{
label: "Double-Escape passes through",
value: "double",
},
],
},
indicatorStyle: {
type: OptionType.SELECT,
description: "Mode indicator style on the chat box",
// drop stale badges/borders right away; they are rebuilt with the
// new style on the next keypress/focus
onChange: () => import("./statusline").then(m => m.removeAllIndicators()),
options: [
{
label: "Badge (N/I/V/R)",
value: "badge",
},
{
label: "Colored border",
value: "border",
default: true,
},
{
label: "Badge + border",
value: "both",
},
{
label: "None",
value: "none",
},
],
},
yankToClipboard: {
type: OptionType.BOOLEAN,
description: "Also copy yanked/deleted text to the system clipboard",
default: true,
},
});