@lapis-notes/search 0.1.0
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/CHANGELOG.md +6 -0
- package/LICENSE.md +8 -0
- package/README.md +20 -0
- package/dist/agent-tools.d.ts +1 -0
- package/dist/agent-tools.js +1 -0
- package/dist/built-in-search-document-providers.d.ts +5 -0
- package/dist/built-in-search-document-providers.js +30 -0
- package/dist/highlighted-text.svelte +41 -0
- package/dist/highlighted-text.svelte.d.ts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +9 -0
- package/dist/notes-search-command.d.ts +2 -0
- package/dist/notes-search-command.js +8 -0
- package/dist/notes-search-tool.d.ts +8 -0
- package/dist/notes-search-tool.js +84 -0
- package/dist/public-components.d.ts +2 -0
- package/dist/public-components.js +2 -0
- package/dist/search-manager.d.ts +92 -0
- package/dist/search-manager.js +771 -0
- package/dist/search-match-context.d.ts +17 -0
- package/dist/search-match-context.js +45 -0
- package/dist/search-panel.css +460 -0
- package/dist/search-panel.svelte +796 -0
- package/dist/search-panel.svelte.d.ts +11 -0
- package/dist/search-plugin.d.ts +22 -0
- package/dist/search-plugin.js +174 -0
- package/dist/search-result-model.d.ts +29 -0
- package/dist/search-result-model.js +50 -0
- package/dist/search-settings-tab.d.ts +12 -0
- package/dist/search-settings-tab.js +139 -0
- package/dist/search-settings.d.ts +54 -0
- package/dist/search-settings.js +107 -0
- package/dist/search-sort.d.ts +8 -0
- package/dist/search-sort.js +36 -0
- package/dist/search-startup.d.ts +3 -0
- package/dist/search-startup.js +4 -0
- package/dist/search-tool-result.css +70 -0
- package/dist/search-tool-result.d.ts +16 -0
- package/dist/search-tool-result.js +111 -0
- package/dist/search-tool-result.svelte +55 -0
- package/dist/search-tool-result.svelte.d.ts +6 -0
- package/dist/search-view-type.d.ts +1 -0
- package/dist/search-view-type.js +1 -0
- package/dist/search-view.d.ts +14 -0
- package/dist/search-view.js +48 -0
- package/dist/styles.css +2 -0
- package/manifest.json +28 -0
- package/package.json +80 -0
- package/styles.css +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface SearchMatchContextWindow {
|
|
2
|
+
start: number;
|
|
3
|
+
end: number;
|
|
4
|
+
ranges: Array<{
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
export type SearchMatchContextDirection = "before" | "after";
|
|
10
|
+
export declare function expandSearchMatchContext(source: string, window: SearchMatchContextWindow, direction: SearchMatchContextDirection, lineCount?: number): SearchMatchContextWindow;
|
|
11
|
+
export declare function sliceSearchMatchContext(source: string, window: SearchMatchContextWindow): {
|
|
12
|
+
text: string;
|
|
13
|
+
ranges: Array<{
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function lineStartAt(source, offset) {
|
|
2
|
+
return source.lastIndexOf("\n", Math.max(0, offset - 1)) + 1;
|
|
3
|
+
}
|
|
4
|
+
function expandBefore(source, start, lineCount) {
|
|
5
|
+
let next = lineStartAt(source, start);
|
|
6
|
+
for (let index = 0; index < lineCount && next > 0; index += 1) {
|
|
7
|
+
next = lineStartAt(source, next - 1);
|
|
8
|
+
}
|
|
9
|
+
return next;
|
|
10
|
+
}
|
|
11
|
+
function expandAfter(source, end, lineCount) {
|
|
12
|
+
const currentLineEnd = source.indexOf("\n", Math.max(0, end));
|
|
13
|
+
let next = currentLineEnd === -1 ? source.length : currentLineEnd;
|
|
14
|
+
for (let index = 0; index < lineCount && next < source.length; index += 1) {
|
|
15
|
+
const followingLineEnd = source.indexOf("\n", next + 1);
|
|
16
|
+
next = followingLineEnd === -1 ? source.length : followingLineEnd;
|
|
17
|
+
}
|
|
18
|
+
return next;
|
|
19
|
+
}
|
|
20
|
+
export function expandSearchMatchContext(source, window, direction, lineCount = 2) {
|
|
21
|
+
const start = Math.max(0, Math.min(source.length, window.start));
|
|
22
|
+
const end = Math.max(start, Math.min(source.length, window.end));
|
|
23
|
+
return {
|
|
24
|
+
start: direction === "before"
|
|
25
|
+
? expandBefore(source, start, Math.max(1, lineCount))
|
|
26
|
+
: start,
|
|
27
|
+
end: direction === "after"
|
|
28
|
+
? expandAfter(source, end, Math.max(1, lineCount))
|
|
29
|
+
: end,
|
|
30
|
+
ranges: window.ranges.map((range) => ({ ...range })),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function sliceSearchMatchContext(source, window) {
|
|
34
|
+
const start = Math.max(0, Math.min(source.length, window.start));
|
|
35
|
+
const end = Math.max(start, Math.min(source.length, window.end));
|
|
36
|
+
return {
|
|
37
|
+
text: source.slice(start, end),
|
|
38
|
+
ranges: window.ranges
|
|
39
|
+
.map((range) => ({
|
|
40
|
+
start: Math.max(0, range.start - start),
|
|
41
|
+
end: Math.min(end - start, range.end - start),
|
|
42
|
+
}))
|
|
43
|
+
.filter((range) => range.end > range.start),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
.search-panel {
|
|
2
|
+
--search-panel-border: var(
|
|
3
|
+
--ui-workspace-border,
|
|
4
|
+
color-mix(in srgb, currentColor 14%, transparent)
|
|
5
|
+
);
|
|
6
|
+
--search-panel-muted: var(
|
|
7
|
+
--ui-workspace-muted-foreground,
|
|
8
|
+
var(--muted-foreground)
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
display: flex;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
min-height: 0;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
color: var(--ui-workspace-view-foreground, inherit);
|
|
20
|
+
background: var(--ui-workspace-view-background, transparent);
|
|
21
|
+
font: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.search-panel__chrome {
|
|
25
|
+
position: relative;
|
|
26
|
+
z-index: 1;
|
|
27
|
+
flex: 0 0 auto;
|
|
28
|
+
padding: 0.75rem;
|
|
29
|
+
border-bottom: 1px solid var(--search-panel-border);
|
|
30
|
+
background: var(--ui-workspace-view-background, transparent);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.search-panel__query-row {
|
|
34
|
+
display: flex;
|
|
35
|
+
min-width: 0;
|
|
36
|
+
align-items: flex-start;
|
|
37
|
+
gap: 0.5rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.search-panel__query-row > .cv-search-filter-bar {
|
|
41
|
+
min-width: 0;
|
|
42
|
+
flex: 1 1 auto;
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.search-panel__filters {
|
|
47
|
+
display: flex;
|
|
48
|
+
width: 100%;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
flex: 1 1 100%;
|
|
51
|
+
flex-wrap: wrap;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: 0.4rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.search-panel__summary {
|
|
57
|
+
display: flex;
|
|
58
|
+
min-width: 0;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
gap: 0.5rem;
|
|
62
|
+
margin-top: 0.625rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.search-panel__summary button {
|
|
66
|
+
min-width: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.search-panel__summary-control:hover,
|
|
70
|
+
.search-panel__summary-control:focus-visible,
|
|
71
|
+
.search-panel__summary-control[aria-expanded="true"] {
|
|
72
|
+
color: var(--ui-workspace-view-foreground, inherit);
|
|
73
|
+
background-color: var(
|
|
74
|
+
--ui-workspace-selection,
|
|
75
|
+
color-mix(in srgb, var(--ui-workspace-accent, #7c3aed) 14%, transparent)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.search-panel__summary button > svg,
|
|
80
|
+
.search-panel__sort svg {
|
|
81
|
+
width: 0.875rem;
|
|
82
|
+
height: 0.875rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.search-panel__sort {
|
|
86
|
+
max-width: 12rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.search-panel__sort > span {
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
text-overflow: ellipsis;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.search-panel__sort-popover {
|
|
96
|
+
display: grid;
|
|
97
|
+
width: 15rem;
|
|
98
|
+
gap: 0.125rem;
|
|
99
|
+
padding: 0.25rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.search-panel__sort-option {
|
|
103
|
+
justify-content: flex-start;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.search-panel__explanation {
|
|
107
|
+
margin: 0.5rem 0 0;
|
|
108
|
+
color: var(--search-panel-muted);
|
|
109
|
+
font-size: 0.75rem;
|
|
110
|
+
line-height: 1.25rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.search-panel__settings {
|
|
114
|
+
display: grid;
|
|
115
|
+
width: 100%;
|
|
116
|
+
min-width: 0;
|
|
117
|
+
flex: 1 0 100%;
|
|
118
|
+
gap: 0.75rem;
|
|
119
|
+
margin-top: 0.25rem;
|
|
120
|
+
border: 1px solid var(--search-panel-border);
|
|
121
|
+
border-radius: var(--ui-workspace-radius-medium, var(--radius));
|
|
122
|
+
padding: 0.75rem;
|
|
123
|
+
background: var(--ui-workspace-panel-background, var(--card));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.search-panel__settings > label {
|
|
127
|
+
display: flex;
|
|
128
|
+
min-width: 0;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
gap: 1rem;
|
|
132
|
+
font-size: 0.75rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.search-panel__structured-semantic {
|
|
136
|
+
align-items: flex-start !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.search-panel__structured-semantic > span {
|
|
140
|
+
display: grid;
|
|
141
|
+
min-width: 0;
|
|
142
|
+
gap: 0.125rem;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.search-panel__structured-semantic strong {
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.search-panel__structured-semantic small {
|
|
150
|
+
color: var(--search-panel-muted);
|
|
151
|
+
font-size: 0.6875rem;
|
|
152
|
+
line-height: 1rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.search-panel__scroll-area {
|
|
156
|
+
width: 100%;
|
|
157
|
+
min-width: 0;
|
|
158
|
+
min-height: 0;
|
|
159
|
+
flex: 1 1 auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.search-panel
|
|
163
|
+
[data-ui-component="sidebar"][data-ui-part="sidebar-content"].search-panel__results {
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
width: 100%;
|
|
166
|
+
min-width: 0;
|
|
167
|
+
padding: 0;
|
|
168
|
+
color: inherit;
|
|
169
|
+
background: var(--ui-workspace-view-background, transparent);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.search-panel__tree-inset {
|
|
173
|
+
box-sizing: border-box;
|
|
174
|
+
width: 100%;
|
|
175
|
+
min-width: 0;
|
|
176
|
+
padding: 0.375rem 0.5rem 0.75rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.search-panel__tree,
|
|
180
|
+
.search-panel__match-list [data-ui-part="sidebar-menu-sub"] {
|
|
181
|
+
display: grid;
|
|
182
|
+
width: 100%;
|
|
183
|
+
min-width: 0;
|
|
184
|
+
gap: 0.125rem;
|
|
185
|
+
margin: 0;
|
|
186
|
+
padding: 0;
|
|
187
|
+
list-style: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.search-panel__tree-item {
|
|
191
|
+
min-width: 0;
|
|
192
|
+
padding: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.search-panel__result {
|
|
196
|
+
width: 100%;
|
|
197
|
+
min-width: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.search-panel__file,
|
|
201
|
+
.search-panel__match {
|
|
202
|
+
box-sizing: border-box;
|
|
203
|
+
width: 100%;
|
|
204
|
+
min-width: 0;
|
|
205
|
+
border: 0;
|
|
206
|
+
border-radius: var(--ui-workspace-radius-small, 0.25rem);
|
|
207
|
+
color: inherit;
|
|
208
|
+
background: transparent;
|
|
209
|
+
font: inherit;
|
|
210
|
+
text-align: start;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.search-panel__file:hover,
|
|
215
|
+
.search-panel__file:focus-visible,
|
|
216
|
+
.search-panel__match:hover,
|
|
217
|
+
.search-panel__match-shell:focus-visible .search-panel__match {
|
|
218
|
+
background: var(
|
|
219
|
+
--ui-workspace-explorer-row-hover-background,
|
|
220
|
+
var(--sidebar-accent)
|
|
221
|
+
);
|
|
222
|
+
outline: 2px solid transparent;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.search-panel__match-shell:focus-visible {
|
|
226
|
+
outline: 0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.search-panel__file {
|
|
230
|
+
position: relative;
|
|
231
|
+
display: grid;
|
|
232
|
+
grid-template-columns: auto auto minmax(0, 1fr);
|
|
233
|
+
align-items: start;
|
|
234
|
+
gap: 0.375rem;
|
|
235
|
+
padding: 0.5rem 2.125rem 0.5rem 0.375rem;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.search-panel__disclosure,
|
|
239
|
+
.search-panel__file-icon {
|
|
240
|
+
width: 0.875rem;
|
|
241
|
+
height: 0.875rem;
|
|
242
|
+
margin-top: 0.1875rem;
|
|
243
|
+
color: var(--search-panel-muted);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.search-panel__disclosure {
|
|
247
|
+
transition: transform 120ms ease;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.search-panel__file[aria-expanded="true"] .search-panel__disclosure {
|
|
251
|
+
transform: rotate(90deg);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.search-panel__file-label {
|
|
255
|
+
min-width: 0;
|
|
256
|
+
overflow: hidden;
|
|
257
|
+
text-overflow: ellipsis;
|
|
258
|
+
white-space: nowrap;
|
|
259
|
+
font-size: 0.8125rem;
|
|
260
|
+
font-weight: 400;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.search-panel__match-meta {
|
|
264
|
+
display: flex;
|
|
265
|
+
min-width: 0;
|
|
266
|
+
flex-wrap: wrap;
|
|
267
|
+
align-items: center;
|
|
268
|
+
justify-content: flex-start;
|
|
269
|
+
gap: 0.25rem;
|
|
270
|
+
padding-top: 0.125rem;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.search-panel__mode-badge,
|
|
274
|
+
.search-panel__match-key {
|
|
275
|
+
min-width: 0;
|
|
276
|
+
padding-inline: 0.375rem;
|
|
277
|
+
font-family: var(--ui-workspace-font-mono, var(--font-monospace, monospace));
|
|
278
|
+
font-size: 0.625rem;
|
|
279
|
+
line-height: 1rem;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.search-panel__mode-badge {
|
|
283
|
+
border-color: var(--search-panel-border);
|
|
284
|
+
color: var(--ui-workspace-view-foreground, currentColor);
|
|
285
|
+
background: var(
|
|
286
|
+
--ui-workspace-view-background,
|
|
287
|
+
var(--ui-workspace-background, var(--background, #fff))
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.search-panel__match-key {
|
|
292
|
+
border-color: var(--search-panel-border);
|
|
293
|
+
color: var(--ui-workspace-view-foreground, currentColor);
|
|
294
|
+
background: var(
|
|
295
|
+
--ui-workspace-view-background,
|
|
296
|
+
var(--ui-workspace-background, var(--background, #fff))
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.search-panel [data-ui-part="sidebar-menu-badge"].search-panel__count-badge {
|
|
301
|
+
position: absolute;
|
|
302
|
+
top: 0.375rem;
|
|
303
|
+
right: 0.375rem;
|
|
304
|
+
display: grid;
|
|
305
|
+
width: 1.25rem;
|
|
306
|
+
min-width: 1.25rem;
|
|
307
|
+
height: 1.25rem;
|
|
308
|
+
padding: 0;
|
|
309
|
+
place-items: center;
|
|
310
|
+
transform: none;
|
|
311
|
+
border: 0;
|
|
312
|
+
border-radius: 999px;
|
|
313
|
+
color: color-mix(
|
|
314
|
+
in srgb,
|
|
315
|
+
var(--ui-workspace-view-foreground, currentColor) 52%,
|
|
316
|
+
transparent
|
|
317
|
+
);
|
|
318
|
+
background: transparent;
|
|
319
|
+
font-family: inherit;
|
|
320
|
+
font-size: 0.625rem;
|
|
321
|
+
line-height: 1;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.search-panel__match-list {
|
|
325
|
+
box-sizing: border-box;
|
|
326
|
+
width: 100%;
|
|
327
|
+
margin: 0.125rem 0 0.375rem;
|
|
328
|
+
border: 1px solid var(--search-panel-border);
|
|
329
|
+
border-radius: var(--ui-workspace-radius-small, 0.25rem);
|
|
330
|
+
background: var(
|
|
331
|
+
--ui-workspace-view-secondary-background,
|
|
332
|
+
var(--ui-workspace-secondary, var(--secondary))
|
|
333
|
+
);
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.search-panel__match-header {
|
|
338
|
+
display: flex;
|
|
339
|
+
min-width: 0;
|
|
340
|
+
align-items: center;
|
|
341
|
+
justify-content: space-between;
|
|
342
|
+
gap: 0.5rem;
|
|
343
|
+
border-bottom: 1px solid var(--search-panel-border);
|
|
344
|
+
padding: 0.375rem 0.625rem;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.search-panel__match-path {
|
|
348
|
+
min-width: 0;
|
|
349
|
+
flex: 1 1 auto;
|
|
350
|
+
overflow: hidden;
|
|
351
|
+
color: var(--search-panel-muted);
|
|
352
|
+
font-size: 0.6875rem;
|
|
353
|
+
text-overflow: ellipsis;
|
|
354
|
+
white-space: nowrap;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.search-panel .search-panel__match-list > [data-ui-part="sidebar-menu-sub"] {
|
|
358
|
+
display: grid;
|
|
359
|
+
box-sizing: border-box;
|
|
360
|
+
width: 100%;
|
|
361
|
+
min-width: 0;
|
|
362
|
+
gap: 0;
|
|
363
|
+
margin: 0;
|
|
364
|
+
padding: 0;
|
|
365
|
+
translate: none;
|
|
366
|
+
border: 0;
|
|
367
|
+
background: var(
|
|
368
|
+
--ui-workspace-view-secondary-background,
|
|
369
|
+
var(--ui-workspace-secondary, var(--secondary))
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.search-panel__match-list [data-ui-part="sidebar-menu-sub-item"] {
|
|
374
|
+
width: 100%;
|
|
375
|
+
min-width: 0;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.search-panel__match-shell {
|
|
379
|
+
position: relative;
|
|
380
|
+
width: 100%;
|
|
381
|
+
min-width: 0;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.search-panel__match {
|
|
385
|
+
display: flex;
|
|
386
|
+
flex-direction: column;
|
|
387
|
+
align-items: stretch;
|
|
388
|
+
gap: 0.125rem;
|
|
389
|
+
border-radius: 0;
|
|
390
|
+
padding: 0.5rem 0.625rem;
|
|
391
|
+
font-size: 0.75rem;
|
|
392
|
+
line-height: 1.25rem;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.search-panel__match-shell[data-context-before="true"]
|
|
396
|
+
.search-panel__match-text {
|
|
397
|
+
padding-inline-end: 1.5rem;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.search-panel__context-control {
|
|
401
|
+
position: absolute;
|
|
402
|
+
z-index: 1;
|
|
403
|
+
width: 1.25rem;
|
|
404
|
+
min-width: 1.25rem;
|
|
405
|
+
height: 1.25rem;
|
|
406
|
+
border: 0;
|
|
407
|
+
border-radius: var(--ui-workspace-radius-small, 0.25rem);
|
|
408
|
+
padding: 0;
|
|
409
|
+
color: var(--search-panel-muted);
|
|
410
|
+
background: transparent;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.search-panel__context-control:hover,
|
|
414
|
+
.search-panel__context-control:focus-visible {
|
|
415
|
+
color: var(--ui-workspace-view-foreground, currentColor);
|
|
416
|
+
background: var(--ui-workspace-selection);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.search-panel__context-control--before {
|
|
420
|
+
top: 0.375rem;
|
|
421
|
+
right: 0.375rem;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.search-panel__context-control--after {
|
|
425
|
+
bottom: 0.375rem;
|
|
426
|
+
right: 0.375rem;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.search-panel__context-control svg {
|
|
430
|
+
width: 0.875rem;
|
|
431
|
+
height: 0.875rem;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.search-panel__match-text {
|
|
435
|
+
display: block;
|
|
436
|
+
min-width: 0;
|
|
437
|
+
overflow-wrap: anywhere;
|
|
438
|
+
white-space: pre-wrap;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.search-panel__match-list li + li .search-panel__match-shell {
|
|
442
|
+
border-top: 1px solid var(--search-panel-border);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.search-panel mark {
|
|
446
|
+
border-radius: 0.125rem;
|
|
447
|
+
color: var(--ui-search-highlight-foreground, inherit);
|
|
448
|
+
background: var(
|
|
449
|
+
--ui-search-highlight-background,
|
|
450
|
+
color-mix(in srgb, #facc15 42%, transparent)
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.search-panel__empty {
|
|
455
|
+
margin: 0;
|
|
456
|
+
padding: 1.5rem 0.75rem;
|
|
457
|
+
color: var(--search-panel-muted);
|
|
458
|
+
font-size: 0.8125rem;
|
|
459
|
+
text-align: center;
|
|
460
|
+
}
|