@our2ndbrain/cli 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.obsidian/.2ndbrain-manifest.json +8 -0
- package/.obsidian/app.json +6 -0
- package/.obsidian/appearance.json +1 -0
- package/.obsidian/community-plugins.json +4 -0
- package/.obsidian/core-plugins.json +33 -0
- package/.obsidian/graph.json +22 -0
- package/.obsidian/plugins/calendar/data.json +10 -0
- package/.obsidian/plugins/calendar/main.js +4459 -0
- package/.obsidian/plugins/calendar/manifest.json +10 -0
- package/.obsidian/plugins/obsidian-custom-attachment-location/data.json +32 -0
- package/.obsidian/plugins/obsidian-custom-attachment-location/main.js +575 -0
- package/.obsidian/plugins/obsidian-custom-attachment-location/manifest.json +11 -0
- package/.obsidian/plugins/obsidian-custom-attachment-location/styles.css +1 -0
- package/.obsidian/plugins/obsidian-git/data.json +62 -0
- package/.obsidian/plugins/obsidian-git/main.js +426 -0
- package/.obsidian/plugins/obsidian-git/manifest.json +10 -0
- package/.obsidian/plugins/obsidian-git/obsidian_askpass.sh +23 -0
- package/.obsidian/plugins/obsidian-git/styles.css +629 -0
- package/.obsidian/plugins/obsidian-tasks-plugin/main.js +504 -0
- package/.obsidian/plugins/obsidian-tasks-plugin/manifest.json +12 -0
- package/.obsidian/plugins/obsidian-tasks-plugin/styles.css +1 -0
- package/.obsidian/types.json +28 -0
- package/00_Dashboard/01_All_Tasks.md +118 -0
- package/00_Dashboard/09_All_Done.md +42 -0
- package/10_Inbox/Agents/Journal.md +1 -0
- package/99_System/Scripts/init_member.sh +108 -0
- package/99_System/Templates/tpl_daily_note.md +13 -0
- package/99_System/Templates/tpl_member_done.md +32 -0
- package/99_System/Templates/tpl_member_tasks.md +97 -0
- package/AGENTS.md +193 -0
- package/CHANGELOG.md +67 -0
- package/CLAUDE.md +153 -0
- package/LICENSE +201 -0
- package/README.md +636 -0
- package/bin/2ndbrain.js +117 -0
- package/package.json +56 -0
- package/src/commands/completion.js +198 -0
- package/src/commands/init.js +308 -0
- package/src/commands/member.js +123 -0
- package/src/commands/remove.js +88 -0
- package/src/commands/update.js +507 -0
- package/src/index.js +17 -0
- package/src/lib/config.js +112 -0
- package/src/lib/diff.js +222 -0
- package/src/lib/files.js +340 -0
- package/src/lib/obsidian.js +366 -0
- package/src/lib/prompt.js +182 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Vinzent",
|
|
3
|
+
"authorUrl": "https://github.com/Vinzent03",
|
|
4
|
+
"id": "obsidian-git",
|
|
5
|
+
"name": "Git",
|
|
6
|
+
"description": "Integrate Git version control with automatic backup and other advanced features.",
|
|
7
|
+
"isDesktopOnly": false,
|
|
8
|
+
"fundingUrl": "https://ko-fi.com/vinzent",
|
|
9
|
+
"version": "2.35.2"
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
PROMPT="$1"
|
|
4
|
+
TEMP_FILE="$OBSIDIAN_GIT_CREDENTIALS_INPUT"
|
|
5
|
+
|
|
6
|
+
cleanup() {
|
|
7
|
+
rm -f "$TEMP_FILE" "$TEMP_FILE.response"
|
|
8
|
+
}
|
|
9
|
+
trap cleanup EXIT
|
|
10
|
+
|
|
11
|
+
echo "$PROMPT" > "$TEMP_FILE"
|
|
12
|
+
|
|
13
|
+
while [ ! -e "$TEMP_FILE.response" ]; do
|
|
14
|
+
if [ ! -e "$TEMP_FILE" ]; then
|
|
15
|
+
echo "Trigger file got removed: Abort" >&2
|
|
16
|
+
exit 1
|
|
17
|
+
fi
|
|
18
|
+
sleep 0.1
|
|
19
|
+
done
|
|
20
|
+
|
|
21
|
+
RESPONSE=$(cat "$TEMP_FILE.response")
|
|
22
|
+
|
|
23
|
+
echo "$RESPONSE"
|
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
@keyframes loading {
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.workspace-leaf-content[data-type="git-view"] .button-border {
|
|
12
|
+
border: 2px solid var(--interactive-accent);
|
|
13
|
+
border-radius: var(--radius-s);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.workspace-leaf-content[data-type="git-view"] .view-content {
|
|
17
|
+
padding-left: 0;
|
|
18
|
+
padding-top: 0;
|
|
19
|
+
padding-right: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.workspace-leaf-content[data-type="git-history-view"] .view-content {
|
|
23
|
+
padding-left: 0;
|
|
24
|
+
padding-top: 0;
|
|
25
|
+
padding-right: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.loading {
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.loading > svg {
|
|
33
|
+
animation: 2s linear infinite loading;
|
|
34
|
+
transform-origin: 50% 50%;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.obsidian-git-center {
|
|
39
|
+
margin: auto;
|
|
40
|
+
text-align: center;
|
|
41
|
+
width: 50%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.obsidian-git-textarea {
|
|
45
|
+
display: block;
|
|
46
|
+
margin-left: auto;
|
|
47
|
+
margin-right: auto;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.obsidian-git-disabled {
|
|
51
|
+
opacity: 0.5;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.obsidian-git-center-button {
|
|
55
|
+
display: block;
|
|
56
|
+
margin: 20px auto;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.tooltip.mod-left {
|
|
60
|
+
overflow-wrap: break-word;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tooltip.mod-right {
|
|
64
|
+
overflow-wrap: break-word;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Limits the scrollbar to the view body */
|
|
68
|
+
.git-view {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
position: relative;
|
|
72
|
+
height: 100%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.git-tools {
|
|
76
|
+
display: flex;
|
|
77
|
+
margin-left: auto;
|
|
78
|
+
}
|
|
79
|
+
.git-tools .type {
|
|
80
|
+
padding-left: var(--size-2-1);
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
width: 11px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.git-tools .type[data-type="M"] {
|
|
88
|
+
color: orange;
|
|
89
|
+
}
|
|
90
|
+
.git-tools .type[data-type="D"] {
|
|
91
|
+
color: red;
|
|
92
|
+
}
|
|
93
|
+
.git-tools .buttons {
|
|
94
|
+
display: flex;
|
|
95
|
+
}
|
|
96
|
+
.git-tools .buttons > * {
|
|
97
|
+
padding: 0 0;
|
|
98
|
+
height: auto;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.workspace-leaf-content[data-type="git-view"] .tree-item-self,
|
|
102
|
+
.workspace-leaf-content[data-type="git-history-view"] .tree-item-self {
|
|
103
|
+
align-items: center;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.workspace-leaf-content[data-type="git-view"]
|
|
107
|
+
.tree-item-self:hover
|
|
108
|
+
.clickable-icon,
|
|
109
|
+
.workspace-leaf-content[data-type="git-history-view"]
|
|
110
|
+
.tree-item-self:hover
|
|
111
|
+
.clickable-icon {
|
|
112
|
+
color: var(--icon-color-hover);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Highlight an item as active if it's diff is currently opened */
|
|
116
|
+
.is-active .git-tools .buttons > * {
|
|
117
|
+
color: var(--nav-item-color-active);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.git-author {
|
|
121
|
+
color: var(--text-accent);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.git-date {
|
|
125
|
+
color: var(--text-accent);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.git-ref {
|
|
129
|
+
color: var(--text-accent);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-d-none {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-wrapper {
|
|
137
|
+
text-align: left;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header {
|
|
141
|
+
background-color: var(--background-primary);
|
|
142
|
+
border-bottom: 1px solid var(--interactive-accent);
|
|
143
|
+
font-family: var(--font-monospace);
|
|
144
|
+
height: 35px;
|
|
145
|
+
padding: 5px 10px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header,
|
|
149
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
|
|
150
|
+
display: -webkit-box;
|
|
151
|
+
display: -ms-flexbox;
|
|
152
|
+
display: flex;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
margin-left: auto;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-added {
|
|
161
|
+
border: 1px solid #b4e2b4;
|
|
162
|
+
border-radius: 5px 0 0 5px;
|
|
163
|
+
color: #399839;
|
|
164
|
+
padding: 2px;
|
|
165
|
+
text-align: right;
|
|
166
|
+
vertical-align: middle;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-deleted {
|
|
170
|
+
border: 1px solid #e9aeae;
|
|
171
|
+
border-radius: 0 5px 5px 0;
|
|
172
|
+
color: #c33;
|
|
173
|
+
margin-left: 1px;
|
|
174
|
+
padding: 2px;
|
|
175
|
+
text-align: left;
|
|
176
|
+
vertical-align: middle;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name-wrapper {
|
|
180
|
+
-webkit-box-align: center;
|
|
181
|
+
-ms-flex-align: center;
|
|
182
|
+
align-items: center;
|
|
183
|
+
display: -webkit-box;
|
|
184
|
+
display: -ms-flexbox;
|
|
185
|
+
display: flex;
|
|
186
|
+
font-size: 15px;
|
|
187
|
+
width: 100%;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name {
|
|
191
|
+
overflow-x: hidden;
|
|
192
|
+
text-overflow: ellipsis;
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-wrapper {
|
|
197
|
+
border: 1px solid var(--background-modifier-border);
|
|
198
|
+
border-radius: 3px;
|
|
199
|
+
margin-bottom: 1em;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse {
|
|
203
|
+
-webkit-box-pack: end;
|
|
204
|
+
-ms-flex-pack: end;
|
|
205
|
+
-webkit-box-align: center;
|
|
206
|
+
-ms-flex-align: center;
|
|
207
|
+
align-items: center;
|
|
208
|
+
border: 1px solid var(--background-modifier-border);
|
|
209
|
+
border-radius: 3px;
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
display: none;
|
|
212
|
+
font-size: 12px;
|
|
213
|
+
justify-content: flex-end;
|
|
214
|
+
padding: 4px 8px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse.d2h-selected {
|
|
218
|
+
background-color: #c8e1ff;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse-input {
|
|
222
|
+
margin: 0 4px 0 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-table {
|
|
226
|
+
border-collapse: collapse;
|
|
227
|
+
font-family: Menlo, Consolas, monospace;
|
|
228
|
+
font-size: 13px;
|
|
229
|
+
width: 100%;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-files-diff {
|
|
233
|
+
width: 100%;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-diff {
|
|
237
|
+
overflow-y: hidden;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-side-diff {
|
|
241
|
+
display: inline-block;
|
|
242
|
+
margin-bottom: -8px;
|
|
243
|
+
margin-right: -4px;
|
|
244
|
+
overflow-x: scroll;
|
|
245
|
+
overflow-y: hidden;
|
|
246
|
+
width: 50%;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line {
|
|
250
|
+
padding: 0 8em;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line,
|
|
254
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
|
|
255
|
+
display: inline-block;
|
|
256
|
+
-webkit-user-select: none;
|
|
257
|
+
-moz-user-select: none;
|
|
258
|
+
-ms-user-select: none;
|
|
259
|
+
user-select: none;
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
width: 100%;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
|
|
265
|
+
padding: 0 4.5em;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-ctn {
|
|
269
|
+
word-wrap: normal;
|
|
270
|
+
background: none;
|
|
271
|
+
display: inline-block;
|
|
272
|
+
padding: 0;
|
|
273
|
+
-webkit-user-select: text;
|
|
274
|
+
-moz-user-select: text;
|
|
275
|
+
-ms-user-select: text;
|
|
276
|
+
user-select: text;
|
|
277
|
+
vertical-align: middle;
|
|
278
|
+
white-space: pre;
|
|
279
|
+
width: 100%;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
|
|
283
|
+
.theme-light
|
|
284
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
285
|
+
.d2h-code-side-line
|
|
286
|
+
del {
|
|
287
|
+
background-color: #ffb6ba;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
|
|
291
|
+
.theme-dark
|
|
292
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
293
|
+
.d2h-code-side-line
|
|
294
|
+
del {
|
|
295
|
+
background-color: #8d232881;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
|
|
299
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
|
|
300
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del,
|
|
301
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
|
|
302
|
+
border-radius: 0.2em;
|
|
303
|
+
display: inline-block;
|
|
304
|
+
margin-top: -1px;
|
|
305
|
+
text-decoration: none;
|
|
306
|
+
vertical-align: middle;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
|
|
310
|
+
.theme-light
|
|
311
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
312
|
+
.d2h-code-side-line
|
|
313
|
+
ins {
|
|
314
|
+
background-color: #97f295;
|
|
315
|
+
text-align: left;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
|
|
319
|
+
.theme-dark
|
|
320
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
321
|
+
.d2h-code-side-line
|
|
322
|
+
ins {
|
|
323
|
+
background-color: #1d921996;
|
|
324
|
+
text-align: left;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix {
|
|
328
|
+
word-wrap: normal;
|
|
329
|
+
background: none;
|
|
330
|
+
display: inline;
|
|
331
|
+
padding: 0;
|
|
332
|
+
white-space: pre;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.workspace-leaf-content[data-type="diff-view"] .line-num1 {
|
|
336
|
+
float: left;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.workspace-leaf-content[data-type="diff-view"] .line-num1,
|
|
340
|
+
.workspace-leaf-content[data-type="diff-view"] .line-num2 {
|
|
341
|
+
-webkit-box-sizing: border-box;
|
|
342
|
+
box-sizing: border-box;
|
|
343
|
+
overflow: hidden;
|
|
344
|
+
padding: 0 0.5em;
|
|
345
|
+
text-overflow: ellipsis;
|
|
346
|
+
width: 3.5em;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.workspace-leaf-content[data-type="diff-view"] .line-num2 {
|
|
350
|
+
float: right;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber {
|
|
354
|
+
background-color: var(--background-primary);
|
|
355
|
+
border: solid var(--background-modifier-border);
|
|
356
|
+
border-width: 0 1px;
|
|
357
|
+
-webkit-box-sizing: border-box;
|
|
358
|
+
box-sizing: border-box;
|
|
359
|
+
color: var(--text-muted);
|
|
360
|
+
cursor: pointer;
|
|
361
|
+
display: inline-block;
|
|
362
|
+
position: absolute;
|
|
363
|
+
text-align: right;
|
|
364
|
+
width: 7.5em;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber:after {
|
|
368
|
+
content: "\200b";
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
|
|
372
|
+
background-color: var(--background-primary);
|
|
373
|
+
border: solid var(--background-modifier-border);
|
|
374
|
+
border-width: 0 1px;
|
|
375
|
+
-webkit-box-sizing: border-box;
|
|
376
|
+
box-sizing: border-box;
|
|
377
|
+
color: var(--text-muted);
|
|
378
|
+
cursor: pointer;
|
|
379
|
+
display: inline-block;
|
|
380
|
+
overflow: hidden;
|
|
381
|
+
padding: 0 0.5em;
|
|
382
|
+
position: absolute;
|
|
383
|
+
text-align: right;
|
|
384
|
+
text-overflow: ellipsis;
|
|
385
|
+
width: 4em;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-tbody tr {
|
|
389
|
+
position: relative;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber:after {
|
|
393
|
+
content: "\200b";
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-emptyplaceholder,
|
|
397
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
|
|
398
|
+
background-color: var(--background-primary);
|
|
399
|
+
border-color: var(--background-modifier-border);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix,
|
|
403
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
|
|
404
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber,
|
|
405
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
|
|
406
|
+
-webkit-user-select: none;
|
|
407
|
+
-moz-user-select: none;
|
|
408
|
+
-ms-user-select: none;
|
|
409
|
+
user-select: none;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
|
|
413
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
|
|
414
|
+
direction: rtl;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-del {
|
|
418
|
+
background-color: #fee8e9;
|
|
419
|
+
border-color: #e9aeae;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
|
|
423
|
+
background-color: #dfd;
|
|
424
|
+
border-color: #b4e2b4;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-del {
|
|
428
|
+
background-color: #521b1d83;
|
|
429
|
+
border-color: #691d1d73;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
|
|
433
|
+
background-color: rgba(30, 71, 30, 0.5);
|
|
434
|
+
border-color: #13501381;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-info {
|
|
438
|
+
background-color: var(--background-primary);
|
|
439
|
+
border-color: var(--background-modifier-border);
|
|
440
|
+
color: var(--text-normal);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.theme-light
|
|
444
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
445
|
+
.d2h-file-diff
|
|
446
|
+
.d2h-del.d2h-change {
|
|
447
|
+
background-color: #fdf2d0;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.theme-dark
|
|
451
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
452
|
+
.d2h-file-diff
|
|
453
|
+
.d2h-del.d2h-change {
|
|
454
|
+
background-color: #55492480;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.theme-light
|
|
458
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
459
|
+
.d2h-file-diff
|
|
460
|
+
.d2h-ins.d2h-change {
|
|
461
|
+
background-color: #ded;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.theme-dark
|
|
465
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
466
|
+
.d2h-file-diff
|
|
467
|
+
.d2h-ins.d2h-change {
|
|
468
|
+
background-color: rgba(37, 78, 37, 0.418);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper {
|
|
472
|
+
margin-bottom: 10px;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper a {
|
|
476
|
+
color: #3572b0;
|
|
477
|
+
text-decoration: none;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.workspace-leaf-content[data-type="diff-view"]
|
|
481
|
+
.d2h-file-list-wrapper
|
|
482
|
+
a:visited {
|
|
483
|
+
color: #3572b0;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-header {
|
|
487
|
+
text-align: left;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-title {
|
|
491
|
+
font-weight: 700;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-line {
|
|
495
|
+
display: -webkit-box;
|
|
496
|
+
display: -ms-flexbox;
|
|
497
|
+
display: flex;
|
|
498
|
+
text-align: left;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list {
|
|
502
|
+
display: block;
|
|
503
|
+
list-style: none;
|
|
504
|
+
margin: 0;
|
|
505
|
+
padding: 0;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list > li {
|
|
509
|
+
border-bottom: 1px solid var(--background-modifier-border);
|
|
510
|
+
margin: 0;
|
|
511
|
+
padding: 5px 10px;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list > li:last-child {
|
|
515
|
+
border-bottom: none;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-file-switch {
|
|
519
|
+
cursor: pointer;
|
|
520
|
+
display: none;
|
|
521
|
+
font-size: 10px;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-icon {
|
|
525
|
+
fill: currentColor;
|
|
526
|
+
margin-right: 10px;
|
|
527
|
+
vertical-align: middle;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted {
|
|
531
|
+
color: #c33;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-added {
|
|
535
|
+
color: #399839;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-changed {
|
|
539
|
+
color: #d0b44c;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-moved {
|
|
543
|
+
color: #3572b0;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-tag {
|
|
547
|
+
background-color: var(--background-primary);
|
|
548
|
+
display: -webkit-box;
|
|
549
|
+
display: -ms-flexbox;
|
|
550
|
+
display: flex;
|
|
551
|
+
font-size: 10px;
|
|
552
|
+
margin-left: 5px;
|
|
553
|
+
padding: 0 2px;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted-tag {
|
|
557
|
+
border: 2px solid #c33;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-added-tag {
|
|
561
|
+
border: 1px solid #399839;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-changed-tag {
|
|
565
|
+
border: 1px solid #d0b44c;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.workspace-leaf-content[data-type="diff-view"] .d2h-moved-tag {
|
|
569
|
+
border: 1px solid #3572b0;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/* ====================== Line Authoring Information ====================== */
|
|
573
|
+
|
|
574
|
+
.cm-gutterElement.obs-git-blame-gutter {
|
|
575
|
+
/* Add background color to spacing inbetween and around the gutter for better aesthetics */
|
|
576
|
+
border-width: 0px 2px 0.2px 2px;
|
|
577
|
+
border-style: solid;
|
|
578
|
+
border-color: var(--background-secondary);
|
|
579
|
+
background-color: var(--background-secondary);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.cm-gutterElement.obs-git-blame-gutter > div,
|
|
583
|
+
.line-author-settings-preview {
|
|
584
|
+
/* delegate text color to settings */
|
|
585
|
+
color: var(--obs-git-gutter-text);
|
|
586
|
+
font-family: monospace;
|
|
587
|
+
height: 100%; /* ensure, that age-based background color occupies entire parent */
|
|
588
|
+
text-align: right;
|
|
589
|
+
padding: 0px 6px 0px 6px;
|
|
590
|
+
white-space: pre; /* Keep spaces and do not collapse them. */
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
@media (max-width: 800px) {
|
|
594
|
+
/* hide git blame gutter not to superpose text */
|
|
595
|
+
.cm-gutterElement.obs-git-blame-gutter {
|
|
596
|
+
display: none;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.git-unified-diff-view,
|
|
601
|
+
.git-split-diff-view .cm-deletedLine .cm-changedText {
|
|
602
|
+
background-color: #ee443330;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.git-unified-diff-view,
|
|
606
|
+
.git-split-diff-view .cm-insertedLine .cm-changedText {
|
|
607
|
+
background-color: #22bb2230;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.git-obscure-prompt[git-is-obscured="true"] #git-show-password:after {
|
|
611
|
+
-webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon lucide-eye"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg>');
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.git-obscure-prompt[git-is-obscured="false"] #git-show-password:after {
|
|
615
|
+
-webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon lucide-eye-off"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"></path><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"></path><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"></path><path d="m2 2 20 20"></path></svg>');
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/* Override styling of Codemirror merge view "collapsed lines" indicator */
|
|
619
|
+
.git-split-diff-view .ͼ2 .cm-collapsedLines {
|
|
620
|
+
background: var(--interactive-normal);
|
|
621
|
+
border-radius: var(--radius-m);
|
|
622
|
+
color: var(--text-accent);
|
|
623
|
+
font-size: var(--font-small);
|
|
624
|
+
padding: var(--size-4-1) var(--size-4-1);
|
|
625
|
+
}
|
|
626
|
+
.git-split-diff-view .ͼ2 .cm-collapsedLines:hover {
|
|
627
|
+
background: var(--interactive-hover);
|
|
628
|
+
color: var(--text-accent-hover);
|
|
629
|
+
}
|