-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
5512 lines (5469 loc) · 269 KB
/
Copy pathmain.js
File metadata and controls
5512 lines (5469 loc) · 269 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Code Linker 1.4.0 — bundled from src/ by esbuild. Do not edit directly; edit src/ and run "npm run build". */
"use strict";
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
// src/shared/markdown.js
var require_markdown = __commonJS({
"src/shared/markdown.js"(exports2, module2) {
"use strict";
var splitLines2 = (s) => (s || "").split("\n").map((x) => x.trim()).filter(Boolean);
var LINK_PATTERN = "\\[([^\\]]*)\\]\\(([^)]+)\\)";
var linkRegex2 = () => new RegExp(LINK_PATTERN, "g");
var LINK_TITLE = /^([\s\S]*?)\s+(?:"([^"]*)"|'([^']*)')$/;
function splitTarget2(raw) {
const s = String(raw == null ? "" : raw).trim();
const m = LINK_TITLE.exec(s);
if (!m)
return { url: s, title: "" };
return { url: m[1].trim(), title: m[2] != null ? m[2] : m[3] };
}
var withTitle2 = (url, title) => title ? url + ' "' + title + '"' : url;
var isFenceLine = (line) => {
const s = line.trimStart();
return s.startsWith("```") || s.startsWith("~~~");
};
var INLINE_CODE = /`[^`\n]+`/g;
function inMatch(line, col, re) {
re.lastIndex = 0;
let m;
while ((m = re.exec(line)) !== null) {
if (col > m.index && col < m.index + m[0].length)
return true;
}
return false;
}
var inInlineCode = (line, col) => inMatch(line, col, INLINE_CODE);
function locate(lines, pos) {
let start = 0, i = 0;
for (; i < lines.length; i++) {
if (pos <= start + lines[i].length)
break;
start += lines[i].length + 1;
}
return { i, col: pos - start, line: lines[i] || "" };
}
function inCode2(text, pos) {
if (/^---\r?\n/.test(text)) {
const end = text.indexOf("\n---", 3);
if (end !== -1 && pos <= end + 4)
return true;
}
const lines = text.split("\n");
const { i, col, line } = locate(lines, pos);
let fenced = false;
for (let k = 0; k < i; k++)
if (isFenceLine(lines[k]))
fenced = !fenced;
if (fenced)
return true;
return inMatch(line, col, INLINE_CODE);
}
function inLink2(text, pos) {
const { col, line } = locate(text.split("\n"), pos);
return inMatch(line, col, linkRegex2());
}
function isProtected(text, pos) {
return inCode2(text, pos) || inLink2(text, pos);
}
function inTableCell2(text, pos) {
const lines = text.split("\n");
const lineIdx = (text.slice(0, pos).match(/\n/g) || []).length;
if (!lines[lineIdx] || !lines[lineIdx].includes("|"))
return false;
const isDelimiter = (l) => l.includes("|") && l.includes("-") && /^[\s|:-]+$/.test(l);
let top = lineIdx, bot = lineIdx;
while (top > 0 && lines[top - 1].trim() !== "")
top--;
while (bot < lines.length - 1 && lines[bot + 1].trim() !== "")
bot++;
for (let i = top; i <= bot; i++)
if (isDelimiter(lines[i]))
return true;
return false;
}
function rewriteLinks(text, fn) {
const lines = text.split("\n");
let fenced = false, count = 0;
for (let i = 0; i < lines.length; i++) {
if (isFenceLine(lines[i])) {
fenced = !fenced;
continue;
}
if (fenced)
continue;
lines[i] = lines[i].replace(linkRegex2(), (whole, name, target, offset) => {
if (inInlineCode(lines[i], offset))
return whole;
const out = fn(name, target);
if (out == null)
return whole;
count++;
return out;
});
}
return { text: lines.join("\n"), count };
}
function rewriteFences(text, lang, fn) {
const lines = text.split("\n");
let count = 0;
for (let i = 0; i < lines.length; i++) {
const open = new RegExp("^\\s*(`{3,}|~{3,})\\s*" + lang + "\\s*$").exec(lines[i]);
if (!open)
continue;
const close = new RegExp("^\\s*" + open[1][0] + "{" + open[1].length + ",}\\s*$");
let j = i + 1;
while (j < lines.length && !close.test(lines[j]))
j++;
const body = lines.slice(i + 1, j);
const out = fn(body);
if (out) {
lines.splice(i + 1, body.length, ...out);
count++;
j = i + 1 + out.length;
}
i = j;
}
return { text: lines.join("\n"), count };
}
function wordAt(line, ch) {
const s = String(line == null ? "" : line);
if (!s)
return "";
const isWord = (c) => /[\p{L}\p{Nd}]/u.test(c || "");
const at = Math.max(0, Math.min(ch, s.length));
if (!isWord(s[at]) && !isWord(s[at - 1]))
return "";
let start = at;
while (start > 0 && isWord(s[start - 1]))
start--;
let end = at;
while (end < s.length && isWord(s[end]))
end++;
return s.slice(start, end);
}
module2.exports = { splitLines: splitLines2, linkRegex: linkRegex2, splitTarget: splitTarget2, withTitle: withTitle2, rewriteLinks, rewriteFences, isFenceLine, inInlineCode, locate, inCode: inCode2, inLink: inLink2, isProtected, inTableCell: inTableCell2, wordAt };
}
});
// src/constants.js
var require_constants = __commonJS({
"src/constants.js"(exports2, module2) {
"use strict";
var { splitLines: splitLines2 } = require_markdown();
var PRESETS2 = {
// {code-root} keeps the note portable: the file holds a relative path, the absolute code
// root is filled in on render/click. Namespaced, so a link says which linker owns it —
// the bare {root} it replaces was filled by the reference linker too.
vscode: "vscode://file/{code-root}/{path}:{line}",
// {jetbrainsProduct} resolves to the chosen JetBrains IDE (the "JetBrains IDE" setting).
jetbrains: "jetbrains://{jetbrainsProduct}/navigate/reference?project={project}&path={path}:{line}",
file: "file:///{code-root}/{path}",
// Web permalinks: {gitRemote}/{gitSha} come from the file's git repo at insert time,
// pinning the link to that exact commit. GitLab serves blobs under /-/blob.
github: "{gitRemote}/blob/{gitSha}/{path}#L{line}",
gitlab: "{gitRemote}/-/blob/{gitSha}/{path}#L{line}"
};
var PRISM_LANG2 = {
csharp: "csharp",
typescript: "typescript",
javascript: "javascript",
python: "python",
java: "java",
cpp: "cpp",
php: "php",
go: "go",
rust: "rust"
};
var JETBRAINS_PRODUCTS2 = [
["idea", "IntelliJ IDEA"],
["pycharm", "PyCharm"],
["webstorm", "WebStorm"],
["phpstorm", "PhpStorm"],
["rubymine", "RubyMine"],
["clion", "CLion"],
["goland", "GoLand"],
["rider", "Rider"],
["rustrover", "RustRover"],
["datagrip", "DataGrip"]
];
var DEFAULT_SETTINGS2 = {
trigger: "@@",
uriTemplate: PRESETS2.file,
jetbrainsProduct: "idea",
// IDE the JetBrains preset opens; {product} in the template
codeRoot: "",
// empty => parent folder of the vault
scanRoots: "",
// one path per line, relative to codeRoot
skipDirs: "obj\nbin\n.git\nLibrary\nTemp\nnode_modules",
// one folder name per line
editors: [],
// user-defined editor presets, each { name, template }
hiddenPresets: ["github", "gitlab"],
// presets kept out of the pickers; revealed on first run if the remote matches
presetsInitialized: false,
// whether the one-time preset reveal has run
recentPresets: [],
// preset keys, most-recent first, to float recent picks up the picker
askOnInsert: true,
// ask which editor format to use on every insert (vs. a fixed preset)
showStatusBar: false,
// show the active editor preset in the status bar, click to switch
enabledLanguages: null,
// null on first run => every built-in enabled
languagesFile: "code-languages.json",
// vault-relative JSON of extra/override languages
disabledKinds: [],
// "<langId>:<kind>" keys hidden from suggestions (query-time filter)
autoRefresh: true,
// watch scan folders and rebuild the index when code changes
hoverPreview: true,
// show the file-snippet popover when hovering a code link
hoverBefore: 3,
// preview lines shown above the target line
hoverAfter: 20,
// preview lines shown below the target line
markStaleLinks: true,
// underline links whose stored line has drifted from the code
minChars: 1,
maxResults: 12,
maxFileSizeKb: 2048,
// 0 = no limit; larger files are indexed by name only, not parsed
contextMenu: true,
// the "Convert"/"Find and open" items in the editor right-click menu
// Breaks a tie when a link lands in both our index and the reference linker's and carries
// no binding to say whose it is. A binding always decides on its own, so this only ever
// settles the genuinely ambiguous case.
linkPrecedence: 20
};
function parseSkip2(skipDirs) {
const names = /* @__PURE__ */ new Set();
const paths = /* @__PURE__ */ new Set();
for (const raw of splitLines2(skipDirs)) {
const s = raw.split("\\").join("/").replace(/^\.?\//, "").replace(/\/+$/, "");
if (!s)
continue;
if (s.includes("/"))
paths.add(s);
else
names.add(s);
}
return { names, paths };
}
function underSkip2(rel, skip) {
const segs = rel.split("/").filter(Boolean);
for (const s of segs)
if (skip.names.has(s))
return true;
if (skip.paths.size) {
let acc = "";
for (const seg of segs) {
acc = acc ? acc + "/" + seg : seg;
if (skip.paths.has(acc))
return true;
}
}
return false;
}
var LANGUAGES_TEMPLATE2 = `[
{
"id": "kotlin",
"name": "Kotlin",
"prism": "kotlin",
"extensions": [".kt", ".kts"],
"patterns": [
{ "re": "^\\\\s*(?:(?:public|private|internal|open|abstract|sealed|data)\\\\s+)*(class|interface|object)\\\\s+([A-Za-z_]\\\\w*)", "kindGroup": 1, "nameGroup": 2 },
{ "re": "^\\\\s*(?:(?:public|private|internal|override|suspend|inline)\\\\s+)*fun\\\\s+([A-Za-z_]\\\\w*)", "kind": "fn", "nameGroup": 1 }
]
}
]
`;
var PATH_CHAR = /[A-Za-z0-9_.-]/;
function pathInTarget2(dec, p) {
let from = 0, i;
while ((i = dec.indexOf(p, from)) !== -1) {
if (i === 0 || !PATH_CHAR.test(dec[i - 1]))
return true;
from = i + 1;
}
return false;
}
module2.exports = { PRESETS: PRESETS2, PRISM_LANG: PRISM_LANG2, JETBRAINS_PRODUCTS: JETBRAINS_PRODUCTS2, DEFAULT_SETTINGS: DEFAULT_SETTINGS2, LANGUAGES_TEMPLATE: LANGUAGES_TEMPLATE2, parseSkip: parseSkip2, underSkip: underSkip2, pathInTarget: pathInTarget2 };
}
});
// src/shared/binding.js
var require_binding = __commonJS({
"src/shared/binding.js"(exports2, module2) {
"use strict";
var ANCHORS = { sym: "sym", kind: "kind", sec: "sec", line: "hash" };
var TOKEN = /^(sym|kind|sec|line):(.+)$/;
var OWNERS = { code: ["sym", "kind", "hash"], reference: ["sec"] };
function ownerOf(binding) {
if (!binding)
return null;
const claimed = Object.keys(OWNERS).filter((owner) => OWNERS[owner].some((anchor) => binding[anchor]));
return claimed.length === 1 ? claimed[0] : null;
}
var bindingOwner2 = (title) => ownerOf(parseBinding2(title));
var ownsBinding = (title, owner) => bindingOwner2(title) === owner;
var LINE_RE2 = /:(\d+)(?=\D*$)/;
var PAGE_RE = /#page=(\d+)/i;
var encodeValue = (v) => String(v).replace(/[%"()\s]/g, (c) => "%" + c.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0"));
var decodeValue = (v) => v.replace(/%([0-9A-Fa-f]{2})/g, (_, h) => String.fromCharCode(parseInt(h, 16)));
function hashLine2(text) {
let h = 2166136261;
const s = String(text || "").trim();
for (let i = 0; i < s.length; i++) {
h ^= s.charCodeAt(i);
h = Math.imul(h, 16777619) >>> 0;
}
return h.toString(36);
}
function parseBinding2(title) {
const s = String(title || "").trim();
if (!s)
return null;
const b = { sym: "", kind: "", sec: "", hash: "" };
for (const word of s.split(/\s+/)) {
const m = TOKEN.exec(word);
if (!m)
return null;
b[ANCHORS[m[1]]] = decodeValue(m[2]);
}
return b.sym || b.kind || b.sec || b.hash ? b : null;
}
function formatBinding2(b) {
const parts = [];
if (b.sym)
parts.push("sym:" + encodeValue(b.sym));
if (b.kind)
parts.push("kind:" + encodeValue(b.kind));
if (b.sec)
parts.push("sec:" + encodeValue(b.sec));
if (b.hash)
parts.push("line:" + b.hash);
return parts.join(" ");
}
function bindStateFrom2(hits, stored) {
if (hits.includes(stored))
return null;
if (!hits.length)
return { state: "broken" };
const line = hits.reduce((a, n) => Math.abs(n - stored) < Math.abs(a - stored) ? n : a);
return { state: "stale", line };
}
module2.exports = { LINE_RE: LINE_RE2, PAGE_RE, OWNERS, hashLine: hashLine2, parseBinding: parseBinding2, formatBinding: formatBinding2, bindStateFrom: bindStateFrom2, ownerOf, bindingOwner: bindingOwner2, ownsBinding };
}
});
// src/shared/root-token.js
var require_root_token = __commonJS({
"src/shared/root-token.js"(exports2, module2) {
"use strict";
var OWNER_TOKENS = { code: "code-root", reference: "ref-root" };
var LEGACY_TOKEN = "root";
var tokenRe = (name) => new RegExp("\\{" + name + "\\}|%7B" + name + "%7D", "gi");
function rootTokenIn(url) {
const s = String(url == null ? "" : url);
for (const owner of Object.keys(OWNER_TOKENS)) {
if (tokenRe(OWNER_TOKENS[owner]).test(s))
return owner;
}
return tokenRe(LEGACY_TOKEN).test(s) ? "legacy" : null;
}
function ownsRootToken2(url, owner, claimLegacy) {
const found = rootTokenIn(url);
if (found === owner)
return true;
return found === "legacy" && !!claimLegacy;
}
function fillRoot(url, { owner, root, claimLegacy = false } = {}) {
const s = String(url == null ? "" : url);
if (!owner || !OWNER_TOKENS[owner])
return s;
let out = s.replace(tokenRe(OWNER_TOKENS[owner]), root);
if (claimLegacy)
out = out.replace(tokenRe(LEGACY_TOKEN), root);
return out;
}
function namespaceRoot2(url, owner) {
const s = String(url == null ? "" : url);
if (!owner || !OWNER_TOKENS[owner])
return s;
if (rootTokenIn(s) !== "legacy")
return s;
return s.replace(tokenRe(LEGACY_TOKEN), "{" + OWNER_TOKENS[owner] + "}");
}
module2.exports = { OWNER_TOKENS, LEGACY_TOKEN, rootTokenIn, ownsRootToken: ownsRootToken2, fillRoot, namespaceRoot: namespaceRoot2 };
}
});
// src/shared/menu.js
var require_menu = __commonJS({
"src/shared/menu.js"(exports2, module2) {
"use strict";
var obsidian = require("obsidian");
var submenuSupport = null;
function supportsSubmenu() {
if (submenuSupport !== null)
return submenuSupport;
submenuSupport = false;
try {
const probe = new obsidian.Menu();
probe.addItem((item) => {
submenuSupport = typeof item.setSubmenu === "function";
});
} catch (e) {
submenuSupport = false;
}
return submenuSupport;
}
function menuSection2(menu, label, grouped, icon) {
if (!grouped)
return menu;
if (!supportsSubmenu()) {
return {
addItem(cb) {
return menu.addItem((item) => {
const setTitle = item.setTitle.bind(item);
item.setTitle = (title) => setTitle(`${label}: ${title}`);
cb(item);
});
},
addSeparator() {
return menu.addSeparator();
}
};
}
let sub = null;
const ensure = () => {
if (!sub) {
menu.addItem((item) => {
item.setTitle(label);
if (icon)
item.setIcon(icon);
sub = item.setSubmenu();
});
}
return sub;
};
return {
addItem(cb) {
return ensure().addItem(cb);
},
addSeparator() {
return sub ? sub.addSeparator() : null;
}
};
}
var STORE = "__linkerMenuSections";
function sharedSection(menu, key, label, icon) {
if (!supportsSubmenu())
return menuSection2(menu, label, true);
let store = menu[STORE];
if (!store) {
store = {};
try {
Object.defineProperty(menu, STORE, { value: store, enumerable: false, configurable: true });
} catch (e) {
return menuSection2(menu, label, true, icon);
}
}
if (!store[key]) {
menu.addItem((item) => {
item.setTitle(label);
if (icon)
item.setIcon(icon);
store[key] = item.setSubmenu();
});
}
return store[key];
}
module2.exports = { menuSection: menuSection2, sharedSection, supportsSubmenu };
}
});
// src/shared/discover.js
var require_discover = __commonJS({
"src/shared/discover.js"(exports2, module2) {
"use strict";
var LINKER_API = 1;
function discoverLinkers(app, opts) {
const minVersion = opts && opts.minVersion || LINKER_API;
const found = [];
const plugins = app && app.plugins && app.plugins.plugins;
if (!plugins)
return found;
for (const id of Object.keys(plugins)) {
const plugin = plugins[id];
const provider = plugin && plugin.api && plugin.api.linker;
if (!provider || typeof provider.id !== "string")
continue;
if (!(provider.apiVersion >= minVersion))
continue;
found.push(provider);
}
return found;
}
function outranks(a, b) {
if (a.precedence !== b.precedence)
return (a.precedence || 0) > (b.precedence || 0);
return String(a.id) < String(b.id);
}
function drawsHere(peer, where) {
if (typeof peer.drawsIn !== "function")
return true;
const w = where || {};
try {
return peer.drawsIn(w.path, w.surface) !== false;
} catch (e) {
return true;
}
}
function foreignRanges(app, self, text, where) {
const ranges = [];
for (const peer of discoverLinkers(app)) {
if (peer.id === self.id || !outranks(peer, self))
continue;
if (typeof peer.matches !== "function" || !drawsHere(peer, where))
continue;
let matches;
try {
matches = peer.matches(text) || [];
} catch (e) {
matches = [];
}
for (const m of matches) {
if (m && typeof m.start === "number" && typeof m.end === "number")
ranges.push([m.start, m.end]);
}
}
return ranges.sort((a, b) => a[0] - b[0]);
}
function overlaps(ranges, s, e) {
for (const [rs, re] of ranges) {
if (rs >= e)
break;
if (re > s)
return true;
}
return false;
}
function ownedMatches(app, self, text, matches, where) {
if (!matches.length)
return matches;
const foreign = foreignRanges(app, self, text, where);
if (!foreign.length)
return matches;
return matches.filter((m) => !overlaps(foreign, m.start, m.end));
}
function yieldedCandidates(app, self, text, where) {
const out = [];
for (const peer of discoverLinkers(app)) {
if (peer.id === self.id || outranks(peer, self))
continue;
if (typeof peer.matches !== "function" || !drawsHere(peer, where))
continue;
let matches;
try {
matches = peer.matches(text) || [];
} catch (e) {
matches = [];
}
for (const m of matches) {
if (!m || typeof m.start !== "number" || typeof m.end !== "number")
continue;
out.push({
start: m.start,
end: m.end,
label: m.label || m.target || "",
target: m.target,
// The id survives a round trip through a DOM attribute; the opener is looked up
// again at click time.
id: peer.id,
source: peer.displayName || peer.id,
// How this row reads in an ambiguity list, asked of its owner and only when a list is
// actually drawn — every span on screen produces candidates, few are ever looked at.
describe: (display) => {
if (typeof peer.describe !== "function")
return null;
try {
return peer.describe(m.target, display);
} catch (e) {
return null;
}
},
open: (sourcePath, newTab) => {
if (typeof peer.open === "function")
peer.open(m.target, sourcePath, newTab);
},
hover: (event, targetEl, sourcePath, hoverParent) => {
if (typeof peer.hover === "function")
peer.hover(m.target, event, targetEl, sourcePath, hoverParent);
}
});
}
}
return out;
}
function candidatesFor(candidates, s, e) {
return candidates.filter((c) => c.start < e && c.end > s);
}
function peerSuggestions(app, self, query, sourcePath) {
const out = [];
for (const peer of discoverLinkers(app)) {
if (peer.id === self.id || typeof peer.suggest !== "function")
continue;
let items;
try {
items = peer.suggest(String(query || ""), sourcePath) || [];
} catch (e) {
items = [];
}
for (const it of items) {
if (!it || typeof it.label !== "string")
continue;
out.push({
label: it.label,
note: it.note || "",
target: it.target,
// null means "keep what the reader typed"; only the peer knows whether its
// candidate matched an inflection or completed a prefix.
display: it.display == null ? null : it.display,
id: peer.id,
source: peer.displayName || peer.id,
precedence: peer.precedence || 0,
// Answered by the row's owner, including whether to compose a link at all. A peer
// that predates `insertFor` has only `linkFor`, which always links — the right
// reading for a plugin with no plain-text mode to consult.
insert: (display, inTable) => {
if (typeof peer.insertFor === "function")
return peer.insertFor(it.target, display, inTable);
return typeof peer.linkFor === "function" ? peer.linkFor(it.target, display, inTable) : null;
}
});
}
}
return out;
}
function peersOffering(app, self, kind, text) {
const out = [];
for (const peer of discoverLinkers(app)) {
if (peer.id === self.id || typeof peer.offers !== "function")
continue;
let yes;
try {
yes = peer.offers(kind, text);
} catch (e) {
yes = false;
}
if (yes)
out.push(peer);
}
return out;
}
function siblingLinkers(app, self) {
return discoverLinkers(app).filter((p) => p.id !== self.id);
}
module2.exports = { LINKER_API, discoverLinkers, outranks, drawsHere, foreignRanges, overlaps, ownedMatches, yieldedCandidates, candidatesFor, peerSuggestions, peersOffering, siblingLinkers };
}
});
// src/shared/locales/common.js
var require_common = __commonJS({
"src/shared/locales/common.js"(exports2, module2) {
"use strict";
var en = {
"modal.andMore": "\u2026and {n} more",
"btn.apply": "Apply",
"btn.cancel": "Cancel",
"set.heading.maintenance": "Maintenance",
"set.rebuild.button": "Rebuild",
"set.precedence.name": "Priority among linker plugins",
"set.precedence.desc": "A word or link several linkers claim goes to the one highest in this list. You can only move this plugin \u2014 move the others from their own settings.",
"set.precedence.other": "Moved from its own settings",
"set.precedence.up": "Move up",
"set.precedence.down": "Move down"
};
var ru = {
"modal.andMore": "\u2026\u0438 \u0435\u0449\u0451 {n}",
"btn.apply": "\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C",
"btn.cancel": "\u041E\u0442\u043C\u0435\u043D\u0430",
"set.heading.maintenance": "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435",
"set.rebuild.button": "\u041F\u0435\u0440\u0435\u0441\u0442\u0440\u043E\u0438\u0442\u044C",
"set.precedence.name": "\u041F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0441\u0440\u0435\u0434\u0438 \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u0432-\u043B\u0438\u043D\u043A\u0435\u0440\u043E\u0432",
"set.precedence.desc": "\u0421\u043B\u043E\u0432\u043E \u0438\u043B\u0438 \u0441\u0441\u044B\u043B\u043A\u0443, \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0435\u0442\u0435\u043D\u0434\u0443\u044E\u0442 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043B\u0438\u043D\u043A\u0435\u0440\u043E\u0432, \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u0442 \u0442\u043E\u0442, \u043A\u0442\u043E \u0432\u044B\u0448\u0435 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435. \u041E\u0442\u0441\u044E\u0434\u0430 \u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u044D\u0442\u043E\u0442 \u043F\u043B\u0430\u0433\u0438\u043D \u2014 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u0435 \u0438\u0437 \u0441\u0432\u043E\u0438\u0445 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A.",
"set.precedence.other": "\u0414\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044F \u0438\u0437 \u0441\u0432\u043E\u0438\u0445 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",
"set.precedence.up": "\u0412\u044B\u0448\u0435",
"set.precedence.down": "\u041D\u0438\u0436\u0435"
};
var de = {
"modal.andMore": "\u2026und {n} weitere",
"btn.apply": "Anwenden",
"btn.cancel": "Abbrechen",
"set.heading.maintenance": "Wartung",
"set.rebuild.button": "Neu aufbauen"
};
var es = {
"modal.andMore": "\u2026y {n} m\xE1s",
"btn.apply": "Aplicar",
"btn.cancel": "Cancelar",
"set.heading.maintenance": "Mantenimiento",
"set.rebuild.button": "Reconstruir"
};
var fr = {
"modal.andMore": "\u2026et {n} de plus",
"btn.apply": "Appliquer",
"btn.cancel": "Annuler",
"set.heading.maintenance": "Maintenance",
"set.rebuild.button": "Reconstruire"
};
var uk = {
"modal.andMore": "\u2026\u0442\u0430 \u0449\u0435 {n}",
"btn.apply": "\u0417\u0430\u0441\u0442\u043E\u0441\u0443\u0432\u0430\u0442\u0438",
"btn.cancel": "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",
"set.heading.maintenance": "\u041E\u0431\u0441\u043B\u0443\u0433\u043E\u0432\u0443\u0432\u0430\u043D\u043D\u044F",
"set.rebuild.button": "\u041F\u0435\u0440\u0435\u0431\u0443\u0434\u0443\u0432\u0430\u0442\u0438"
};
module2.exports = { en, ru, de, es, fr, uk };
}
});
// src/shared/locales/prose.js
var require_prose = __commonJS({
"src/shared/locales/prose.js"(exports2, module2) {
"use strict";
var en = {
"noun.file": "file",
"noun.folder": "folder",
"scope.first": "first",
"scope.all": "all",
"menu.linkThisWord": "Link \u201C{display}\u201D",
"menu.linkHere": "Link \u201C{display}\u201D here",
"menu.linkDisplayTo": 'Link "{display}" to\u2026',
"menu.linkScopeTo": 'Link {scope} "{display}" to\u2026',
"menu.openThisWord": "Open \u201C{display}\u201D",
"modal.choose.title": "Which one?",
"set.heading.scope": "Scope",
"set.heading.matching": "Matching",
"set.languages.name": "Languages",
"set.languages.show": "Show languages",
"set.languages.hide": "Hide languages",
"set.lang.higher": "Higher priority",
"set.lang.lower": "Lower priority",
"set.linkFirstOnly.name": "Link first occurrence only",
"set.heading.highlighting": "Highlighting",
"set.highlightInReading.name": "Highlight in Reading view",
"set.editingHighlight.onSave": "On save",
"set.skipHeadings.name": "Skip headings",
"set.statusBar.name": "Status bar count",
"set.heading.autocomplete": "Autocomplete",
"set.linkSuggest.name": "Suggest links while typing",
"set.suggestMinChars.desc": "How many characters to type before suggestions appear.",
"set.suggestSkipAfter.name": "Skip after characters",
"set.suggestPlainText.name": "Insert plain text",
"set.suggestPlainText.desc": "Suggestions complete the word without turning it into a link.",
"set.heading.contextMenu": "Context menu",
// The shared submenu the exclusion items collect into, and their wording inside it, where
// the parent already names the word.
"exclude.group": "Exclude \u201C{value}\u201D",
"exclude.addShort": "Add to {noun}",
"exclude.removeShort": "Remove from {noun}",
"label.selection": "Selection",
"modal.leftAsText": "(left as text)",
"modal.skipOption": "skip",
"modal.materialize.summary": "Reviewing {files} file(s), {replacements} replacement(s).",
"modal.unlink.summary": "Reviewing {files} file(s), {links} link(s).",
"modal.choose.body": "This word has more than one match.",
"notice.noActiveNote": "No active note.",
"notice.noSelection": "Nothing selected.",
"notice.scopeSkipped": " Skipped {n} note(s) changed since the preview.",
"set.editingHighlight.live": "Live",
"set.editingHighlight.name": "Highlight in the editor",
"set.lang.invalid": "Invalid: {error}",
"set.languages.desc": "{enabled} of {total} enabled",
"set.matchMode.name": "Match mode",
"set.matchMode.exact": "Exact (case-insensitive)",
"set.matchMode.endingStrip": "Light ending strip",
"set.matchMode.stemmer": "Stemmer (best across forms)",
"kind.heading": "Heading",
"kind.term": "Term",
"kind.viaAlias": "via alias \u201C{form}\u201D",
"set.smartCase.name": "Smart case for acronyms",
"set.smartCase.desc": "Match mostly-uppercase terms (like \u201CIT\u201D or \u201CNASA\u201D) case-sensitively, so they don\u2019t link ordinary words.",
"set.scopeMode.name": "Where to link",
"set.scopeMode.vault": "The whole vault",
"set.scopeMode.folders": "Only chosen folders",
"set.suggestMinChars.name": "Minimum typed length",
"set.statusBarIncludeLinks.name": "Count existing links too",
"set.folderList.add": "Add path\u2026",
"set.folderList.addAria": "Add",
"plural.alias": { one: "{n} alias", other: "{n} aliases" }
};
var ru = {
"noun.file": "\u0444\u0430\u0439\u043B",
"noun.folder": "\u043F\u0430\u043F\u043A\u0443",
"scope.first": "\u043F\u0435\u0440\u0432\u043E\u0435",
"scope.all": "\u0432\u0441\u0435",
"menu.linkThisWord": "\u0421\u0432\u044F\u0437\u0430\u0442\u044C \xAB{display}\xBB",
"menu.linkHere": "\u0421\u0432\u044F\u0437\u0430\u0442\u044C \xAB{display}\xBB \u0437\u0434\u0435\u0441\u044C",
"menu.linkDisplayTo": "\u0421\u0432\u044F\u0437\u0430\u0442\u044C \xAB{display}\xBB \u0441\u2026",
"menu.linkScopeTo": "\u0421\u0432\u044F\u0437\u0430\u0442\u044C {scope} \xAB{display}\xBB \u0441\u2026",
"menu.openThisWord": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \xAB{display}\xBB",
"modal.choose.title": "\u041A\u0430\u043A\u043E\u0435 \u0438\u0437 \u0441\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439?",
"set.heading.scope": "\u041E\u0431\u043B\u0430\u0441\u0442\u044C",
"set.heading.matching": "\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435",
"set.languages.name": "\u042F\u0437\u044B\u043A\u0438",
"set.languages.show": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u044F\u0437\u044B\u043A\u0438",
"set.languages.hide": "\u0421\u043A\u0440\u044B\u0442\u044C \u044F\u0437\u044B\u043A\u0438",
"set.lang.higher": "\u0412\u044B\u0448\u0435 \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442",
"set.lang.lower": "\u041D\u0438\u0436\u0435 \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442",
"set.linkFirstOnly.name": "\u0421\u0432\u044F\u0437\u044B\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u0435\u0440\u0432\u043E\u0435 \u0432\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u0435",
"set.heading.highlighting": "\u041F\u043E\u0434\u0441\u0432\u0435\u0442\u043A\u0430",
"set.highlightInReading.name": "\u041F\u043E\u0434\u0441\u0432\u0435\u0442\u043A\u0430 \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0447\u0442\u0435\u043D\u0438\u044F",
"set.editingHighlight.onSave": "\u041F\u0440\u0438 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0438",
"set.skipHeadings.name": "\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0438",
"set.statusBar.name": "\u0421\u0447\u0451\u0442\u0447\u0438\u043A \u0432 \u0441\u0442\u0440\u043E\u043A\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",
"set.heading.autocomplete": "\u0410\u0432\u0442\u043E\u0434\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435",
"set.linkSuggest.name": "\u041F\u043E\u0434\u0441\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0438 \u043F\u0440\u0438 \u043D\u0430\u0431\u043E\u0440\u0435",
"set.suggestMinChars.desc": "\u0421\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u043D\u0430\u0431\u0440\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u043F\u043E\u044F\u0432\u044F\u0442\u0441\u044F \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438.",
"set.suggestSkipAfter.name": "\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0442\u044C \u043F\u043E\u0441\u043B\u0435 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",
"set.suggestPlainText.name": "\u0412\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u043F\u0440\u043E\u0441\u0442\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",
"set.suggestPlainText.desc": "\u041F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0430 \u0434\u043E\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442 \u0441\u043B\u043E\u0432\u043E, \u043D\u0435 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0435\u0433\u043E \u0432 \u0441\u0441\u044B\u043B\u043A\u0443.",
"set.heading.contextMenu": "\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",
"exclude.group": "\u0418\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u044C \xAB{value}\xBB",
"exclude.addShort": "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 {noun}",
"exclude.removeShort": "\u0423\u0431\u0440\u0430\u0442\u044C \u0438\u0437 {noun}",
"label.selection": "\u0412\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435",
"modal.leftAsText": "(\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043E \u0442\u0435\u043A\u0441\u0442\u043E\u043C)",
"modal.skipOption": "\u043F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C",
"modal.materialize.summary": "\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430: \u0444\u0430\u0439\u043B\u043E\u0432 \u2014 {files}, \u0437\u0430\u043C\u0435\u043D \u2014 {replacements}.",
"modal.unlink.summary": "\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430: \u0444\u0430\u0439\u043B\u043E\u0432 \u2014 {files}, \u0441\u0441\u044B\u043B\u043E\u043A \u2014 {links}.",
"modal.choose.body": "\u0423 \u044D\u0442\u043E\u0433\u043E \u0441\u043B\u043E\u0432\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439.",
"notice.noActiveNote": "\u041D\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0439 \u0437\u0430\u043C\u0435\u0442\u043A\u0438.",
"notice.noSelection": "\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u043E.",
"notice.scopeSkipped": " \u041F\u0440\u043E\u043F\u0443\u0449\u0435\u043D\u043E \u0437\u0430\u043C\u0435\u0442\u043E\u043A, \u0438\u0437\u043C\u0435\u043D\u0451\u043D\u043D\u044B\u0445 \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0435\u0432\u044C\u044E: {n}.",
"set.editingHighlight.live": "\u041D\u0430 \u043B\u0435\u0442\u0443",
"set.editingHighlight.name": "\u041F\u043E\u0434\u0441\u0432\u0435\u0442\u043A\u0430 \u0432 \u0440\u0435\u0434\u0430\u043A\u0442\u043E\u0440\u0435",
"set.lang.invalid": "\u041E\u0448\u0438\u0431\u043A\u0430: {error}",
"set.languages.desc": "\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E {enabled} \u0438\u0437 {total}",
"set.matchMode.name": "\u0420\u0435\u0436\u0438\u043C \u0441\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u044F",
"set.matchMode.exact": "\u0422\u043E\u0447\u043D\u043E\u0435 (\u0431\u0435\u0437 \u0443\u0447\u0451\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430)",
"set.matchMode.endingStrip": "\u041B\u0451\u0433\u043A\u043E\u0435 \u043E\u0442\u0441\u0435\u0447\u0435\u043D\u0438\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u0439",
"set.matchMode.stemmer": "\u0421\u0442\u0435\u043C\u043C\u0435\u0440 (\u043B\u0443\u0447\u0448\u0435 \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C)",
"kind.heading": "\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",
"kind.term": "\u0422\u0435\u0440\u043C\u0438\u043D",
"kind.viaAlias": "\u043F\u043E \u0430\u043B\u0438\u0430\u0441\u0443 \xAB{form}\xBB",
"set.smartCase.name": "\u0423\u043C\u043D\u044B\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u043B\u044F \u0430\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440",
"set.smartCase.desc": "\u0422\u0435\u0440\u043C\u0438\u043D\u044B \u0438\u0437 \u0437\u0430\u0433\u043B\u0430\u0432\u043D\u044B\u0445 \u0431\u0443\u043A\u0432 (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \xABIT\xBB \u0438\u043B\u0438 \xABNASA\xBB) \u0441\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u0441 \u0443\u0447\u0451\u0442\u043E\u043C \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0446\u0435\u043F\u043B\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u0441\u043B\u043E\u0432\u0430.",
"set.scopeMode.name": "\u0413\u0434\u0435 \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0442\u044C",
"set.scopeMode.vault": "\u0412\u0441\u0451 \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435",
"set.scopeMode.folders": "\u0422\u043E\u043B\u044C\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043F\u0430\u043F\u043A\u0438",
"set.suggestMinChars.name": "\u041C\u0438\u043D\u0438\u043C\u0443\u043C \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",
"set.statusBarIncludeLinks.name": "\u0421\u0447\u0438\u0442\u0430\u0442\u044C \u0438 \u0443\u0436\u0435 \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435",
"set.folderList.add": "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0443\u0442\u044C\u2026",
"set.folderList.addAria": "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",
"plural.alias": { one: "{n} \u043F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C", few: "{n} \u043F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C\u0430", many: "{n} \u043F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C\u043E\u0432", other: "{n} \u043F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C\u043E\u0432" }
};
var de = {
"noun.file": "Datei",
"noun.folder": "Ordner",
"scope.first": "erstes",
"scope.all": "alle",
"menu.linkDisplayTo": "\u201E{display}\u201C verlinken mit\u2026",
"menu.linkScopeTo": "{scope} \u201E{display}\u201C verlinken mit\u2026",
"modal.choose.title": "Begriff w\xE4hlen",
"set.heading.scope": "Bereich",
"set.heading.matching": "Abgleich",
"set.languages.name": "Sprachen",
"set.languages.show": "Sprachen anzeigen",
"set.languages.hide": "Sprachen ausblenden",
"set.lang.higher": "H\xF6here Priorit\xE4t",
"set.lang.lower": "Niedrigere Priorit\xE4t",
"set.linkFirstOnly.name": "Nur erstes Vorkommen verlinken",
"set.heading.highlighting": "Hervorhebung",
"set.highlightInReading.name": "In der Leseansicht hervorheben",
"set.editingHighlight.onSave": "Beim Speichern",
"set.skipHeadings.name": "\xDCberschriften \xFCberspringen",
"set.statusBar.name": "Z\xE4hler in der Statusleiste",
"set.heading.autocomplete": "Autovervollst\xE4ndigung",
"set.linkSuggest.name": "Links w\xE4hrend der Eingabe vorschlagen",
"set.suggestMinChars.desc": "Wie viele Zeichen einzugeben sind, bevor Vorschl\xE4ge erscheinen.",
"set.suggestSkipAfter.name": "Nach Zeichen \xFCberspringen",
"set.suggestPlainText.name": "Reinen Text einf\xFCgen",
"set.suggestPlainText.desc": "Vorschl\xE4ge vervollst\xE4ndigen das Wort, ohne daraus einen Link zu machen.",
"set.heading.contextMenu": "Kontextmen\xFC",
"label.selection": "Auswahl",
"modal.leftAsText": "\u2014 als Text belassen \u2014",
"modal.skipOption": "(\xFCberspringen \u2014 als Text belassen)",
"modal.materialize.summary": "Dateien: {files}, Ersetzungen: {replacements}",
"modal.unlink.summary": "Dateien: {files}, zu entfernende Links: {links}",
"modal.choose.body": "Dieses Wort passt zu mehr als einem Begriff \u2014 eines w\xE4hlen:",
"notice.noActiveNote": "Keine aktive Notiz",
"notice.noSelection": "Keine Auswahl",
"notice.scopeSkipped": ", {n} \xFCbersprungen (seit der Vorschau ge\xE4ndert)",
"set.editingHighlight.live": "Live (w\xE4hrend der Eingabe)",
"set.editingHighlight.name": "Beim Bearbeiten hervorheben",
"set.lang.invalid": "Ung\xFCltiges Modul: {error}",
"set.languages.desc": "Mitgelieferte Morphologie-Module \u2014 {enabled} von {total} aktiviert",
"set.matchMode.name": "Morphologie",
"set.matchMode.exact": "Exakter Treffer",
"set.matchMode.endingStrip": "Endungen abschneiden",
"set.matchMode.stemmer": "Stemmer (empfohlen)",
"kind.heading": "\xDCberschrift",
"kind.term": "Begriff",
"kind.viaAlias": "\xFCber Alias \u201E{form}\u201C",
"set.smartCase.name": "Schreibweise von Abk\xFCrzungen beachten",
"set.smartCase.desc": "\xDCberwiegend gro\xDFgeschriebene Begriffe (etwa \u201EIT\u201C oder \u201ENASA\u201C) werden nur bei gleicher Schreibweise verkn\xFCpft, damit sie keine gew\xF6hnlichen W\xF6rter erfassen.",
"set.scopeMode.name": "Verlinkungsbereich",
"set.scopeMode.vault": "\xDCberall",
"set.scopeMode.folders": "Nur aufgef\xFChrte Pfade",
"set.suggestMinChars.name": "Mindestanzahl Zeichen",
"set.statusBarIncludeLinks.name": "Direkte Links z\xE4hlen",
"plural.alias": { one: "{n} Alias", other: "{n} Aliasse" }
};
var es = {
"noun.file": "archivo",
"noun.folder": "carpeta",
"scope.first": "la primera",
"scope.all": "todas",
"menu.linkDisplayTo": "Enlazar \xAB{display}\xBB con\u2026",
"menu.linkScopeTo": "Enlazar {scope} \xAB{display}\xBB con\u2026",
"modal.choose.title": "Elegir un t\xE9rmino",
"set.heading.scope": "\xC1mbito",
"set.heading.matching": "Coincidencia",
"set.languages.name": "Idiomas",
"set.languages.show": "Mostrar idiomas",
"set.languages.hide": "Ocultar idiomas",
"set.lang.higher": "Mayor prioridad",
"set.lang.lower": "Menor prioridad",
"set.linkFirstOnly.name": "Enlazar solo la primera aparici\xF3n",
"set.heading.highlighting": "Resaltado",
"set.highlightInReading.name": "Resaltar en vista de lectura",
"set.editingHighlight.onSave": "Al guardar",
"set.skipHeadings.name": "Omitir encabezados",
"set.statusBar.name": "Contador en la barra de estado",
"set.heading.autocomplete": "Autocompletado",
"set.linkSuggest.name": "Sugerir enlaces al escribir",
"set.suggestMinChars.desc": "Cu\xE1ntos caracteres escribir antes de que aparezcan las sugerencias.",
"set.suggestSkipAfter.name": "Omitir tras caracteres",
"set.suggestPlainText.name": "Insertar texto sin enlace",
"set.suggestPlainText.desc": "Las sugerencias completan la palabra sin convertirla en un enlace.",
"set.heading.contextMenu": "Men\xFA contextual",
"label.selection": "selecci\xF3n",
"modal.leftAsText": "\u2014 dejado como texto \u2014",
"modal.skipOption": "(omitir \u2014 dejar como texto)",
"modal.materialize.summary": "Archivos: {files}, reemplazos: {replacements}",
"modal.unlink.summary": "Archivos: {files}, enlaces a eliminar: {links}",
"modal.choose.body": "Esta palabra coincide con m\xE1s de un t\xE9rmino \u2014 elige uno:",
"notice.noActiveNote": "No hay nota activa",
"notice.noSelection": "No hay selecci\xF3n",
"notice.scopeSkipped": ", {n} omitido(s) (cambiado desde la vista previa)",
"set.editingHighlight.live": "En vivo (mientras escribes)",
"set.editingHighlight.name": "Resaltar al editar",
"set.lang.invalid": "M\xF3dulo no v\xE1lido: {error}",
"set.languages.desc": "M\xF3dulos de morfolog\xEDa incluidos \u2014 {enabled} de {total} activados",
"set.matchMode.name": "Morfolog\xEDa",
"set.matchMode.exact": "Coincidencia exacta",
"set.matchMode.endingStrip": "Quitar terminaciones",
"set.matchMode.stemmer": "Lematizador (recomendado)",
"kind.heading": "Encabezado",
"kind.term": "T\xE9rmino",
"kind.viaAlias": "por el alias \xAB{form}\xBB",
"set.smartCase.name": "Distinguir may\xFAsculas en siglas",
"set.smartCase.desc": "Los t\xE9rminos escritos casi todo en may\xFAsculas (como \xABIT\xBB o \xABNASA\xBB) solo coinciden con esa misma graf\xEDa, para que no enlacen palabras corrientes.",
"set.scopeMode.name": "\xC1mbito de enlazado",
"set.scopeMode.vault": "En todas partes",
"set.scopeMode.folders": "Solo rutas indicadas",
"set.suggestMinChars.name": "Caracteres m\xEDnimos",
"set.statusBarIncludeLinks.name": "Contar enlaces directos",
"plural.alias": { one: "{n} alias", other: "{n} alias" }
};
var fr = {
"noun.file": "fichier",
"noun.folder": "dossier",
"scope.first": "la premi\xE8re",
"scope.all": "toutes",
"menu.linkDisplayTo": "Lier \xAB {display} \xBB \xE0\u2026",
"menu.linkScopeTo": "Lier {scope} \xAB {display} \xBB \xE0\u2026",
"modal.choose.title": "Choisir un terme",
"set.heading.scope": "Port\xE9e",
"set.heading.matching": "Correspondance",
"set.languages.name": "Langues",
"set.languages.show": "Afficher les langues",
"set.languages.hide": "Masquer les langues",
"set.lang.higher": "Priorit\xE9 plus haute",
"set.lang.lower": "Priorit\xE9 plus basse",