Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Add appliesTo folder picker (PRD-7648) (#3401)

serafin-garciacf508e61b37a
diff --git a/.changeset/frontmatter-glob-folder-picker.md b/.changeset/frontmatter-glob-folder-picker.md
new file mode 100644
index 000000000..2b3f7fb06
--- /dev/null
+++ b/.changeset/frontmatter-glob-folder-picker.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Frontmatter schema mappings can now be scoped by picking folders from a checkbox tree instead of hand-writing globs. Each schema row in Settings → Plugins → Frontmatter schemas gains a "Pick folders" button that shows the project's folder tree with per-folder doc counts; checking a folder writes the `folder/**` pattern it stands for, and the generated glob stays visible in the pattern list next to anything written by hand, which remains untouched as the power-user escape hatch. The plain-language summary under the patterns now also reports "Matches N of M docs right now", computed live against the project's actual documents — so a bare folder name like `blog` (which matches nothing; the pattern needs to be `blog/**`) is visible as "Matches 0 of M docs" the moment it's typed, instead of only after the server's zero-match warning lands.
diff --git a/docs/content/advanced/content-rules/frontmatter.mdx b/docs/content/advanced/content-rules/frontmatter.mdx
index 7b157431a..f5ddb3a9d 100644
--- a/docs/content/advanced/content-rules/frontmatter.mdx
+++ b/docs/content/advanced/content-rules/frontmatter.mdx
@@ -100,7 +100,7 @@ Frontmatter findings are always **warnings** — there's no severity promotion y
## The settings editor
-**Settings ▸ Plugins ▸ Frontmatter schemas** (once the plugin is enabled) lists the project's schema files: search, and **New schema** to scaffold a fresh file in `.ok/schemas/`. Each entry shows a plain-language summary of its scope ("everything under docs/ — except any doc named index"), an editor for the `appliesTo` globs, an enable toggle, and delete for schema files OK manages.
+**Settings ▸ Plugins ▸ Frontmatter schemas** (once the plugin is enabled) lists the project's schema files: search, and **New schema** to scaffold a fresh file in `.ok/schemas/`. Each entry shows a plain-language summary of its scope ("everything under docs/ — except any doc named index") with a live match count ("Matches 12 of 40 docs right now"), a **Pick folders** button, an editor for the `appliesTo` globs, an enable toggle, and delete for schema files OK manages. **Pick folders** scopes a schema to folders without hand-writing glob syntax: checking a folder authors its recursive `folder/**` pattern into the glob editor, and unchecking removes it. The live count is the immediate tell when a hand-typed pattern misses (a bare folder name like `blog` matches only a doc literally named `blog`, so it reads "Matches 0 of N docs right now" until it becomes `blog/**`).
The toggle is the only control over whether a schema validates. Turning it off keeps the schema's `appliesTo` globs, so turning it back on restores them — the toggle never discards the mapping. To drop a schema from `config.yml` entirely, edit `config.yml` directly. (Deleting a schema file is the one destructive action here: it removes the file and, with it, its `config.yml` mapping.)
diff --git a/packages/app/BUNDLE-SIZE.md b/packages/app/BUNDLE-SIZE.md
index 0f97952c1..e29533619 100644
--- a/packages/app/BUNDLE-SIZE.md
+++ b/packages/app/BUNDLE-SIZE.md
@@ -61,6 +61,8 @@ Combined-chunks 4.4->4.5 MB once every catalog held real translations rather tha
Combined-chunks 4.5->4.7 MB merging the ACP-highlighting branch onto the language catalogs: the two lazy features stack — eleven on-demand locale catalogs plus the curated shiki grammar chunk — and measured 4.6 MB locally, ~4.66 MB projected in CI at the ~1.4% local->CI ratio, 104 kB over the 4.5 ceiling that was set before the highlighter existed. The main app bundle and CSS stay under their limits; both features load nothing until used (a catalog on locale switch, the grammar chunk on the first fenced code block). Reclamation levers: trim the grammar list, or the catalog-weight notes above.
+Combined-chunks 4.7->4.71 MB for the frontmatter-schema folder picker: the searchable multi-select UI, live glob-match diagnostics, and their translations across all supported locale chunks measured 4,701,170 B in CI, 1,170 B over the prior ceiling. The eager app bundle remains 415.93 kB against 487 kB and CSS remains 8.36 kB against 59 kB; this is a measured 10 kB combined-budget increment for the shipped feature rather than an eager-loading regression.
+
Combined-chunks 4.7->4.72 MB for uniform local-target classification and image failure states across the editor, Problems, Links, and source diagnostics. CI measured 4.71 MB, 8.53 kB over the prior ceiling, while the main app bundle remained at 418.08 kB against its 487 kB limit and CSS at 8.36 kB against 59 kB. The increase therefore records the feature's total chunk footprint rather than first-load growth; the pre-existing lazy-load levers above remain the reclamation path.
Combined-chunks kept at 4.75 MB when merging main. Both sides had raised the same budget off a 4.7 MB base that had no headroom left: this branch to 4.75 for the gitignored-skill dialog (measured 364 B over, 0.008%), main to 4.72 for the entry above. The merged tree carries both features, so the resolution takes the higher ceiling rather than either side's number. CI measured 4.7 MB against 4.75 on the pre-merge branch head and the post-merge tree measures 4.69 MB locally, where local reads a little under CI. The lazy-load levers above remain the reclamation path.
diff --git a/packages/app/package.json b/packages/app/package.json
index 782386f8a..4d4fcbf48 100644
--- a/packages/app/package.json
+++ b/packages/app/package.json
@@ -27,7 +27,7 @@
"measure:stress": "bash scripts/measure-stress.sh",
"measure:sweep": "bash scripts/measure-sweep.sh",
"perf:compare": "bash scripts/perf-compare.sh",
- "test:e2e": "playwright test tests/stress/ux-interactions.e2e.ts tests/stress/file-tree-create.e2e.ts tests/stress/file-tree-drag-to-root.e2e.ts tests/stress/file-tree-deselect-to-root.e2e.ts tests/stress/file-tree-collapse-spaced-folder.e2e.ts tests/stress/sidebar-file-list-fills.e2e.ts tests/stress/file-tree-sticky-collapse.e2e.ts tests/stress/create-then-rename-editable.e2e.ts tests/stress/find-replace.e2e.ts tests/stress/editor-tabs.e2e.ts tests/stress/crdt-stress.e2e.ts tests/stress/slash-command.e2e.ts tests/stress/paste-fidelity.e2e.ts tests/stress/fr-7a-disconnect-source-mode.e2e.ts tests/stress/docs-open.e2e.ts tests/stress/frozen-table-headers.e2e.ts tests/stress/asset-embed.e2e.ts tests/stress/asset-embed-advanced.e2e.ts tests/stress/asset-click-dispatch.e2e.ts tests/stress/handoff.e2e.ts tests/stress/multi-agent-presence.e2e.ts tests/stress/editor-mode-persistence.e2e.ts tests/stress/lint-config-toggle.e2e.ts tests/stress/plugin-enable-notice.e2e.ts tests/stress/schema-edit-fields-view.e2e.ts tests/stress/sidebar-search-pill.e2e.ts tests/stress/navigation-history.e2e.ts tests/stress/command-palette-semantic.e2e.ts tests/stress/agent-activity-panel.e2e.ts tests/stress/drop-pipeline-auto-open.e2e.ts tests/stress/command-palette-flicker.e2e.ts tests/stress/cm6-list-hanging-indent.e2e.ts tests/stress/ng7-rapid-nav-coherence.e2e.ts tests/stress/reveal-on-activate.e2e.ts tests/stress/selection-indicator.e2e.ts tests/stress/new-file-cross-doc-bleed.e2e.ts tests/stress/editor-mode-flip-cross-doc-bleed.e2e.ts tests/stress/editor-area-viewport-resize.e2e.ts tests/stress/qa-sidebar-responsive.e2e.ts tests/stress/prd-6955-reassertion-repro.e2e.ts tests/stress/prd-6955-reassertion-wedge.e2e.ts tests/stress/prd-6914-repro.e2e.ts tests/stress/showall-lazy-tree.e2e.ts tests/stress/tabs-component-strip.e2e.ts tests/stress/source-find-scroll.e2e.ts tests/stress/harness-app-warmth.e2e.ts tests/stress/qa-canary-authoring-both-modes.e2e.ts tests/stress/qa-canary-live-typing.e2e.ts tests/stress/keystroke-cadence-danger-space.e2e.ts tests/stress/jsx-unregistered-backspace-delete.e2e.ts tests/stress/jsx-unregistered-ime-concurrent.e2e.ts tests/stress/jsx-backspace-delete.e2e.ts tests/stress/link-authoring-bytes.e2e.ts tests/stress/link-authoring-apex.e2e.ts tests/stress/command-palette-parity.e2e.ts tests/stress/settings-search.e2e.ts tests/stress/chip-popover-positioning.e2e.ts tests/stress/docs-open-scroll-restore.e2e.ts tests/stress/file-tree-decoration-chip-strip-repro.e2e.ts tests/stress/grip-click-nodeselect.e2e.ts tests/stress/jsx-halo-semantics.e2e.ts tests/stress/jsx-image-body-click.e2e.ts tests/stress/jsx-prop-panel-placeholder.e2e.ts tests/stress/jsx-range-encompass-halo.e2e.ts tests/stress/jsx-wildcard-convert.e2e.ts tests/stress/markdown-lint.e2e.ts tests/stress/frontmatter-schema-badge.e2e.ts tests/stress/unified-problems.e2e.ts tests/stress/mid-type-recovery.e2e.ts tests/stress/observer-a-multi-client.e2e.ts tests/stress/outline-toolbar-occlusion.e2e.ts tests/stress/quiet-tree-hidden-doc.e2e.ts tests/stress/raw-mdx-fallback-onblur-upgrade.e2e.ts tests/stress/rename-noext-probe.e2e.ts tests/stress/show-ok-folders.e2e.ts tests/stress/source-polish.e2e.ts tests/stress/warm-skeleton-scroll-restore.e2e.ts tests/stress/props-toggle-scroll-preserve.e2e.ts tests/stress/yjs-no-dual-import.e2e.ts tests/stress/graph-panel-surfaces.e2e.ts tests/stress/asset-embed-real-fidelity.e2e.ts tests/stress/image-invalid-placeholder.e2e.ts tests/stress/local-target-audit.e2e.ts tests/stress/rename-content-preservation.e2e.ts tests/stress/rename-consolidation.e2e.ts tests/stress/outline-active-heading.e2e.ts tests/stress/outline-navigation.e2e.ts tests/stress/prd-7627-default-swatch.e2e.ts tests/stress/clipboard-dollar-math-source-fallback.e2e.ts tests/stress/source-mode-undo-keymap.e2e.ts tests/stress/timeline-recovered-restore.e2e.ts tests/stress/blank-line-preservation.e2e.ts tests/stress/landing-helpers.e2e.ts tests/stress/mode-switch-landing.e2e.ts tests/stress/mode-switch-ordinal-divergence.e2e.ts tests/stress/comment-annotation-visibility.e2e.ts tests/stress/qa-miles-edge-blanks.e2e.ts tests/stress/prop-upload.e2e.ts tests/stress/slash-command-auto-open.e2e.ts tests/stress/clipboard-relative-url-source-fallback.e2e.ts tests/stress/editor-split-view.e2e.ts tests/stress/language-load-failure.e2e.ts tests/stress/language-first-paint.e2e.ts tests/stress/user-text-direction.e2e.ts tests/stress/pseudolocale.e2e.ts tests/stress/language-picker.e2e.ts tests/stress/zh-hans-coverage-sweep.e2e.ts tests/stress/preview-tab-promotion.e2e.ts",
+ "test:e2e": "playwright test tests/stress/ux-interactions.e2e.ts tests/stress/file-tree-create.e2e.ts tests/stress/file-tree-drag-to-root.e2e.ts tests/stress/file-tree-deselect-to-root.e2e.ts tests/stress/file-tree-collapse-spaced-folder.e2e.ts tests/stress/sidebar-file-list-fills.e2e.ts tests/stress/file-tree-sticky-collapse.e2e.ts tests/stress/create-then-rename-editable.e2e.ts tests/stress/find-replace.e2e.ts tests/stress/editor-tabs.e2e.ts tests/stress/crdt-stress.e2e.ts tests/stress/slash-command.e2e.ts tests/stress/paste-fidelity.e2e.ts tests/stress/fr-7a-disconnect-source-mode.e2e.ts tests/stress/docs-open.e2e.ts tests/stress/frozen-table-headers.e2e.ts tests/stress/asset-embed.e2e.ts tests/stress/asset-embed-advanced.e2e.ts tests/stress/asset-click-dispatch.e2e.ts tests/stress/handoff.e2e.ts tests/stress/multi-agent-presence.e2e.ts tests/stress/editor-mode-persistence.e2e.ts tests/stress/lint-config-toggle.e2e.ts tests/stress/plugin-enable-notice.e2e.ts tests/stress/schema-edit-fields-view.e2e.ts tests/stress/sidebar-search-pill.e2e.ts tests/stress/navigation-history.e2e.ts tests/stress/command-palette-semantic.e2e.ts tests/stress/agent-activity-panel.e2e.ts tests/stress/drop-pipeline-auto-open.e2e.ts tests/stress/command-palette-flicker.e2e.ts tests/stress/cm6-list-hanging-indent.e2e.ts tests/stress/ng7-rapid-nav-coherence.e2e.ts tests/stress/reveal-on-activate.e2e.ts tests/stress/selection-indicator.e2e.ts tests/stress/new-file-cross-doc-bleed.e2e.ts tests/stress/editor-mode-flip-cross-doc-bleed.e2e.ts tests/stress/editor-area-viewport-resize.e2e.ts tests/stress/qa-sidebar-responsive.e2e.ts tests/stress/prd-6955-reassertion-repro.e2e.ts tests/stress/prd-6955-reassertion-wedge.e2e.ts tests/stress/prd-6914-repro.e2e.ts tests/stress/showall-lazy-tree.e2e.ts tests/stress/tabs-component-strip.e2e.ts tests/stress/source-find-scroll.e2e.ts tests/stress/harness-app-warmth.e2e.ts tests/stress/qa-canary-authoring-both-modes.e2e.ts tests/stress/qa-canary-live-typing.e2e.ts tests/stress/keystroke-cadence-danger-space.e2e.ts tests/stress/jsx-unregistered-backspace-delete.e2e.ts tests/stress/jsx-unregistered-ime-concurrent.e2e.ts tests/stress/jsx-backspace-delete.e2e.ts tests/stress/link-authoring-bytes.e2e.ts tests/stress/link-authoring-apex.e2e.ts tests/stress/command-palette-parity.e2e.ts tests/stress/settings-search.e2e.ts tests/stress/chip-popover-positioning.e2e.ts tests/stress/docs-open-scroll-restore.e2e.ts tests/stress/file-tree-decoration-chip-strip-repro.e2e.ts tests/stress/grip-click-nodeselect.e2e.ts tests/stress/jsx-halo-semantics.e2e.ts tests/stress/jsx-image-body-click.e2e.ts tests/stress/jsx-prop-panel-placeholder.e2e.ts tests/stress/jsx-range-encompass-halo.e2e.ts tests/stress/jsx-wildcard-convert.e2e.ts tests/stress/markdown-lint.e2e.ts tests/stress/frontmatter-schema-badge.e2e.ts tests/stress/frontmatter-glob-picker.e2e.ts tests/stress/unified-problems.e2e.ts tests/stress/mid-type-recovery.e2e.ts tests/stress/observer-a-multi-client.e2e.ts tests/stress/outline-toolbar-occlusion.e2e.ts tests/stress/quiet-tree-hidden-doc.e2e.ts tests/stress/raw-mdx-fallback-onblur-upgrade.e2e.ts tests/stress/rename-noext-probe.e2e.ts tests/stress/show-ok-folders.e2e.ts tests/stress/source-polish.e2e.ts tests/stress/warm-skeleton-scroll-restore.e2e.ts tests/stress/props-toggle-scroll-preserve.e2e.ts tests/stress/yjs-no-dual-import.e2e.ts tests/stress/graph-panel-surfaces.e2e.ts tests/stress/asset-embed-real-fidelity.e2e.ts tests/stress/image-invalid-placeholder.e2e.ts tests/stress/local-target-audit.e2e.ts tests/stress/rename-content-preservation.e2e.ts tests/stress/rename-consolidation.e2e.ts tests/stress/outline-active-heading.e2e.ts tests/stress/outline-navigation.e2e.ts tests/stress/prd-7627-default-swatch.e2e.ts tests/stress/clipboard-dollar-math-source-fallback.e2e.ts tests/stress/source-mode-undo-keymap.e2e.ts tests/stress/timeline-recovered-restore.e2e.ts tests/stress/blank-line-preservation.e2e.ts tests/stress/landing-helpers.e2e.ts tests/stress/mode-switch-landing.e2e.ts tests/stress/mode-switch-ordinal-divergence.e2e.ts tests/stress/comment-annotation-visibility.e2e.ts tests/stress/qa-miles-edge-blanks.e2e.ts tests/stress/prop-upload.e2e.ts tests/stress/slash-command-auto-open.e2e.ts tests/stress/clipboard-relative-url-source-fallback.e2e.ts tests/stress/editor-split-view.e2e.ts tests/stress/language-load-failure.e2e.ts tests/stress/language-first-paint.e2e.ts tests/stress/user-text-direction.e2e.ts tests/stress/pseudolocale.e2e.ts tests/stress/language-picker.e2e.ts tests/stress/zh-hans-coverage-sweep.e2e.ts tests/stress/preview-tab-promotion.e2e.ts",
"test:e2e:install-browsers": "playwright install chromium webkit firefox",
"test:visual": "playwright test --config playwright.visual.config.ts",
"test:visual:update": "playwright test --config playwright.visual.config.ts --update-snapshots",
diff --git a/packages/app/src/components/settings/FrontmatterPluginSection.dom.test.tsx b/packages/app/src/components/settings/FrontmatterPluginSection.dom.test.tsx
index 8f2c01023..9762a10d6 100644
--- a/packages/app/src/components/settings/FrontmatterPluginSection.dom.test.tsx
+++ b/packages/app/src/components/settings/FrontmatterPluginSection.dom.test.tsx
@@ -19,6 +19,10 @@ if (globalWithDomShims.ResizeObserver === undefined) {
}
globalWithDomShims.ResizeObserver = NoopResizeObserver;
}
+// jsdom does not implement scrollIntoView; cmdk (the folder picker) calls it.
+if (typeof HTMLElement.prototype.scrollIntoView !== 'function') {
+ HTMLElement.prototype.scrollIntoView = () => {};
+}
let mockProjectConfig: Partial<Config> | null = null;
const patches: ConfigPatch[] = [];
@@ -75,6 +79,14 @@ vi.doMock('@/editor/lint-config-client', () => ({
},
}));
+// Null (no provider) by default so the folder picker and match-count line stay
+// out of the frame for the browser-behavior tests; the picker-wiring tests set
+// a value.
+let mockPageListValue: { pages: Set<string>; folderPaths: Set<string> } | null = null;
+vi.doMock('@/components/PageListContext', () => ({
+ useOptionalPageList: () => mockPageListValue,
+}));
+
const { FrontmatterPluginSection } = await import('./LintingSection.tsx');
const { TooltipProvider } = await import('@/components/ui/tooltip');
@@ -119,6 +131,7 @@ beforeEach(() => {
deleted.length = 0;
lintConfigChangedCount = 0;
mockLintData = null;
+ mockPageListValue = null;
mockDiscovered = ['.ok/schemas/doc.schema.json', 'schemas/local.schema.json'];
mockProjectConfig = configWithMappings([
{ appliesTo: ['docs/**'], file: '.ok/schemas/doc.schema.json', enabled: true },
@@ -534,3 +547,68 @@ describe('FrontmatterPluginSection — findings with no pill to land on', () =>
expect(screen.queryByTestId('frontmatter-config-problems')).toBeNull();
});
});
+
+describe('FrontmatterPluginSection — folder picker + live match count', () => {
+ const FILE = '.ok/schemas/doc.schema.json';
+
+ function withPages() {
+ mockPageListValue = {
+ pages: new Set(['blog/a', 'blog/nested/b', 'docs/c', 'root-doc']),
+ folderPaths: new Set(['blog', 'blog/nested', 'docs']),
+ };
+ }
+
+ test('without a page-list provider, neither picker nor count renders', () => {
+ renderSection();
+ expect(screen.queryByTestId(`frontmatter-schema-pick-folders-${FILE}`)).toBeNull();
+ expect(screen.queryByTestId(`frontmatter-schema-match-count-${FILE}`)).toBeNull();
+ });
+
+ test('checking a folder appends its recursive glob to the mapping', () => {
+ withPages();
+ renderSection();
+ fireEvent.click(screen.getByTestId(`frontmatter-schema-pick-folders-${FILE}`));
+ fireEvent.click(screen.getByTestId(`frontmatter-schema-folder-item-${FILE}-blog`));
+ expect(lastSchemas()[0]?.appliesTo).toEqual(['docs/**', 'blog/**']);
+ });
+
+ test('unchecking a picked folder removes its glob from the mapping', () => {
+ withPages();
+ renderSection();
+ fireEvent.click(screen.getByTestId(`frontmatter-schema-pick-folders-${FILE}`));
+ fireEvent.click(screen.getByTestId(`frontmatter-schema-folder-item-${FILE}-docs`));
+ // The mapping's only glob is gone — appliesTo drops entirely (every doc).
+ expect(lastSchemas()[0]?.appliesTo).toBeUndefined();
+ });
+
+ test('the summary line counts matched docs live', () => {
+ withPages();
+ renderSection();
+ expect(screen.getByTestId(`frontmatter-schema-match-count-${FILE}`).textContent).toContain(
+ 'Matches 1 of 4 docs right now.',
+ );
+ });
+
+ test('a pattern matching nothing reads 0 — the bare-folder-name trap is visible', () => {
+ withPages();
+ mockProjectConfig = configWithMappings([{ appliesTo: ['blog'], file: FILE, enabled: true }]);
+ renderSection();
+ expect(screen.getByTestId(`frontmatter-schema-match-count-${FILE}`).textContent).toContain(
+ 'Matches 0 of 4 docs right now.',
+ );
+ });
+
+ test('a zero-match bare folder still teaches /** beside a live sibling pattern', () => {
+ withPages();
+ mockProjectConfig = configWithMappings([
+ { appliesTo: ['blog', 'docs/**'], file: FILE, enabled: true },
+ ]);
+ renderSection();
+
+ const matchCount = screen.getByTestId(`frontmatter-schema-match-count-${FILE}`);
+ expect(matchCount.textContent).toContain('Matches 1 of 4 docs right now.');
+ expect(matchCount.textContent).toContain(
+ "(a bare folder name needs /** after it to match what's inside)",
+ );
+ });
+});
diff --git a/packages/app/src/components/settings/LintingSection.tsx b/packages/app/src/components/settings/LintingSection.tsx
index c69141d91..c61fda337 100644
--- a/packages/app/src/components/settings/LintingSection.tsx
+++ b/packages/app/src/components/settings/LintingSection.tsx
@@ -15,16 +15,18 @@ import {
type ConfigBinding,
type ConfigPatch,
type FrontmatterSchemaMapping,
+ findZeroMatchAppliesToPatterns,
humanFormat,
isFrontmatterSchemaAsset,
type LintPluginId,
summarizeAppliesTo,
} from '@inkeep/open-knowledge-core';
-import { Trans, useLingui } from '@lingui/react/macro';
+import { Plural, Trans, useLingui } from '@lingui/react/macro';
import { ArrowUpRight, Plus, SquarePen, Trash2 } from 'lucide-react';
import { useState } from 'react';
import { toast } from 'sonner';
import { DeleteConfirmationDialog } from '@/components/DeleteConfirmationDialog';
+import { useOptionalPageList } from '@/components/PageListContext';
import { AlertDialog } from '@/components/ui/alert-dialog';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -43,6 +45,8 @@ import { useConfigContext } from '@/lib/config-provider';
import { hashFromAssetPath } from '@/lib/doc-hash';
import { dispatchExternalLinkClick } from '@/lib/external-link';
import { requestSchemaFieldsView } from '@/lib/schema-fields-view-intent';
+import { countMatchingDocs } from './applies-to-folder-globs';
+import { AppliesToFolderPicker } from './applies-to-folder-picker';
import { indexGlobProblemsByFile, parseAppliesToGlobProblem } from './applies-to-glob-problems';
import { LINT_PLUGIN_META } from './lint-plugin-meta';
import { MarkdownlintRuleBrowser } from './markdownlint-rule-browser';
@@ -375,6 +379,25 @@ function AppliesToSummaryLine({
appliesTo: FrontmatterSchemaMapping['appliesTo'];
}) {
const { includes, excludes } = summarizeAppliesTo(appliesTo);
+ const pageList = useOptionalPageList();
+ // Live count over the project's actual docs — the immediate counterpart to
+ // the server's after-the-fact zero-match warning. An authored set matching
+ // nothing (the `blog`-instead-of-`blog/**` trap) reads "0 of N" the moment
+ // it's typed. A polite status line: zero is de-emphasized rather than
+ // alarmed.
+ const counted =
+ pageList !== null && pageList.pages.size > 0
+ ? countMatchingDocs(appliesTo, pageList.pages)
+ : null;
+ const zeroMatch =
+ counted !== null && counted.matched === 0 && appliesToList(appliesTo).length > 0;
+ // Diagnose each authored pattern independently: a live sibling must not
+ // hide a bare folder name that still matches nothing on its own.
+ const zeroMatchPatterns =
+ pageList !== null ? findZeroMatchAppliesToPatterns(appliesTo, [...pageList.pages]) : [];
+ const zeroMatchBareNameAuthored = zeroMatchPatterns.some((pattern) =>
+ summarizeAppliesTo(pattern).includes.some((entry) => entry.kind === 'exact'),
+ );
const list = (entries: AppliesToPatternSummary[]) =>
entries.map((entry, index) => (
// biome-ignore lint/suspicious/noArrayIndexKey: display-only phrase list, order-stable.
@@ -401,6 +424,34 @@ function AppliesToSummaryLine({
</>
) : null}
.
+ {counted !== null ? (
+ <span
+ role="status"
+ aria-live="polite"
+ className={zeroMatch ? 'text-muted-foreground/70' : undefined}
+ data-testid={`frontmatter-schema-match-count-${file}`}
+ >
+ {' '}
+ <Plural
+ value={counted.total}
+ one={
+ <Trans>
+ Matches {counted.matched} of {counted.total} doc right now.
+ </Trans>
+ }
+ other={
+ <Trans>
+ Matches {counted.matched} of {counted.total} docs right now.
+ </Trans>
+ }
+ />
+ {zeroMatchBareNameAuthored ? (
+ <span className="ml-1 text-muted-foreground/60">
+ <Trans>(a bare folder name needs /** after it to match what's inside)</Trans>
+ </span>
+ ) : null}
+ </span>
+ ) : null}
</p>
);
}
@@ -485,6 +536,12 @@ function SchemaFileRow({
<Label htmlFor={`frontmatter-schema-applies-${file}`} className="text-xs">
<Trans>Applies to (globs — leading ! excludes; empty means every doc)</Trans>
</Label>
+ <AppliesToFolderPicker
+ file={file}
+ globs={appliesToList(mapping?.appliesTo)}
+ disabled={disabled}
+ onChange={onAppliesToChange}
+ />
<TagPillInput
id={`frontmatter-schema-applies-${file}`}
value={appliesToList(mapping?.appliesTo)}
diff --git a/packages/app/src/components/settings/applies-to-folder-globs.test.ts b/packages/app/src/components/settings/applies-to-folder-globs.test.ts
new file mode 100644
index 000000000..c19fe3471
--- /dev/null
+++ b/packages/app/src/components/settings/applies-to-folder-globs.test.ts
@@ -0,0 +1,131 @@
+import { describe, expect, test } from 'vitest';
+import {
+ buildFolderRows,
+ countMatchingDocs,
+ coveredByAncestor,
+ docCountsByFolder,
+ folderOfGlob,
+ folderRecursiveGlob,
+ selectedFolders,
+ toggleFolderGlob,
+} from './applies-to-folder-globs';
+
+describe('folderOfGlob', () => {
+ test('recognizes both recursive spellings', () => {
+ expect(folderOfGlob(folderRecursiveGlob('blog'))).toBe('blog');
+ expect(folderOfGlob('blog/**')).toBe('blog');
+ expect(folderOfGlob('blog/**/*')).toBe('blog');
+ expect(folderOfGlob(' guides/api/** ')).toBe('guides/api');
+ });
+
+ test('rejects everything the picker should not claim', () => {
+ expect(folderOfGlob('blog')).toBeNull(); // exact doc, not a folder
+ expect(folderOfGlob('!blog/**')).toBeNull(); // negation
+ expect(folderOfGlob('blog/*')).toBeNull(); // direct children only
+ expect(folderOfGlob('**')).toBeNull(); // everything
+ expect(folderOfGlob('**/blog/**')).toBeNull(); // folder-anywhere
+ expect(folderOfGlob('{a,b}/**')).toBeNull(); // brace set
+ expect(folderOfGlob('b*g/**')).toBeNull(); // glob chars in folder
+ expect(folderOfGlob('')).toBeNull();
+ });
+});
+
+describe('selectedFolders / toggleFolderGlob', () => {
+ test('round-trips a checkbox toggle', () => {
+ const on = toggleFolderGlob([], 'blog', true);
+ expect(on).toEqual(['blog/**']);
+ expect(selectedFolders(on)).toEqual(new Set(['blog']));
+ expect(toggleFolderGlob(on, 'blog', false)).toEqual([]);
+ });
+
+ test('checking is a no-op when an equivalent spelling is authored', () => {
+ expect(toggleFolderGlob(['blog/**/*'], 'blog', true)).toEqual(['blog/**/*']);
+ });
+
+ test('unchecking removes every spelling of that folder and nothing else', () => {
+ const globs = ['blog/**', 'blog/**/*', '!blog/drafts/**', 'guides/**', 'notes'];
+ expect(toggleFolderGlob(globs, 'blog', false)).toEqual([
+ '!blog/drafts/**',
+ 'guides/**',
+ 'notes',
+ ]);
+ });
+
+ test('hand-authored patterns pass through untouched', () => {
+ const globs = ['**/reference/**', '!archive/**'];
+ expect(selectedFolders(globs)).toEqual(new Set());
+ expect(toggleFolderGlob(globs, 'docs', true)).toEqual([...globs, 'docs/**']);
+ });
+});
+
+describe('coveredByAncestor', () => {
+ test('any strict ancestor covers', () => {
+ const selected = new Set(['guides']);
+ expect(coveredByAncestor('guides/api', selected)).toBe(true);
+ expect(coveredByAncestor('guides/api/v2', selected)).toBe(true);
+ expect(coveredByAncestor('guides', selected)).toBe(false);
+ expect(coveredByAncestor('guidebook', selected)).toBe(false);
+ expect(coveredByAncestor('guides/api', new Set(['guide']))).toBe(false);
+ expect(coveredByAncestor('blog', selected)).toBe(false);
+ });
+});
+
+describe('buildFolderRows', () => {
+ test('sorts siblings and nests depth-first', () => {
+ expect(buildFolderRows(['zeta', 'alpha', 'alpha/inner'])).toEqual([
+ { path: 'alpha' },
+ { path: 'alpha/inner' },
+ { path: 'zeta' },
+ ]);
+ });
+
+ test('materializes missing ancestors and normalizes noise', () => {
+ expect(buildFolderRows(['a/b/c', './a', 'a/', ''])).toEqual([
+ { path: 'a' },
+ { path: 'a/b' },
+ { path: 'a/b/c' },
+ ]);
+ });
+});
+
+describe('docCountsByFolder', () => {
+ test('counts each doc toward every ancestor', () => {
+ const counts = docCountsByFolder(['blog/a', 'blog/nested/b', 'guides/c', 'root-doc']);
+ expect(counts.get('blog')).toBe(2);
+ expect(counts.get('blog/nested')).toBe(1);
+ expect(counts.get('guides')).toBe(1);
+ expect(counts.has('root-doc')).toBe(false);
+ });
+});
+
+describe('countMatchingDocs', () => {
+ test('reads 0 for the bare-folder-name trap and N for the fix', () => {
+ const docs = ['blog/a', 'blog/nested/b', 'guides/c'];
+ expect(countMatchingDocs('blog', docs)).toEqual({ matched: 0, total: 3 });
+ expect(countMatchingDocs('blog/**', docs)).toEqual({ matched: 2, total: 3 });
+ });
+
+ test('empty pattern set matches every doc (implicit **)', () => {
+ expect(countMatchingDocs(undefined, ['a', 'b'])).toEqual({ matched: 2, total: 2 });
+ expect(countMatchingDocs([], ['a', 'b'])).toEqual({ matched: 2, total: 2 });
+ });
+
+ test('single-string appliesTo matches like a singleton array', () => {
+ const docs = ['blog/a', 'guides/b'];
+ expect(countMatchingDocs('blog/**', docs)).toEqual(countMatchingDocs(['blog/**'], docs));
+ });
+
+ test('negations subtract', () => {
+ expect(countMatchingDocs(['blog/**', '!blog/nested/**'], ['blog/a', 'blog/nested/b'])).toEqual({
+ matched: 1,
+ total: 2,
+ });
+ });
+
+ test('multiple folder patterns match their union, not their intersection', () => {
+ // Exactly what picking two folders authors. Under intersection semantics
+ // no doc can live in both folders, so matched would read 0.
+ const docs = ['blog/a', 'blog/nested/b', 'guides/c', 'root-doc'];
+ expect(countMatchingDocs(['blog/**', 'guides/**'], docs)).toEqual({ matched: 3, total: 4 });
+ });
+});
diff --git a/packages/app/src/components/settings/applies-to-folder-globs.ts b/packages/app/src/components/settings/applies-to-folder-globs.ts
new file mode 100644
index 000000000..f8512bdde
--- /dev/null
+++ b/packages/app/src/components/settings/applies-to-folder-globs.ts
@@ -0,0 +1,152 @@
+/**
+ * Folder-picker model for the frontmatter plugin's `appliesTo` globs. The
+ * picker is a checkbox folder tree that authors the one glob shape a checkbox
+ * can honestly mean — `folder/**`, everything under the folder — while leaving
+ * every other authored pattern untouched, so the raw pill input stays a
+ * power-user escape hatch rather than a competing source of truth.
+ *
+ * Checked-state derivation reuses core's `summarizeAppliesTo` classifier: a
+ * pattern reads as "folder F is checked" exactly when the plain-language
+ * summary would call it "everything under F/". The two surfaces can't drift —
+ * whatever the summary line names as a recursive folder, the tree shows as
+ * checked, and vice versa.
+ */
+
+import { compileAppliesTo, summarizeAppliesTo } from '@inkeep/open-knowledge-core';
+
+/** The glob the picker authors for a folder: every doc under it, recursively. */
+export function folderRecursiveGlob(folder: string): string {
+ return `${folder}/**`;
+}
+
+/**
+ * The folder a single non-negated pattern selects, or null when the pattern
+ * isn't a plain recursive-folder glob (`F/**`, with or without a trailing
+ * `/*`). Null for negations
+ * and for anything the picker shouldn't claim to own (brace sets, `*`s in the
+ * folder segment, exact docs...).
+ */
+export function folderOfGlob(pattern: string): string | null {
+ const trimmed = pattern.trim();
+ if (trimmed === '' || trimmed.startsWith('!')) return null;
+ const { includes, excludes } = summarizeAppliesTo(trimmed);
+ if (excludes.length > 0 || includes.length !== 1) return null;
+ const only = includes[0];
+ return only !== undefined && only.kind === 'folder-recursive' ? only.folder : null;
+}
+
+/** Folders the authored glob list currently selects (recursive globs only). */
+export function selectedFolders(globs: readonly string[]): ReadonlySet<string> {
+ const selected = new Set<string>();
+ for (const glob of globs) {
+ const folder = folderOfGlob(glob);
+ if (folder !== null) selected.add(folder);
+ }
+ return selected;
+}
+
+/**
+ * Toggle a folder's recursive glob in the authored list. Checking appends
+ * `folder/**` (a no-op when an equivalent spelling is already authored);
+ * unchecking removes every pattern that selects exactly that folder and
+ * nothing else — hand-authored patterns, negations included, pass through.
+ */
+export function toggleFolderGlob(globs: readonly string[], folder: string, on: boolean): string[] {
+ if (on) {
+ if (selectedFolders(globs).has(folder)) return [...globs];
+ return [...globs, folderRecursiveGlob(folder)];
+ }
+ return globs.filter((glob) => folderOfGlob(glob) !== folder);
+}
+
+/** True when some strict ancestor of `folder` is in the selected set. */
+export function coveredByAncestor(folder: string, selected: ReadonlySet<string>): boolean {
+ let slash = folder.lastIndexOf('/');
+ while (slash > 0) {
+ if (selected.has(folder.slice(0, slash))) return true;
+ slash = folder.lastIndexOf('/', slash - 1);
+ }
+ return false;
+}
+
+export interface FolderTreeRow {
+ /** Content-relative folder path (`guides/api`). */
+ path: string;
+}
+
+/**
+ * Flatten folder paths into depth-first display rows, siblings sorted by
+ * locale. Ancestors absent from the input (a server list can name `a/b`
+ * without `a`) are materialized so every row hangs off a visible parent.
+ */
+export function buildFolderRows(folderPaths: Iterable<string>): FolderTreeRow[] {
+ const paths = new Set<string>();
+ for (const raw of folderPaths) {
+ const path = raw.replace(/\\/g, '/').replace(/\/+$/, '').replace(/^\.\//, '');
+ if (path === '' || path === '.') continue;
+ paths.add(path);
+ let slash = path.lastIndexOf('/');
+ while (slash > 0) {
+ paths.add(path.slice(0, slash));
+ slash = path.lastIndexOf('/', slash - 1);
+ }
+ }
+
+ const childrenOf = new Map<string, string[]>();
+ for (const path of paths) {
+ const slash = path.lastIndexOf('/');
+ const parent = slash === -1 ? '' : path.slice(0, slash);
+ const siblings = childrenOf.get(parent);
+ if (siblings === undefined) childrenOf.set(parent, [path]);
+ else siblings.push(path);
+ }
+
+ const rows: FolderTreeRow[] = [];
+ const visit = (parent: string): void => {
+ const children = childrenOf.get(parent);
+ if (children === undefined) return;
+ children.sort((a, b) => a.localeCompare(b));
+ for (const path of children) {
+ rows.push({ path });
+ visit(path);
+ }
+ };
+ visit('');
+ return rows;
+}
+
+/**
+ * Doc counts per folder, each doc counting toward every ancestor. Keys are
+ * folder paths; folders holding no docs (directly or below) are absent.
+ */
+export function docCountsByFolder(docNames: Iterable<string>): Map<string, number> {
+ const counts = new Map<string, number>();
+ for (const docName of docNames) {
+ let slash = docName.lastIndexOf('/');
+ while (slash > 0) {
+ const folder = docName.slice(0, slash);
+ counts.set(folder, (counts.get(folder) ?? 0) + 1);
+ slash = docName.lastIndexOf('/', slash - 1);
+ }
+ }
+ return counts;
+}
+
+/**
+ * How many of the project's docs the authored pattern set matches right now.
+ * The live counterpart to the server's after-the-fact zero-match warning:
+ * `blog` (instead of `blog/**`) reads "0 of N" the moment it's typed.
+ */
+export function countMatchingDocs(
+ appliesTo: string | string[] | undefined,
+ docNames: Iterable<string>,
+): { matched: number; total: number } {
+ const compiled = compileAppliesTo(appliesTo);
+ let matched = 0;
+ let total = 0;
+ for (const docName of docNames) {
+ total += 1;
+ if (compiled.matches(docName)) matched += 1;
+ }
+ return { matched, total };
+}
diff --git a/packages/app/src/components/settings/applies-to-folder-picker.dom.test.tsx b/packages/app/src/components/settings/applies-to-folder-picker.dom.test.tsx
new file mode 100644
index 000000000..1ac3e3e14
--- /dev/null
+++ b/packages/app/src/components/settings/applies-to-folder-picker.dom.test.tsx
@@ -0,0 +1,193 @@
+/**
+ * RTL mount tests for the appliesTo folder picker combobox: cmdk row selection
+ * authors `folder/**` globs without closing the popover, search filters the
+ * list, covered descendants read as disabled, and hand-authored patterns
+ * survive round-trips untouched.
+ */
+
+import { cleanup, render, screen } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
+
+// Radix/cmdk reach for DOM globals the jsdom preload doesn't expose; hoist the
+// same shims the sibling settings DOM tests use.
+type WindowGlobals = { MutationObserver?: typeof MutationObserver; NodeFilter?: typeof NodeFilter };
+type GlobalWithDomShims = typeof globalThis &
+ WindowGlobals & { window?: WindowGlobals; ResizeObserver?: unknown };
+const globalWithDomShims = globalThis as GlobalWithDomShims;
+if (
+ globalWithDomShims.MutationObserver === undefined &&
+ globalWithDomShims.window?.MutationObserver !== undefined
+) {
+ globalWithDomShims.MutationObserver = globalWithDomShims.window.MutationObserver;
+}
+if (
+ globalWithDomShims.NodeFilter === undefined &&
+ globalWithDomShims.window?.NodeFilter !== undefined
+) {
+ globalWithDomShims.NodeFilter = globalWithDomShims.window.NodeFilter;
+}
+if (globalWithDomShims.ResizeObserver === undefined) {
+ class NoopResizeObserver {
+ observe() {}
+ unobserve() {}
+ disconnect() {}
+ }
+ globalWithDomShims.ResizeObserver = NoopResizeObserver;
+}
+// jsdom does not implement scrollIntoView; cmdk calls it on highlight.
+if (typeof HTMLElement.prototype.scrollIntoView !== 'function') {
+ HTMLElement.prototype.scrollIntoView = () => {};
+}
+
+let mockPageList: { pages: Set<string>; folderPaths: Set<string> } | null = null;
+
+vi.doMock('@/components/PageListContext', () => ({
+ useOptionalPageList: () => mockPageList,
+}));
+
+const { AppliesToFolderPicker } = await import('./applies-to-folder-picker');
+
+const FILE = '.ok/schemas/doc.schema.json';
+
+function mountPicker(globs: string[], onChange = vi.fn()) {
+ render(<AppliesToFolderPicker file={FILE} globs={globs} disabled={false} onChange={onChange} />);
+ return onChange;
+}
+
+async function openPicker(user: ReturnType<typeof userEvent.setup>) {
+ await user.click(screen.getByTestId(`frontmatter-schema-pick-folders-${FILE}`));
+}
+
+function folderItem(path: string): HTMLElement {
+ return screen.getByTestId(`frontmatter-schema-folder-item-${FILE}-${path}`);
+}
+
+beforeEach(() => {
+ mockPageList = {
+ pages: new Set(['blog/a', 'blog/nested/b', 'guides/c', 'root-doc']),
+ folderPaths: new Set(['blog', 'blog/nested', 'guides']),
+ };
+});
+
+afterEach(() => {
+ cleanup();
+});
+
+describe('AppliesToFolderPicker', () => {
+ test('renders nothing without a page-list provider', () => {
+ mockPageList = null;
+ mountPicker([]);
+ expect(screen.queryByTestId(`frontmatter-schema-pick-folders-${FILE}`)).toBeNull();
+ });
+
+ test('the trigger summarizes the current selection', () => {
+ mountPicker(['blog/**', 'guides/**']);
+ expect(screen.getByTestId(`frontmatter-schema-pick-folders-${FILE}`).textContent).toContain(
+ '2 folders picked',
+ );
+ });
+
+ test('selecting a folder authors its recursive glob and keeps the popover open', async () => {
+ const user = userEvent.setup();
+ const onChange = mountPicker([]);
+ await openPicker(user);
+ await user.click(folderItem('blog'));
+ expect(onChange).toHaveBeenCalledWith(['blog/**']);
+ // Multi-select: the list is still mounted for the next toggle.
+ expect(screen.getByTestId(`frontmatter-schema-folder-tree-${FILE}`)).toBeTruthy();
+ });
+
+ test('exposes a labeled multi-select listbox to assistive technology', async () => {
+ const user = userEvent.setup();
+ mountPicker([]);
+ await openPicker(user);
+
+ const listbox = screen.getByRole('listbox');
+ expect(listbox.getAttribute('aria-multiselectable')).toBe('true');
+ const labeledComboboxes = screen.getAllByRole('combobox', {
+ name: 'Pick folders this schema applies to',
+ });
+ expect(labeledComboboxes.some((element) => element.tagName === 'INPUT')).toBe(true);
+ });
+
+ test('selecting a picked folder removes only its pattern, keeping hand-authored globs', async () => {
+ const user = userEvent.setup();
+ const onChange = mountPicker(['blog/**', '!blog/drafts/**', 'notes']);
+ await openPicker(user);
+ expect(folderItem('blog').getAttribute('aria-checked')).toBe('true');
+ await user.click(folderItem('blog'));
+ expect(onChange).toHaveBeenCalledWith(['!blog/drafts/**', 'notes']);
+ });
+
+ test('a descendant of a picked folder is covered: checked and disabled', async () => {
+ const user = userEvent.setup();
+ const onChange = mountPicker(['blog/**']);
+ await openPicker(user);
+ const nested = folderItem('blog/nested');
+ expect(nested.getAttribute('aria-checked')).toBe('true');
+ expect(nested.getAttribute('aria-disabled')).toBe('true');
+ await user.click(nested);
+ expect(onChange).not.toHaveBeenCalled();
+ });
+
+ test('typing in the search filters the rows', async () => {
+ const user = userEvent.setup();
+ mountPicker([]);
+ await openPicker(user);
+ await user.keyboard('guides');
+ expect(folderItem('guides')).toBeTruthy();
+ expect(screen.queryByTestId(`frontmatter-schema-folder-item-${FILE}-blog`)).toBeNull();
+ });
+
+ test('folders whose paths cannot round-trip through a recursive glob stay out of the picker', async () => {
+ const user = userEvent.setup();
+ mockPageList = {
+ pages: new Set(['archive (old)/entry', 'guides/current']),
+ folderPaths: new Set(['archive (old)', 'guides']),
+ };
+ mountPicker([]);
+ await openPicker(user);
+
+ expect(folderItem('guides')).toBeTruthy();
+ expect(screen.queryByTestId(`frontmatter-schema-folder-item-${FILE}-archive (old)`)).toBeNull();
+ });
+
+ test('a search with no hits shows the empty message', async () => {
+ const user = userEvent.setup();
+ mountPicker([]);
+ await openPicker(user);
+ await user.keyboard('zzz-no-such-folder');
+ expect(screen.queryByTestId(`frontmatter-schema-folder-item-${FILE}-blog`)).toBeNull();
+ expect(screen.getByText('No folders match.')).toBeTruthy();
+ });
+
+ test('disabled: the trigger does not open the list or author globs', async () => {
+ const user = userEvent.setup();
+ const onChange = vi.fn();
+ render(<AppliesToFolderPicker file={FILE} globs={[]} disabled={true} onChange={onChange} />);
+ const trigger = screen.getByTestId(`frontmatter-schema-pick-folders-${FILE}`);
+ await user.click(trigger);
+ expect(trigger.getAttribute('aria-expanded')).toBe('false');
+ expect(screen.queryByTestId(`frontmatter-schema-folder-tree-${FILE}`)).toBeNull();
+ expect(onChange).not.toHaveBeenCalled();
+ });
+
+ test('rows show per-folder doc counts', async () => {
+ const user = userEvent.setup();
+ mountPicker([]);
+ await openPicker(user);
+ const tree = screen.getByTestId(`frontmatter-schema-folder-tree-${FILE}`);
+ expect(tree.textContent).toContain('blog');
+ expect(tree.textContent).toContain('2 docs');
+ expect(tree.textContent).toContain('1 doc');
+ });
+
+ test('empty project reads as an empty state, not a bare popover', async () => {
+ const user = userEvent.setup();
+ mockPageList = { pages: new Set(), folderPaths: new Set() };
+ mountPicker([]);
+ await openPicker(user);
+ expect(screen.getByTestId(`frontmatter-schema-folder-tree-empty-${FILE}`)).toBeTruthy();
+ });
+});
diff --git a/packages/app/src/components/settings/applies-to-folder-picker.tsx b/packages/app/src/components/settings/applies-to-folder-picker.tsx
new file mode 100644
index 000000000..72f2c3418
--- /dev/null
+++ b/packages/app/src/components/settings/applies-to-folder-picker.tsx
@@ -0,0 +1,181 @@
+/**
+ * Searchable multi-select folder picker that authors `appliesTo` globs for a
+ * frontmatter schema mapping. A hand-typed bare folder name (`blog`) is an
+ * exact-doc pattern that silently validates nothing; picking the folder writes
+ * the `blog/**` the author meant, and the generated pattern lands in the
+ * sibling pill input — the raw-glob escape hatch this picker never rewrites.
+ *
+ * Selection toggles without closing the popover: the list is multi-select.
+ */
+
+import { Plural, Trans, useLingui } from '@lingui/react/macro';
+import { Check, ChevronsUpDown, FolderTree } from 'lucide-react';
+import { useId, useState } from 'react';
+import { useOptionalPageList } from '@/components/PageListContext';
+import { Button } from '@/components/ui/button';
+import {
+ Command,
+ CommandEmpty,
+ CommandInput,
+ CommandItem,
+ CommandList,
+} from '@/components/ui/command';
+import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
+import { cn } from '@/lib/utils';
+import {
+ buildFolderRows,
+ coveredByAncestor,
+ docCountsByFolder,
+ folderOfGlob,
+ folderRecursiveGlob,
+ selectedFolders,
+ toggleFolderGlob,
+} from './applies-to-folder-globs';
+
+export function AppliesToFolderPicker({
+ file,
+ globs,
+ disabled,
+ onChange,
+}: {
+ /** Schema file the mapping belongs to — namespaces test ids. */
+ file: string;
+ /** The authored pattern list, exactly as the pill input holds it. */
+ globs: string[];
+ disabled: boolean;
+ onChange: (globs: string[]) => void;
+}) {
+ const { t } = useLingui();
+ const listboxId = useId();
+ const [open, setOpen] = useState(false);
+ const pageList = useOptionalPageList();
+ // No provider (bare test mounts) — the pill input remains the full editor.
+ if (pageList === null) return null;
+
+ const rows = buildFolderRows(pageList.folderPaths).filter(
+ (row) => folderOfGlob(folderRecursiveGlob(row.path)) === row.path,
+ );
+ const counts = docCountsByFolder(pageList.pages);
+ const selected = selectedFolders(globs);
+ const pickerLabel = t`Pick folders this schema applies to`;
+
+ return (
+ <Popover open={open} onOpenChange={setOpen}>
+ <PopoverTrigger asChild>
+ <Button
+ variant="outline"
+ size="sm"
+ role="combobox"
+ aria-expanded={open}
+ aria-haspopup="listbox"
+ // The listbox is portaled-on-open by Radix, so the id doesn't
+ // resolve while closed. Per WAI-ARIA APG combobox pattern, gate
+ // aria-controls on `open`.
+ aria-controls={open ? listboxId : undefined}
+ aria-label={pickerLabel}
+ disabled={disabled}
+ className="h-7 w-full justify-between font-normal"
+ data-testid={`frontmatter-schema-pick-folders-${file}`}
+ >
+ <span className="flex min-w-0 items-center gap-1.5">
+ <FolderTree aria-hidden className="size-3.5 shrink-0 opacity-60" />
+ <span
+ className={cn('truncate text-xs', selected.size === 0 && 'text-muted-foreground')}
+ >
+ {selected.size === 0 ? (
+ <Trans>Pick folders</Trans>
+ ) : (
+ <Plural value={selected.size} one="# folder picked" other="# folders picked" />
+ )}
+ </span>
+ </span>
+ <ChevronsUpDown aria-hidden className="ms-2 size-3.5 shrink-0 opacity-50" />
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent
+ align="start"
+ className="w-[var(--radix-popover-trigger-width)] p-0"
+ // Keep focus inside the Command's input rather than bouncing back to
+ // the trigger button — Radix's default onOpenAutoFocus on
+ // PopoverContent focuses the root, which then forwards to whichever
+ // child has tabindex=0. cmdk's <CommandInput> doesn't auto-focus
+ // unless we route focus to it explicitly.
+ onOpenAutoFocus={(e) => {
+ e.preventDefault();
+ (e.currentTarget as HTMLElement).querySelector<HTMLInputElement>('[cmdk-input]')?.focus();
+ }}
+ // Popover-inside-Dialog: Radix Dialog wraps content in
+ // react-remove-scroll, whose document-level wheel/touchmove
+ // listeners preventDefault native scroll on portaled descendants
+ // (the popover renders to document.body, outside the dialog's
+ // DOM tree). stopPropagation here keeps the event from reaching
+ // those listeners, so native scroll fires normally.
+ // https://github.com/radix-ui/primitives/issues/1159
+ onWheel={(e) => {
+ e.stopPropagation();
+ }}
+ onTouchMove={(e) => {
+ e.stopPropagation();
+ }}
+ >
+ {rows.length === 0 ? (
+ <p
+ className="px-3 py-2 text-sm text-muted-foreground"
+ data-testid={`frontmatter-schema-folder-tree-empty-${file}`}
+ >
+ <Trans>No folders in this project yet.</Trans>
+ </p>
+ ) : (
+ <Command label={pickerLabel}>
+ <CommandInput placeholder={t`Search folders`} />
+ <CommandList
+ id={listboxId}
+ aria-multiselectable="true"
+ className="subtle-scrollbar"
+ data-testid={`frontmatter-schema-folder-tree-${file}`}
+ >
+ <CommandEmpty>
+ <Trans>No folders match.</Trans>
+ </CommandEmpty>
+ {rows.map((row) => {
+ const checked = selected.has(row.path);
+ const covered = !checked && coveredByAncestor(row.path, selected);
+ const count = counts.get(row.path) ?? 0;
+ return (
+ <CommandItem
+ key={row.path}
+ value={row.path}
+ disabled={covered}
+ // Multi-select listbox: checked state rides aria-checked
+ // (cmdk reserves aria-selected for the highlight). A
+ // covered row reads checked — its docs ARE in scope.
+ aria-checked={checked || covered}
+ title={
+ covered
+ ? t`Already covered by a picked parent folder`
+ : t`Toggles the pattern ${row.path}/**`
+ }
+ onSelect={() => onChange(toggleFolderGlob(globs, row.path, !checked))}
+ data-testid={`frontmatter-schema-folder-item-${file}-${row.path}`}
+ >
+ <Check
+ aria-hidden
+ className={cn(
+ 'size-4 shrink-0',
+ checked ? 'opacity-100' : covered ? 'opacity-40' : 'opacity-0',
+ )}
+ />
+ <span className="min-w-0 flex-1 truncate font-mono text-xs">{row.path}</span>
+ <span className="shrink-0 text-xs text-muted-foreground">
+ <Plural value={count} one="# doc" other="# docs" />
+ </span>
+ </CommandItem>
+ );
+ })}
+ </CommandList>
+ </Command>
+ )}
+ </PopoverContent>
+ </Popover>
+ );
+}
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 75ccde2f9..f59b5e2b9 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -1311,6 +1311,7 @@
"GUYwCr": ["تجاهل الإشعار"],
"GUZHkL": ["ألوان لوحة الألوان مفقودة"],
"GUqTzn": ["بحث المنافسين"],
+ "GW9ZdV": ["اختيار مجلدات"],
"GXf9hG": ["يجري استنساخ ", ["repoName"], "..."],
"GZzDqc": ["تفاصيل الخطأ الذي واجهته للتو مُدرجة. تُخفى الأسرار كمفاتيح API والرموز تلقائيًا."],
"G_686w": ["قائمة مهام"],
@@ -2200,6 +2201,7 @@
"SlfejT": ["خطأ"],
"Soy_80": [["0"], " يتصرف دون سؤال — لا يمكن لـ OpenKnowledge إضافة طلبات أذونات له"],
"SqIoy_": ["الإصلاح التلقائي — لا توجد هنا مشكلات لها إصلاح تلقائي"],
+ "Sr9xtj": ["اختر المجلدات التي ينطبق عليها هذا المخطط"],
"SrOuyg": ["لوحات المستند"],
"SvBFYA": ["لا توجد مشاريع حديثة"],
"Sxx_Zz": [
@@ -2399,9 +2401,24 @@
"V_DjMe": ["خطأ في العرض"],
"V_wltx": ["أدخل عنوانًا لهذا القالب."],
"Va3xJe": ["إضافة حقل"],
+ "VbM4Sv": ["البحث في المجلدات"],
"VbqhBI": ["موجود بالفعل في ", ["assetContentPath"], " — يعاد استخدامه."],
"VbyRUy": ["التعليقات"],
"VcqWBy": ["ربما نجح الرفع لكن الشريط الجانبي قديم — حدّث لإعادة المزامنة"],
+ "Vd8wxu": [
+ [
+ "0",
+ "plural",
+ {
+ "zero": ["لم يتم اختيار مجلدات"],
+ "one": ["تم اختيار مجلد واحد"],
+ "two": ["تم اختيار مجلدين"],
+ "few": ["تم اختيار ", "#", " مجلدات"],
+ "many": ["تم اختيار ", "#", " مجلدًا"],
+ "other": ["تم اختيار ", "#", " مجلد"]
+ }
+ ]
+ ],
"VdXv4D": ["استنساخ من GitHub"],
"VeVIIk": ["يجري تحميل المهارات"],
"Vftef5": [
@@ -2551,6 +2568,7 @@
"XgqUOy": ["لم يُعثر على مهارة في ذلك المصدر. سيوضح الاستيراد السبب إن تابعت."],
"Xhm7gG": ["اقتراحات الأصول"],
"Xisk4u": ["حُرِّر ", ["editedAgo"]],
+ "XjqA8x": ["يبدّل النمط ", ["0"], "/**"],
"Xk0-VC": [
"معاينات الروابط إلى مستندات أخرى في هذا المشروع مفعّلة دائمًا وتُقرأ من الفهرس المحلي — ولا يغادر جهازك شيء من أجلها."
],
@@ -2767,6 +2785,20 @@
],
"Zon_qG": ["مصدر المرآة <0>", ["label"], "</0>"],
"ZptNUh": ["إظهار ", ["hidden"], " إضافية"],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "zero": ["لا يطابق أي مستند حاليًا."],
+ "one": ["يطابق حاليًا ", ["1"], " من مستند واحد."],
+ "two": ["يطابق حاليًا ", ["3"], " من مستندين."],
+ "few": ["يطابق حاليًا ", ["3"], " من ", ["4"], " مستندات."],
+ "many": ["يطابق حاليًا ", ["3"], " من ", ["4"], " مستندًا."],
+ "other": ["يطابق حاليًا ", ["3"], " من ", ["4"], " مستند."]
+ }
+ ]
+ ],
"ZsGpr_": ["لصق الرابط"],
"ZscwQ0": ["تعذّر التبديل إلى «أنا فقط»"],
"Zue_jx": ["ينقص رمز GitHub لديك نطاقات مطلوبة. حاول تسجيل الدخول مرة أخرى."],
@@ -2910,6 +2942,7 @@
"bBE5tC": ["مكتشف على هذا الجهاز"],
"bBcFK_": ["فتح منتقي الرموز التعبيرية لـ ", ["keyName"]],
"bD8I7O": ["مكتمل"],
+ "bDiiSM": ["مشمول بالفعل ضمن مجلد أصل مختار"],
"bEp7UY": ["غير متصل بجسر سطح المكتب"],
"bF22t6": ["إزالة الحقل ", ["field"]],
"bGOTXx": ["افتح مؤلف التعليقات على التحديد الحالي وأضفه إلى طابور الإرسال."],
@@ -3936,6 +3969,7 @@
"يُخزَّن في <0>.ok/templates/</0> في هذا المشروع. متاح في كل مجلد (يمكن للقوالب المقيَّدة بمجلد أن تتجاوزه باسم الملف)."
],
"ng2Ibo": ["اسم الفرع"],
+ "ni5Vqi": ["(اسم المجلد وحده يحتاج إلى /** بعده ليطابق ما بداخله)"],
"njBeMm": ["كلاهما"],
"njU86j": ["الخاصية «", ["trimmed"], "» موجودة بالفعل"],
"nmwqWS": ["بلا إجابة"],
@@ -4654,6 +4688,7 @@
"wqD3pI": ["تعذّر تحديث ", ["failed"], " من ", ["0"], " تعليقات."],
"ws5o1F": ["تحقق منه: ", ["0"]],
"wtcxiD": ["هل تشارك هذا الإعداد مع فريقك؟"],
+ "wtd69q": ["لا توجد مجلدات مطابقة."],
"wvK7Ay": ["نسختك المحلية من الفرع <0>", ["branch"], "</0> متأخرة."],
"wvbc1r": ["تعذّر فتح المستند"],
"wzq9Rv": ["يوجد بالفعل فرع بهذا الاسم. افتح شجرة عمله من المبدِّل بدلًا من ذلك."],
@@ -4816,6 +4851,7 @@
"yhdqox": [
"مثبَّت — الأمر ok متاح في الطرفيات الخارجية. إلغاء التحديد يزيله؛ وتظل طرفية OpenKnowledge المدمجة وأدوات الذكاء الاصطناعي تعمل."
],
+ "yit5dF": ["لا توجد مجلدات في هذا المشروع بعد."],
"yjExfe": ["الفرع <0>", ["shareBranch"], "</0> مسحوب في:"],
"ylXj1N": ["محدَّد"],
"ymWJLd": ["إظهار ", ["0"], " إضافية"],
@@ -4862,6 +4898,20 @@
"zAJzIg": ["مشكلات في ", ["0"]],
"zAsDLY": ["عرض بياني لروابط المستندات"],
"zBUqvf": ["إعداد تكاملات OpenKnowledge…"],
+ "zD1Nqf": [
+ [
+ "count",
+ "plural",
+ {
+ "zero": ["لا مستندات"],
+ "one": ["مستند واحد"],
+ "two": ["مستندان"],
+ "few": ["#", " مستندات"],
+ "many": ["#", " مستندًا"],
+ "other": ["#", " مستند"]
+ }
+ ]
+ ],
"zJL34S": ["نافذة Terminal جديدة"],
"zKxoPm": ["تعذّرت إعادة تسمية «", ["0"], "»: ", ["1"]],
"zL0LPh": ["عام خارج الحقول النصية"],
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index db89b22f7..5ae9c9548 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -96,6 +96,10 @@ msgstr "«{trimmed}» موجود هنا بالفعل"
msgid "\"frontmatter\" is a reserved property name"
msgstr "«frontmatter» اسم خاصية محجوز"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(اسم المجلد وحده يحتاج إلى /** بعده ليطابق ما بداخله)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, zero {# مستند} one {مستند واحد} two {مستن
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, zero {# خطأ} one {خطأ واحد} two {خطآن} few {# أخطاء} many {# خطأً} other {# خطأ}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, zero {لم يتم اختيار مجلدات} one {تم اختيار مجلد واحد} two {تم اختيار مجلدين} few {تم اختيار # مجلدات} many {تم اختيار # مجلدًا} other {تم اختيار # مجلد}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, zero {ملفات} one {ملف} two {ملفان} few {ملف
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, zero {مجلدات} one {مجلد} two {مجلدان} few {مجلدات} many {مجلدًا} other {مجلد}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, zero {لا يطابق أي مستند حاليًا.} one {يطابق حاليًا {1} من مستند واحد.} two {يطابق حاليًا {3} من مستندين.} few {يطابق حاليًا {3} من {4} مستندات.} many {يطابق حاليًا {3} من {4} مستندًا.} other {يطابق حاليًا {3} من {4} مستند.}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, zero {# ملف متعارض} one {ملف واح
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, zero {# تعليق} one {تعليق واحد} two {تعليقان} few {# تعليقات} many {# تعليقًا} other {# تعليق}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, zero {لا مستندات} one {مستند واحد} two {مستندان} few {# مستندات} many {# مستندًا} other {# مستند}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, zero {تعذّر نقل # عنصر إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} one {تعذّر نقل عنصر واحد إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} two {تعذّر نقل عنصرين إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} few {تعذّر نقل # عناصر إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} many {تعذّر نقل # عنصرًا إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟} other {تعذّر نقل # عنصر إلى {trashNoun}. هل تريد الحذف نهائيًا بدلاً من ذلك؟}}"
@@ -1496,6 +1518,10 @@ msgstr "القيم المسموح بها لـ {field}"
msgid "Already at {assetContentPath} — reusing."
msgstr "موجود بالفعل في {assetContentPath} — يعاد استخدامه."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "مشمول بالفعل ضمن مجلد أصل مختار"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "هل لديك مستودع git بالفعل؟ أضفه بالأمر <0>git remote add origin <url></0> في مجلد هذا المشروع. تُحدَّث هذه الصفحة تلقائيًا بمجرد اكتشاف مستودع بعيد."
@@ -7781,6 +7807,14 @@ msgstr "لم يُحدَّد ملف"
msgid "No files yet."
msgstr "لا توجد ملفات بعد."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "لا توجد مجلدات في هذا المشروع بعد."
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "لا توجد مجلدات مطابقة."
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "لا يوجد مستودع git بعيد"
@@ -9068,6 +9102,14 @@ msgstr "اختر سمة أو أنشئ سمتك الخاصة."
msgid "Pick an emoji to insert at the cursor."
msgstr "اختر رمزًا تعبيريًا لإدراجه عند المؤشر."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "اختيار مجلدات"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "اختر المجلدات التي ينطبق عليها هذا المخطط"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "اختر المجلد الذي استنسخته فيه."
@@ -10402,6 +10444,10 @@ msgstr "ابحث في ملفات مساحة العمل الحالية ومجلد
msgid "Search files, folders, or commands"
msgstr "ابحث في الملفات أو المجلدات أو الأوامر"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "البحث في المجلدات"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "البحث عن أيقونات..."
@@ -12701,6 +12747,11 @@ msgstr "تبديل الصور المصغّرة"
msgid "Toggle underline formatting."
msgstr "بدّل تنسيق التسطير."
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "يبدّل النمط {0}/**"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "بطيء جدًا"
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index 1978aa7ef..91d536b36 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -1118,6 +1118,7 @@
"GUYwCr": ["বিজ্ঞপ্তি সরিয়ে দিন"],
"GUZHkL": ["প্যালেটের রং অনুপস্থিত"],
"GUqTzn": ["প্রতিযোগী গবেষণা"],
+ "GW9ZdV": ["ফোল্ডার বেছে নিন"],
"GXf9hG": [["repoName"], " ক্লোন করা হচ্ছে…"],
"GZzDqc": [
"আপনি এইমাত্র যে ত্রুটিতে পড়েছেন তার বিবরণ অন্তর্ভুক্ত। API কী ও টোকেনের মতো গোপন তথ্য নিজে থেকেই সরিয়ে ফেলা হয়।"
@@ -1914,6 +1915,7 @@
"SlfejT": ["ত্রুটি"],
"Soy_80": [["0"], " জিজ্ঞাসা না করেই কাজ করে — OpenKnowledge এর জন্য অনুমতির অনুরোধ যোগ করতে পারে না"],
"SqIoy_": ["স্বয়ংক্রিয় সংশোধন — এখানকার কোনো সমস্যার স্বয়ংক্রিয় সমাধান নেই"],
+ "Sr9xtj": ["এই স্কিমা যে ফোল্ডারগুলোর ক্ষেত্রে প্রযোজ্য সেগুলো বেছে নিন"],
"SrOuyg": ["নথি প্যানেল"],
"SvBFYA": ["কোনো সাম্প্রতিক প্রকল্প নেই"],
"Sxx_Zz": [
@@ -2091,9 +2093,13 @@
"V_DjMe": ["রেন্ডার ত্রুটি"],
"V_wltx": ["এই টেমপ্লেটের জন্য একটি শিরোনাম দিন।"],
"Va3xJe": ["ফিল্ড যোগ করুন"],
+ "VbM4Sv": ["ফোল্ডার খুঁজুন"],
"VbqhBI": ["আগে থেকেই ", ["assetContentPath"], "-এ — পুনরায় ব্যবহার করা হচ্ছে।"],
"VbyRUy": ["মন্তব্য"],
"VcqWBy": ["আপলোড হয়তো সফল হয়েছে কিন্তু সাইডবার পুরোনো — আবার সিঙ্ক করতে সতেজ করুন"],
+ "Vd8wxu": [
+ ["0", "plural", { "one": ["#", " টি ফোল্ডার নির্বাচিত"], "other": ["#", " টি ফোল্ডার নির্বাচিত"] }]
+ ],
"VdXv4D": ["GitHub থেকে ক্লোন করুন"],
"VeVIIk": ["স্কিল লোড হচ্ছে"],
"Vftef5": ["সাধারণ markdown সমস্যা — হার্ড ট্যাব, শিরোনামের ধাপ, তালিকা চিহ্ন, আরও অনেক কিছু।"],
@@ -2215,6 +2221,7 @@
"XgqUOy": ["ওই উৎসে কোনো স্কিল পাওয়া যায়নি। আপনি চালিয়ে গেলে আমদানি কারণ জানাবে।"],
"Xhm7gG": ["অ্যাসেট পরামর্শ"],
"Xisk4u": [["editedAgo"], " সম্পাদিত"],
+ "XjqA8x": ["প্যাটার্ন ", ["0"], "/** টগল করুন"],
"Xk0-VC": [
"এই প্রকল্পের অন্য নথির লিংকের প্রাকদর্শন সবসময় চালু থাকে এবং স্থানীয় সূচি থেকে পড়া হয় — সেগুলোর জন্য কিছুই আপনার কম্পিউটার ছেড়ে যায় না।"
],
@@ -2388,6 +2395,16 @@
],
"Zon_qG": ["মিরর উৎস <0>", ["label"], "</0>"],
"ZptNUh": ["আরও ", ["hidden"], "টি দেখান"],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["এখন ", ["2"], " টির মধ্যে ", ["1"], " টি নথির সাথে মিলছে।"],
+ "other": ["এখন ", ["4"], " টির মধ্যে ", ["3"], " টি নথির সাথে মিলছে।"]
+ }
+ ]
+ ],
"ZsGpr_": ["লিংক পেস্ট করুন"],
"ZscwQ0": ["শুধু আমার-এ যাওয়া যায়নি"],
"Zue_jx": ["আপনার GitHub টোকেনে আবশ্যক স্কোপ নেই। আবার সাইন ইন করে দেখুন।"],
@@ -2531,6 +2548,7 @@
"bBE5tC": ["এই মেশিনে শনাক্ত হয়েছে"],
"bBcFK_": [["keyName"], "-এর জন্য ইমোজি নির্বাচক খুলুন"],
"bD8I7O": ["সম্পূর্ণ"],
+ "bDiiSM": ["নির্বাচিত মূল ফোল্ডারে আগে থেকেই অন্তর্ভুক্ত"],
"bEp7UY": ["ডেস্কটপ ব্রিজের সাথে সংযুক্ত নয়"],
"bF22t6": ["ফিল্ড ", ["field"], " সরান"],
"bGOTXx": ["বর্তমান নির্বাচনে মন্তব্য রচনাপট খুলুন এবং সেটি পাঠানোর সারিতে যোগ করুন।"],
@@ -3406,6 +3424,7 @@
"এই প্রকল্পের <0>.ok/templates/</0>-এ সংরক্ষিত। প্রতিটি ফোল্ডারে পাওয়া যায় (ফোল্ডার-সীমিত টেমপ্লেট ফাইলের নাম দিয়ে এটিকে ছাপিয়ে যেতে পারে)।"
],
"ng2Ibo": ["ব্রাঞ্চের নাম"],
+ "ni5Vqi": ["(শুধু ফোল্ডারের নামের পরে /** যোগ করলে তবেই ভেতরের বিষয়বস্তু মিলবে)"],
"njBeMm": ["দুটোই"],
"njU86j": ["প্রপার্টি \"", ["trimmed"], "\" আগে থেকেই আছে"],
"nmwqWS": ["উত্তর দেওয়া হয়নি"],
@@ -3997,6 +4016,7 @@
"wqD3pI": [["0"], "টির মধ্যে ", ["failed"], "টি মন্তব্য আপডেট করা যায়নি।"],
"ws5o1F": ["পরীক্ষা করেছেন: ", ["0"]],
"wtcxiD": ["এই সেটআপটি আপনার দলের সঙ্গে ভাগ করবেন?"],
+ "wtd69q": ["কোনো ফোল্ডার মিলছে না।"],
"wvK7Ay": ["ব্রাঞ্চ <0>", ["branch"], "</0>-এর আপনার স্থানীয় অনুলিপি পিছিয়ে আছে।"],
"wvbc1r": ["নথি খোলা যায়নি"],
"wzq9Rv": ["ওই নামে একটি ব্রাঞ্চ আগে থেকেই আছে। বদলে সুইচার থেকে এর ওয়ার্কট্রি খুলুন।"],
@@ -4126,6 +4146,7 @@
"yhdqox": [
"ইনস্টল করা আছে — ok বাইরের টার্মিনালে পাওয়া যায়। টিক সরালে সেটি সরে যায়; OpenKnowledge-এর নিজস্ব টার্মিনাল ও AI টুল কাজ করতে থাকে।"
],
+ "yit5dF": ["এই প্রকল্পে এখনও কোনো ফোল্ডার নেই।"],
"yjExfe": ["ব্রাঞ্চ <0>", ["shareBranch"], "</0> এখানে চেক আউট করা আছে:"],
"ylXj1N": ["নির্বাচিত"],
"ymWJLd": ["আরও ", ["0"], "টি দেখান"],
@@ -4157,6 +4178,7 @@
"zAJzIg": [["0"], "-এ সমস্যা"],
"zAsDLY": ["নথির লিংকের গ্রাফ চিত্রায়ণ"],
"zBUqvf": ["OpenKnowledge সংযুক্তি সেট আপ করুন…"],
+ "zD1Nqf": [["count", "plural", { "one": ["#", " টি নথি"], "other": ["#", " টি নথি"] }]],
"zJL34S": ["নতুন Terminal উইন্ডো"],
"zKxoPm": ["\"", ["0"], "\"-এর নাম বদলানো যায়নি: ", ["1"]],
"zL0LPh": ["লেখার ফিল্ডের বাইরে বৈশ্বিক"],
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index 1905ea92d..bc4ef85ad 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -96,6 +96,10 @@ msgstr "\"{trimmed}\" এখানে আগে থেকেই আছে"
msgid "\"frontmatter\" is a reserved property name"
msgstr "\"frontmatter\" একটি সংরক্ষিত প্রপার্টি নাম"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(শুধু ফোল্ডারের নামের পরে /** যোগ করলে তবেই ভেতরের বিষয়বস্তু মিলবে)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, one {# নথি} other {# নথি}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, one {# ত্রুটি} other {# ত্রুটি}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, one {# টি ফোল্ডার নির্বাচিত} other {# টি ফোল্ডার নির্বাচিত}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, one {ফাইল} other {ফাইল}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, one {ফোল্ডার} other {ফোল্ডার}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, one {এখন {2} টির মধ্যে {1} টি নথির সাথে মিলছে।} other {এখন {4} টির মধ্যে {3} টি নথির সাথে মিলছে।}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, one {# ফাইলে দ্বন্দ্ব}
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, one {# মন্তব্য} other {# মন্তব্য}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, one {# টি নথি} other {# টি নথি}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# টি আইটেম {trashNoun}-এ পাঠানো যায়নি। এর বদলে কি স্থায়ীভাবে মুছে ফেলতে চান?} other {# টি আইটেম {trashNoun}-এ পাঠানো যায়নি। এর বদলে কি স্থায়ীভাবে মুছে ফেলতে চান?}}"
@@ -1492,6 +1514,10 @@ msgstr "{field}-এর জন্য অনুমোদিত মান"
msgid "Already at {assetContentPath} — reusing."
msgstr "আগে থেকেই {assetContentPath}-এ — পুনরায় ব্যবহার করা হচ্ছে।"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "নির্বাচিত মূল ফোল্ডারে আগে থেকেই অন্তর্ভুক্ত"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "আগে থেকেই একটি git রিপোজিটরি আছে? এই প্রকল্পের ফোল্ডারে <0>git remote add origin <url></0> দিয়ে সেটি যোগ করুন। রিমোট শনাক্ত হলেই এই পাতা নিজে থেকে হালনাগাদ হয়।"
@@ -7777,6 +7803,14 @@ msgstr "কোনো ফাইল নির্বাচিত নেই"
msgid "No files yet."
msgstr "এখনও কোনো ফাইল নেই।"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "এই প্রকল্পে এখনও কোনো ফোল্ডার নেই।"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "কোনো ফোল্ডার মিলছে না।"
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "কোনো git রিমোট নেই"
@@ -9064,6 +9098,14 @@ msgstr "একটি থিম বেছে নিন বা নিজের থ
msgid "Pick an emoji to insert at the cursor."
msgstr "কার্সরে ঢোকানোর জন্য একটি ইমোজি বাছুন।"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "ফোল্ডার বেছে নিন"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "এই স্কিমা যে ফোল্ডারগুলোর ক্ষেত্রে প্রযোজ্য সেগুলো বেছে নিন"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "আপনি যেখানে এটি ক্লোন করেছেন সেই ফোল্ডারটি বাছুন।"
@@ -10398,6 +10440,10 @@ msgstr "বর্তমান ওয়ার্কস্পেসের ফা
msgid "Search files, folders, or commands"
msgstr "ফাইল, ফোল্ডার বা কমান্ড খুঁজুন"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "ফোল্ডার খুঁজুন"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "আইকন খুঁজুন..."
@@ -12697,6 +12743,11 @@ msgstr "থাম্বনেইল চালু বা বন্ধ করু
msgid "Toggle underline formatting."
msgstr "নিম্নরেখার বিন্যাস চালু বা বন্ধ করুন।"
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "প্যাটার্ন {0}/** টগল করুন"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "খুব ধীর"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index 46418a817..48db44d16 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -1153,6 +1153,7 @@
"GUYwCr": ["Dismiss notice"],
"GUZHkL": ["Missing palette colors"],
"GUqTzn": ["Competitor research"],
+ "GW9ZdV": ["Pick folders"],
"GXf9hG": ["Cloning ", ["repoName"], "..."],
"GZzDqc": [
"Details about the error you just hit are included. Secrets like API keys and tokens are redacted automatically."
@@ -1959,6 +1960,7 @@
"SlfejT": ["Error"],
"Soy_80": [["0"], " acts without asking — OpenKnowledge can't add permission prompts for it"],
"SqIoy_": ["Auto-fix — no problems here have an automatic fix"],
+ "Sr9xtj": ["Pick folders this schema applies to"],
"SrOuyg": ["Document panels"],
"SvBFYA": ["No recent projects"],
"Sxx_Zz": [
@@ -2142,9 +2144,13 @@
"V_DjMe": ["render error"],
"V_wltx": ["Enter a title for this template."],
"Va3xJe": ["Add field"],
+ "VbM4Sv": ["Search folders"],
"VbqhBI": ["Already at ", ["assetContentPath"], " — reusing."],
"VbyRUy": ["Comments"],
"VcqWBy": ["Upload may have succeeded but the sidebar is out of date — refresh to resync"],
+ "Vd8wxu": [
+ ["0", "plural", { "one": ["#", " folder picked"], "other": ["#", " folders picked"] }]
+ ],
"VdXv4D": ["Clone from GitHub"],
"VeVIIk": ["Loading skills"],
"Vftef5": ["Common markdown issues — hard tabs, heading increments, list markers, and more."],
@@ -2266,6 +2272,7 @@
"XgqUOy": ["No skill found at that source. Import will report why if you continue."],
"Xhm7gG": ["Asset suggestions"],
"Xisk4u": ["Edited ", ["editedAgo"]],
+ "XjqA8x": ["Toggles the pattern ", ["0"], "/**"],
"Xk0-VC": [
"Previews of links to other documents in this project are always on and read from the local index — nothing leaves your computer for those."
],
@@ -2440,6 +2447,16 @@
],
"Zon_qG": ["Mirror source <0>", ["label"], "</0>"],
"ZptNUh": ["Show ", ["hidden"], " more"],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["Matches ", ["1"], " of ", ["2"], " doc right now."],
+ "other": ["Matches ", ["3"], " of ", ["4"], " docs right now."]
+ }
+ ]
+ ],
"ZsGpr_": ["Paste link"],
"ZscwQ0": ["Couldn't switch to Only me"],
"Zue_jx": ["Your GitHub token is missing required scopes. Try signing in again."],
@@ -2583,6 +2600,7 @@
"bBE5tC": ["Detected on this machine"],
"bBcFK_": ["Open emoji picker for ", ["keyName"]],
"bD8I7O": ["Complete"],
+ "bDiiSM": ["Already covered by a picked parent folder"],
"bEp7UY": ["Not attached to desktop bridge"],
"bF22t6": ["Remove field ", ["field"]],
"bGOTXx": [
@@ -3512,6 +3530,7 @@
"Stored at <0>.ok/templates/</0> in this project. Available in every folder (folder-scoped templates can override by filename)."
],
"ng2Ibo": ["Branch name"],
+ "ni5Vqi": ["(a bare folder name needs /** after it to match what's inside)"],
"njBeMm": ["Both"],
"njU86j": ["Property \"", ["trimmed"], "\" already exists"],
"nmwqWS": ["Not answered"],
@@ -4140,6 +4159,7 @@
"wqD3pI": [["failed"], " of ", ["0"], " comments could not be updated."],
"ws5o1F": ["Checked by: ", ["0"]],
"wtcxiD": ["Share this setup with your team?"],
+ "wtd69q": ["No folders match."],
"wvK7Ay": ["Your local copy of branch <0>", ["branch"], "</0> is behind."],
"wvbc1r": ["Couldn't open document"],
"wzq9Rv": [
@@ -4276,6 +4296,7 @@
"yhdqox": [
"Installed — ok is available in external terminals. Unchecking removes it; OpenKnowledge's built-in terminal and AI tools keep working."
],
+ "yit5dF": ["No folders in this project yet."],
"yjExfe": ["Branch <0>", ["shareBranch"], "</0> is checked out in:"],
"ylXj1N": ["Selected"],
"ymWJLd": ["Show ", ["0"], " more"],
@@ -4307,6 +4328,7 @@
"zAJzIg": ["Problems in ", ["0"]],
"zAsDLY": ["Graph visualization of document links"],
"zBUqvf": ["Set up OpenKnowledge integrations…"],
+ "zD1Nqf": [["count", "plural", { "one": ["#", " doc"], "other": ["#", " docs"] }]],
"zJL34S": ["New Terminal Window"],
"zKxoPm": ["Couldn't rename \"", ["0"], "\": ", ["1"]],
"zL0LPh": ["Global outside text fields"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index 2d2f09a31..32a4068b0 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -96,6 +96,10 @@ msgstr "\"{trimmed}\" already exists here"
msgid "\"frontmatter\" is a reserved property name"
msgstr "\"frontmatter\" is a reserved property name"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(a bare folder name needs /** after it to match what's inside)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, one {# document} other {# documents}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, one {# error} other {# errors}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, one {# folder picked} other {# folders picked}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, one {File} other {Files}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, one {Folder} other {Folders}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, one {# file conflicted} other {# files conflicte
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, one {# comment} other {# comments}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, one {# doc} other {# docs}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
@@ -1496,6 +1518,10 @@ msgstr "Allowed values for {field}"
msgid "Already at {assetContentPath} — reusing."
msgstr "Already at {assetContentPath} — reusing."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "Already covered by a picked parent folder"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
@@ -7781,6 +7807,14 @@ msgstr "No file selected"
msgid "No files yet."
msgstr "No files yet."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "No folders in this project yet."
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "No folders match."
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "No git remote"
@@ -9068,6 +9102,14 @@ msgstr "Pick a theme or create your own."
msgid "Pick an emoji to insert at the cursor."
msgstr "Pick an emoji to insert at the cursor."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "Pick folders"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "Pick folders this schema applies to"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "Pick the folder where you've cloned it."
@@ -10402,6 +10444,10 @@ msgstr "Search files, folders, and commands for the current workspace."
msgid "Search files, folders, or commands"
msgstr "Search files, folders, or commands"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "Search folders"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "Search icons..."
@@ -12701,6 +12747,11 @@ msgstr "Toggle thumbnails"
msgid "Toggle underline formatting."
msgstr "Toggle underline formatting."
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "Toggles the pattern {0}/**"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "Too slow"
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index 4ead5d4ed..74ddfd0bd 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -1321,6 +1321,7 @@
"GUYwCr": ["Descartar el aviso"],
"GUZHkL": ["Faltan colores de la paleta"],
"GUqTzn": ["Investigación de la competencia"],
+ "GW9ZdV": ["Elegir carpetas"],
"GXf9hG": ["Clonando ", ["repoName"], "..."],
"GZzDqc": [
"Se incluyen los detalles del error que acabas de encontrar. Los secretos como claves de API y tokens se ocultan automáticamente."
@@ -2235,6 +2236,7 @@
" actúa sin preguntar — OpenKnowledge no puede añadirle solicitudes de permiso"
],
"SqIoy_": ["Arreglo automático: ningún problema de aquí tiene arreglo automático"],
+ "Sr9xtj": ["Elegir las carpetas a las que se aplica este esquema"],
"SrOuyg": ["Paneles del documento"],
"SvBFYA": ["No hay proyectos recientes"],
"Sxx_Zz": [
@@ -2444,11 +2446,23 @@
"V_DjMe": ["error de renderizado"],
"V_wltx": ["Escribe un título para esta plantilla."],
"Va3xJe": ["Añadir campo"],
+ "VbM4Sv": ["Buscar carpetas"],
"VbqhBI": ["Ya está en ", ["assetContentPath"], ": se reutiliza."],
"VbyRUy": ["Comentarios"],
"VcqWBy": [
"Puede que la subida haya funcionado, pero la barra lateral está desactualizada; actualízala para resincronizar"
],
+ "Vd8wxu": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["#", " carpeta seleccionada"],
+ "many": ["#", " carpetas seleccionadas"],
+ "other": ["#", " carpetas seleccionadas"]
+ }
+ ]
+ ],
"VdXv4D": ["Clonar desde GitHub"],
"VeVIIk": ["Cargando habilidades"],
"Vftef5": [
@@ -2594,6 +2608,7 @@
],
"Xhm7gG": ["Sugerencias de recursos"],
"Xisk4u": ["Editado ", ["editedAgo"]],
+ "XjqA8x": ["Alterna el patrón ", ["0"], "/**"],
"Xk0-VC": [
"Las vistas previas de enlaces a otros documentos de este proyecto están siempre activas y se leen del índice local: para esas no sale nada de tu equipo."
],
@@ -2804,6 +2819,17 @@
],
"Zon_qG": ["Origen del espejo <0>", ["label"], "</0>"],
"ZptNUh": ["Mostrar ", ["hidden"], " más"],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["Ahora mismo coincide con ", ["1"], " de ", ["2"], " documento."],
+ "many": ["Ahora mismo coincide con ", ["3"], " de ", ["4"], " documentos."],
+ "other": ["Ahora mismo coincide con ", ["3"], " de ", ["4"], " documentos."]
+ }
+ ]
+ ],
"ZsGpr_": ["Pegar enlace"],
"ZscwQ0": ["No se pudo cambiar a Solo yo"],
"Zue_jx": [
@@ -2972,6 +2998,7 @@
"bBE5tC": ["Detectado en este equipo"],
"bBcFK_": ["Abrir el selector de emojis de ", ["keyName"]],
"bD8I7O": ["Completo"],
+ "bDiiSM": ["Ya cubierta por una carpeta principal seleccionada"],
"bEp7UY": ["Sin conexión con el puente de escritorio"],
"bF22t6": ["Quitar el campo ", ["field"]],
"bGOTXx": [
@@ -4042,6 +4069,7 @@
"Se guarda en <0>.ok/templates/</0> dentro de este proyecto. Disponible en todas las carpetas (las plantillas de carpeta pueden sustituirla por nombre de archivo)."
],
"ng2Ibo": ["Nombre de la rama"],
+ "ni5Vqi": ["(un nombre de carpeta solo necesita /** después para coincidir con su contenido)"],
"njBeMm": ["Ambos"],
"njU86j": ["La propiedad \"", ["trimmed"], "\" ya existe"],
"nmwqWS": ["Sin responder"],
@@ -4758,6 +4786,7 @@
"wqD3pI": ["No se pudieron actualizar ", ["failed"], " de ", ["0"], " comentarios."],
"ws5o1F": ["Comprobado por: ", ["0"]],
"wtcxiD": ["¿Compartir esta configuración con tu equipo?"],
+ "wtd69q": ["Ninguna carpeta coincide."],
"wvK7Ay": ["Tu copia local de la rama <0>", ["branch"], "</0> está por detrás."],
"wvbc1r": ["No se pudo abrir el documento"],
"wzq9Rv": ["Ya existe una rama con ese nombre. Abre su worktree desde el selector."],
@@ -4910,6 +4939,7 @@
"yhdqox": [
"Instalado: ok está disponible en terminales externas. Al desmarcarlo se quita; la terminal integrada y las herramientas de IA de OpenKnowledge siguen funcionando."
],
+ "yit5dF": ["Aún no hay carpetas en este proyecto."],
"yjExfe": ["La rama <0>", ["shareBranch"], "</0> está activa en:"],
"ylXj1N": ["Seleccionado"],
"ymWJLd": ["Mostrar ", ["0"], " más"],
@@ -4955,6 +4985,13 @@
"zAJzIg": ["Problemas en ", ["0"]],
"zAsDLY": ["Visualización en grafo de los enlaces entre documentos"],
"zBUqvf": ["Configurar las integraciones de OpenKnowledge…"],
+ "zD1Nqf": [
+ [
+ "count",
+ "plural",
+ { "one": ["#", " documento"], "many": ["#", " documentos"], "other": ["#", " documentos"] }
+ ]
+ ],
"zJL34S": ["Ventana de Terminal nueva"],
"zKxoPm": ["No se pudo renombrar \"", ["0"], "\": ", ["1"]],
"zL0LPh": ["Global fuera de los campos de texto"],
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index 8666452f2..731a1e6ba 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -96,6 +96,10 @@ msgstr "\"{trimmed}\" ya existe aquí"
msgid "\"frontmatter\" is a reserved property name"
msgstr "\"frontmatter\" es un nombre de propiedad reservado"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(un nombre de carpeta solo necesita /** después para coincidir con su contenido)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, one {# documento} many {# documentos} other {# documentos}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, one {# error} many {# errores} other {# errores}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, one {# carpeta seleccionada} many {# carpetas seleccionadas} other {# carpetas seleccionadas}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, one {Archivo} many {Archivos} other {Archivos}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, one {Carpeta} many {Carpetas} other {Carpetas}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, one {Ahora mismo coincide con {1} de {2} documento.} many {Ahora mismo coincide con {3} de {4} documentos.} other {Ahora mismo coincide con {3} de {4} documentos.}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, one {# archivo en conflicto} many {# archivos en
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, one {# comentario} many {# comentarios} other {# comentarios}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, one {# documento} many {# documentos} other {# documentos}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {No se pudo mover # elemento a la {trashNoun}. ¿Quieres eliminarlo permanentemente?} many {No se pudieron mover # elementos a la {trashNoun}. ¿Quieres eliminarlos permanentemente?} other {No se pudieron mover # elementos a la {trashNoun}. ¿Quieres eliminarlos permanentemente?}}"
@@ -1496,6 +1518,10 @@ msgstr "Valores permitidos para {field}"
msgid "Already at {assetContentPath} — reusing."
msgstr "Ya está en {assetContentPath}: se reutiliza."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "Ya cubierta por una carpeta principal seleccionada"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "¿Ya tienes un repositorio git? Añádelo con <0>git remote add origin <url></0> en la carpeta de este proyecto. Esta página se actualiza automáticamente en cuanto se detecta un remoto."
@@ -7781,6 +7807,14 @@ msgstr "No hay ningún archivo seleccionado"
msgid "No files yet."
msgstr "Todavía no hay archivos."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "Aún no hay carpetas en este proyecto."
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "Ninguna carpeta coincide."
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "No hay remoto de git"
@@ -9068,6 +9102,14 @@ msgstr "Elige un tema o crea el tuyo."
msgid "Pick an emoji to insert at the cursor."
msgstr "Elige un emoji para insertarlo en el cursor."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "Elegir carpetas"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "Elegir las carpetas a las que se aplica este esquema"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "Elige la carpeta donde lo has clonado."
@@ -10402,6 +10444,10 @@ msgstr "Busca archivos, carpetas y comandos del espacio de trabajo actual."
msgid "Search files, folders, or commands"
msgstr "Busca archivos, carpetas o comandos"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "Buscar carpetas"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "Buscar iconos..."
@@ -12701,6 +12747,11 @@ msgstr "Mostrar u ocultar las miniaturas"
msgid "Toggle underline formatting."
msgstr "Activa o desactiva el subrayado."
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "Alterna el patrón {0}/**"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "Demasiado lento"
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index d794ba1df..39673a5bd 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -1356,6 +1356,7 @@
"GUYwCr": ["Ignorer cet avis"],
"GUZHkL": ["Des couleurs de la palette sont manquantes"],
"GUqTzn": ["Étude concurrentielle"],
+ "GW9ZdV": ["Choisir des dossiers"],
"GXf9hG": ["Clonage de ", ["repoName"], "…"],
"GZzDqc": [
"Les détails de l'erreur que vous venez de rencontrer sont inclus. Les secrets comme les clés API et les jetons sont masqués automatiquement."
@@ -2268,6 +2269,7 @@
" agit sans demander — OpenKnowledge ne peut pas lui ajouter de demandes de permission"
],
"SqIoy_": ["Correction automatique — aucun problème ici n'a de correction automatique"],
+ "Sr9xtj": ["Choisir les dossiers auxquels ce schéma s'applique"],
"SrOuyg": ["Panneaux du document"],
"SvBFYA": ["Aucun projet récent"],
"Sxx_Zz": [
@@ -2485,11 +2487,23 @@
"V_DjMe": ["erreur de rendu"],
"V_wltx": ["Saisissez un titre pour ce modèle."],
"Va3xJe": ["Ajouter un champ"],
+ "VbM4Sv": ["Rechercher des dossiers"],
"VbqhBI": ["Déjà dans ", ["assetContentPath"], " — réutilisation."],
"VbyRUy": ["Commentaires"],
"VcqWBy": [
"L'envoi a peut-être réussi, mais la barre latérale n'est pas à jour — actualisez pour resynchroniser"
],
+ "Vd8wxu": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["#", " dossier sélectionné"],
+ "many": ["#", " dossiers sélectionnés"],
+ "other": ["#", " dossiers sélectionnés"]
+ }
+ ]
+ ],
"VdXv4D": ["Cloner depuis GitHub"],
"VeVIIk": ["Chargement des compétences"],
"Vftef5": [
@@ -2637,6 +2651,7 @@
],
"Xhm7gG": ["Suggestions de ressources"],
"Xisk4u": ["Modifié ", ["editedAgo"]],
+ "XjqA8x": ["Active ou désactive le motif ", ["0"], "/**"],
"Xk0-VC": [
"Les aperçus des liens vers d'autres documents de ce projet sont toujours actifs et lus depuis l'index local — rien ne quitte votre ordinateur pour ceux-là."
],
@@ -2844,6 +2859,17 @@
],
"Zon_qG": ["Source du miroir <0>", ["label"], "</0>"],
"ZptNUh": ["Afficher ", ["hidden"], " de plus"],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["Correspond actuellement à ", ["1"], " document sur ", ["2"], "."],
+ "many": ["Correspond actuellement à ", ["3"], " documents sur ", ["4"], "."],
+ "other": ["Correspond actuellement à ", ["3"], " documents sur ", ["4"], "."]
+ }
+ ]
+ ],
"ZsGpr_": ["Coller le lien"],
"ZscwQ0": ["Impossible de passer à Moi uniquement"],
"Zue_jx": [
@@ -3010,6 +3036,7 @@
"bBE5tC": ["Détecté sur cette machine"],
"bBcFK_": ["Ouvrir le sélecteur d'émojis de ", ["keyName"]],
"bD8I7O": ["Terminé"],
+ "bDiiSM": ["Déjà couvert par un dossier parent sélectionné"],
"bEp7UY": ["Non connecté au pont de bureau"],
"bF22t6": ["Retirer le champ ", ["field"]],
"bGOTXx": [
@@ -4081,6 +4108,7 @@
"Stocké dans <0>.ok/templates/</0> de ce projet. Disponible dans tous les dossiers (les modèles propres à un dossier peuvent le remplacer par nom de fichier)."
],
"ng2Ibo": ["Nom de la branche"],
+ "ni5Vqi": ["(un nom de dossier seul doit être suivi de /** pour correspondre à son contenu)"],
"njBeMm": ["Les deux"],
"njU86j": ["La propriété « ", ["trimmed"], " » existe déjà"],
"nmwqWS": ["Sans réponse"],
@@ -4816,6 +4844,7 @@
"wqD3pI": [["failed"], " commentaires sur ", ["0"], " n'ont pas pu être mis à jour."],
"ws5o1F": ["Vérifié par : ", ["0"]],
"wtcxiD": ["Partager cette configuration avec votre équipe ?"],
+ "wtd69q": ["Aucun dossier ne correspond."],
"wvK7Ay": ["Votre copie locale de la branche <0>", ["branch"], "</0> est en retard."],
"wvbc1r": ["Impossible d'ouvrir le document"],
"wzq9Rv": [
@@ -4968,6 +4997,7 @@
"yhdqox": [
"Installé — ok est disponible dans les terminaux externes. Décocher le retire ; le terminal intégré et les outils IA d'OpenKnowledge continuent de fonctionner."
],
+ "yit5dF": ["Aucun dossier dans ce projet pour l'instant."],
"yjExfe": ["La branche <0>", ["shareBranch"], "</0> est extraite dans :"],
"ylXj1N": ["Sélectionné"],
"ymWJLd": ["Afficher ", ["0"], " de plus"],
@@ -5013,6 +5043,13 @@
"zAJzIg": ["Problèmes dans ", ["0"]],
"zAsDLY": ["Visualisation en graphe des liens entre documents"],
"zBUqvf": ["Configurer les intégrations OpenKnowledge…"],
+ "zD1Nqf": [
+ [
+ "count",
+ "plural",
+ { "one": ["#", " document"], "many": ["#", " documents"], "other": ["#", " documents"] }
+ ]
+ ],
"zJL34S": ["Nouvelle fenêtre Terminal"],
"zKxoPm": ["Impossible de renommer « ", ["0"], " » : ", ["1"]],
"zL0LPh": ["Global, hors champs de texte"],
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index 07cfce974..2cfb9e6c0 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -96,6 +96,10 @@ msgstr "« {trimmed} » existe déjà ici"
msgid "\"frontmatter\" is a reserved property name"
msgstr "« frontmatter » est un nom de propriété réservé"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(un nom de dossier seul doit être suivi de /** pour correspondre à son contenu)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, one {# document} many {# documents} other {# documents}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, one {# erreur} many {# erreurs} other {# erreurs}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, one {# dossier sélectionné} many {# dossiers sélectionnés} other {# dossiers sélectionnés}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, one {Fichier} many {Fichiers} other {Fichiers}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, one {Dossier} many {Dossiers} other {Dossiers}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, one {Correspond actuellement à {1} document sur {2}.} many {Correspond actuellement à {3} documents sur {4}.} other {Correspond actuellement à {3} documents sur {4}.}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, one {# fichier en conflit} many {# fichiers en c
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, one {# commentaire} many {# commentaires} other {# commentaires}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, one {# document} many {# documents} other {# documents}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# élément n'a pas pu être mis à la {trashNoun}. Voulez-vous le supprimer définitivement ?} many {# éléments n'ont pas pu être mis à la {trashNoun}. Voulez-vous les supprimer définitivement ?} other {# éléments n'ont pas pu être mis à la {trashNoun}. Voulez-vous les supprimer définitivement ?}}"
@@ -1496,6 +1518,10 @@ msgstr "Valeurs autorisées pour {field}"
msgid "Already at {assetContentPath} — reusing."
msgstr "Déjà dans {assetContentPath} — réutilisation."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "Déjà couvert par un dossier parent sélectionné"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "Vous avez déjà un dépôt git ? Ajoutez-le avec <0>git remote add origin <url></0> dans le dossier de ce projet. Cette page se met à jour automatiquement dès qu'un dépôt distant est détecté."
@@ -7781,6 +7807,14 @@ msgstr "Aucun fichier sélectionné"
msgid "No files yet."
msgstr "Pas encore de fichiers."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "Aucun dossier dans ce projet pour l'instant."
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "Aucun dossier ne correspond."
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "Aucun dépôt distant git"
@@ -9068,6 +9102,14 @@ msgstr "Choisissez un thème ou créez le vôtre."
msgid "Pick an emoji to insert at the cursor."
msgstr "Choisissez un émoji à insérer au curseur."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "Choisir des dossiers"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "Choisir les dossiers auxquels ce schéma s'applique"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "Choisissez le dossier où vous l'avez cloné."
@@ -10402,6 +10444,10 @@ msgstr "Recherchez des fichiers, des dossiers et des commandes dans l'espace de
msgid "Search files, folders, or commands"
msgstr "Rechercher des fichiers, des dossiers ou des commandes"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "Rechercher des dossiers"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "Rechercher des icônes..."
@@ -12701,6 +12747,11 @@ msgstr "Basculer les miniatures"
msgid "Toggle underline formatting."
msgstr "Bascule la mise en forme soulignée."
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "Active ou désactive le motif {0}/**"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "Trop lent"
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index d9567e868..7186c4e80 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -1107,6 +1107,7 @@
"GUYwCr": ["सूचना ख़ारिज करें"],
"GUZHkL": ["पैलेट के रंग मौजूद नहीं हैं"],
"GUqTzn": ["प्रतिस्पर्धी शोध"],
+ "GW9ZdV": ["फ़ोल्डर चुनें"],
"GXf9hG": [["repoName"], " क्लोन किया जा रहा है…"],
"GZzDqc": [
"अभी आपको मिली त्रुटि का विवरण शामिल है। API कुंजी और टोकन जैसी गोपनीय जानकारी अपने आप हटा दी जाती है।"
@@ -1900,6 +1901,7 @@
"SlfejT": ["त्रुटि"],
"Soy_80": [["0"], " बिना पूछे काम करता है — OpenKnowledge इसके लिए अनुमति संकेत नहीं जोड़ सकता"],
"SqIoy_": ["स्वत: सुधार — यहाँ किसी भी समस्या का स्वचालित समाधान नहीं है"],
+ "Sr9xtj": ["वे फ़ोल्डर चुनें जिन पर यह स्कीमा लागू होती है"],
"SrOuyg": ["दस्तावेज़ पैनल"],
"SvBFYA": ["कोई हाल का प्रोजेक्ट नहीं"],
"Sxx_Zz": [
@@ -2073,9 +2075,11 @@
"V_DjMe": ["रेंडर त्रुटि"],
"V_wltx": ["इस टेम्पलेट के लिए एक शीर्षक डालें।"],
"Va3xJe": ["फ़ील्ड जोड़ें"],
+ "VbM4Sv": ["फ़ोल्डर खोजें"],
"VbqhBI": ["पहले से ही ", ["assetContentPath"], " पर — पुन: उपयोग किया जा रहा है।"],
"VbyRUy": ["टिप्पणियाँ"],
"VcqWBy": ["अपलोड शायद सफल रहा पर साइडबार पुराना है — फिर से सिंक करने के लिए ताज़ा करें"],
+ "Vd8wxu": [["0", "plural", { "one": ["#", " फ़ोल्डर चुना गया"], "other": ["#", " फ़ोल्डर चुने गए"] }]],
"VdXv4D": ["GitHub से क्लोन करें"],
"VeVIIk": ["स्किल लोड हो रही हैं"],
"Vftef5": ["सामान्य markdown समस्याएँ — हार्ड टैब, शीर्षक स्तर, सूची चिह्न, और भी बहुत कुछ।"],
@@ -2197,6 +2201,7 @@
"XgqUOy": ["उस स्रोत पर कोई स्किल नहीं मिली। आगे बढ़ने पर आयात बताएगा कि क्यों।"],
"Xhm7gG": ["एसेट सुझाव"],
"Xisk4u": [["editedAgo"], " संपादित"],
+ "XjqA8x": ["पैटर्न ", ["0"], "/** टॉगल करें"],
"Xk0-VC": [
"इस प्रोजेक्ट के अन्य दस्तावेज़ों के लिंक का पूर्वावलोकन हमेशा चालू रहता है और स्थानीय अनुक्रमणिका से पढ़ा जाता है — उनके लिए कुछ भी आपके कंप्यूटर से बाहर नहीं जाता।"
],
@@ -2368,6 +2373,16 @@
],
"Zon_qG": ["मिरर स्रोत <0>", ["label"], "</0>"],
"ZptNUh": [["hidden"], " और दिखाएँ"],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["अभी ", ["2"], " में से ", ["1"], " दस्तावेज़ से मेल खाता है।"],
+ "other": ["अभी ", ["4"], " में से ", ["3"], " दस्तावेज़ों से मेल खाता है।"]
+ }
+ ]
+ ],
"ZsGpr_": ["लिंक चिपकाएँ"],
"ZscwQ0": ["केवल मेरे लिए पर नहीं जाया जा सका"],
"Zue_jx": ["आपके GitHub टोकन में आवश्यक स्कोप नहीं हैं। फिर से साइन इन करके देखें।"],
@@ -2516,6 +2531,7 @@
"bBE5tC": ["इस मशीन पर पाया गया"],
"bBcFK_": [["keyName"], " के लिए इमोजी चयनकर्ता खोलें"],
"bD8I7O": ["पूर्ण"],
+ "bDiiSM": ["पहले से चुने गए मूल फ़ोल्डर में शामिल है"],
"bEp7UY": ["डेस्कटॉप ब्रिज से नहीं जुड़ा है"],
"bF22t6": ["फ़ील्ड ", ["field"], " हटाएँ"],
"bGOTXx": ["मौजूदा चयन पर टिप्पणी लेखन-पट्टी खोलें और उसे भेजने की कतार में जोड़ें।"],
@@ -3394,6 +3410,7 @@
"इस प्रोजेक्ट में <0>.ok/templates/</0> पर सहेजा गया। हर फ़ोल्डर में उपलब्ध (फ़ोल्डर-सीमित टेम्पलेट फ़ाइल-नाम से इसे अधिरोहित कर सकते हैं)।"
],
"ng2Ibo": ["ब्रांच का नाम"],
+ "ni5Vqi": ["(केवल फ़ोल्डर नाम के बाद /** जोड़ना ज़रूरी है ताकि उसके अंदर की सामग्री मेल खाए)"],
"njBeMm": ["दोनों"],
"njU86j": ["प्रॉपर्टी \"", ["trimmed"], "\" पहले से मौजूद है"],
"nmwqWS": ["उत्तर नहीं दिया गया"],
@@ -3991,6 +4008,7 @@
"wqD3pI": [["0"], " में से ", ["failed"], " टिप्पणियाँ अपडेट नहीं हो सकीं।"],
"ws5o1F": ["जाँचकर्ता: ", ["0"]],
"wtcxiD": ["यह सेटअप अपनी टीम के साथ साझा करें?"],
+ "wtd69q": ["कोई फ़ोल्डर मेल नहीं खाता।"],
"wvK7Ay": ["ब्रांच <0>", ["branch"], "</0> की आपकी स्थानीय प्रति पीछे है।"],
"wvbc1r": ["दस्तावेज़ नहीं खोला जा सका"],
"wzq9Rv": ["उस नाम की एक ब्रांच पहले से मौजूद है। इसके बजाय स्विचर से इसका वर्कट्री खोलें।"],
@@ -4120,6 +4138,7 @@
"yhdqox": [
"इंस्टॉल है — ok बाहरी टर्मिनलों में उपलब्ध है। चुनाव हटाने पर यह हट जाता है; OpenKnowledge का अंतर्निहित टर्मिनल और AI टूल काम करते रहते हैं।"
],
+ "yit5dF": ["इस प्रोजेक्ट में अभी कोई फ़ोल्डर नहीं है।"],
"yjExfe": ["ब्रांच <0>", ["shareBranch"], "</0> यहाँ चेक आउट है:"],
"ylXj1N": ["चयनित"],
"ymWJLd": [["0"], " और दिखाएँ"],
@@ -4151,6 +4170,7 @@
"zAJzIg": [["0"], " में समस्याएँ"],
"zAsDLY": ["दस्तावेज़ लिंक का ग्राफ़ चित्रण"],
"zBUqvf": ["OpenKnowledge एकीकरण सेट अप करें…"],
+ "zD1Nqf": [["count", "plural", { "one": ["#", " दस्तावेज़"], "other": ["#", " दस्तावेज़"] }]],
"zJL34S": ["नई Terminal विंडो"],
"zKxoPm": ["\"", ["0"], "\" का नाम नहीं बदला जा सका: ", ["1"]],
"zL0LPh": ["पाठ फ़ील्ड के बाहर वैश्विक"],
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index 057744a02..69492b0d7 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -96,6 +96,10 @@ msgstr "\"{trimmed}\" यहाँ पहले से मौजूद है"
msgid "\"frontmatter\" is a reserved property name"
msgstr "\"frontmatter\" एक आरक्षित प्रॉपर्टी नाम है"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(केवल फ़ोल्डर नाम के बाद /** जोड़ना ज़रूरी है ताकि उसके अंदर की सामग्री मेल खाए)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, one {# दस्तावेज़} other {# दस्ता
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, one {# त्रुटि} other {# त्रुटियाँ}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, one {# फ़ोल्डर चुना गया} other {# फ़ोल्डर चुने गए}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, one {फ़ाइल} other {फ़ाइलें}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, one {फ़ोल्डर} other {फ़ोल्डर}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, one {अभी {2} में से {1} दस्तावेज़ से मेल खाता है।} other {अभी {4} में से {3} दस्तावेज़ों से मेल खाता है।}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, one {# फ़ाइल में टकराव
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, one {# टिप्पणी} other {# टिप्पणियाँ}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, one {# दस्तावेज़} other {# दस्तावेज़}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# आइटम को {trashNoun} में नहीं ले जाया जा सका। क्या आप इसके बजाय स्थायी रूप से हटाना चाहते हैं?} other {# आइटम को {trashNoun} में नहीं ले जाया जा सका। क्या आप इसके बजाय स्थायी रूप से हटाना चाहते हैं?}}"
@@ -1492,6 +1514,10 @@ msgstr "{field} के लिए अनुमत मान"
msgid "Already at {assetContentPath} — reusing."
msgstr "पहले से ही {assetContentPath} पर — पुन: उपयोग किया जा रहा है।"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "पहले से चुने गए मूल फ़ोल्डर में शामिल है"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "पहले से एक git रिपॉज़िटरी है? इस प्रोजेक्ट के फ़ोल्डर में <0>git remote add origin <url></0> से इसे जोड़ें। रिमोट का पता चलते ही यह पेज अपने आप अद्यतित हो जाता है।"
@@ -7777,6 +7803,14 @@ msgstr "कोई फ़ाइल नहीं चुनी गई"
msgid "No files yet."
msgstr "अभी कोई फ़ाइल नहीं।"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "इस प्रोजेक्ट में अभी कोई फ़ोल्डर नहीं है।"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "कोई फ़ोल्डर मेल नहीं खाता।"
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "कोई git रिमोट नहीं"
@@ -9064,6 +9098,14 @@ msgstr "कोई थीम चुनें या अपनी थीम बन
msgid "Pick an emoji to insert at the cursor."
msgstr "कर्सर पर डालने के लिए कोई इमोजी चुनें।"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "फ़ोल्डर चुनें"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "वे फ़ोल्डर चुनें जिन पर यह स्कीमा लागू होती है"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "वह फ़ोल्डर चुनें जहाँ आपने इसे क्लोन किया है।"
@@ -10398,6 +10440,10 @@ msgstr "मौजूदा कार्यक्षेत्र के लिए
msgid "Search files, folders, or commands"
msgstr "फ़ाइलें, फ़ोल्डर या कमांड खोजें"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "फ़ोल्डर खोजें"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "आइकन खोजें..."
@@ -12697,6 +12743,11 @@ msgstr "थंबनेल चालू या बंद करें"
msgid "Toggle underline formatting."
msgstr "रेखांकित फ़ॉर्मैटिंग चालू या बंद करें।"
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "पैटर्न {0}/** टॉगल करें"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "बहुत धीमा"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index edf07b5b5..96afd4ea9 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -1148,6 +1148,7 @@
"GUYwCr": ["Tutup pemberitahuan"],
"GUZHkL": ["Warna palet tidak lengkap"],
"GUqTzn": ["Riset pesaing"],
+ "GW9ZdV": ["Pilih folder"],
"GXf9hG": ["Mengkloning ", ["repoName"], "..."],
"GZzDqc": [
"Detail tentang galat yang baru Anda alami disertakan. Rahasia seperti kunci API dan token disunting otomatis."
@@ -1963,6 +1964,7 @@
" bertindak tanpa bertanya — OpenKnowledge tidak dapat menambahkan permintaan izin untuknya"
],
"SqIoy_": ["Perbaikan otomatis — tidak ada masalah di sini yang punya perbaikan otomatis"],
+ "Sr9xtj": ["Pilih folder tempat skema ini berlaku"],
"SrOuyg": ["Panel dokumen"],
"SvBFYA": ["Tidak ada proyek terbaru"],
"Sxx_Zz": [
@@ -2154,11 +2156,13 @@
"V_DjMe": ["galat render"],
"V_wltx": ["Masukkan judul untuk templat ini."],
"Va3xJe": ["Tambahkan bidang"],
+ "VbM4Sv": ["Cari folder"],
"VbqhBI": ["Sudah ada di ", ["assetContentPath"], " — memakai ulang."],
"VbyRUy": ["Komentar"],
"VcqWBy": [
"Unggahan mungkin berhasil tetapi bilah sisi tidak mutakhir — segarkan untuk menyinkronkan ulang"
],
+ "Vd8wxu": [["0", "plural", { "other": ["#", " folder dipilih"] }]],
"VdXv4D": ["Kloning dari GitHub"],
"VeVIIk": ["Memuat keterampilan"],
"Vftef5": [
@@ -2290,6 +2294,7 @@
],
"Xhm7gG": ["Saran aset"],
"Xisk4u": ["Disunting ", ["editedAgo"]],
+ "XjqA8x": ["Mengaktifkan atau menonaktifkan pola ", ["0"], "/**"],
"Xk0-VC": [
"Pratinjau tautan ke dokumen lain di proyek ini selalu aktif dan dibaca dari indeks lokal — untuk yang itu, tidak ada yang keluar dari komputer Anda."
],
@@ -2459,6 +2464,9 @@
],
"Zon_qG": ["Sumber cermin <0>", ["label"], "</0>"],
"ZptNUh": ["Tampilkan ", ["hidden"], " lagi"],
+ "Zs3d0w": [
+ ["0", "plural", { "other": ["Saat ini cocok dengan ", ["3"], " dari ", ["4"], " dokumen."] }]
+ ],
"ZsGpr_": ["Tempel tautan"],
"ZscwQ0": ["Tidak bisa berpindah ke Hanya saya"],
"Zue_jx": ["Token GitHub Anda kehilangan cakupan yang wajib. Coba masuk lagi."],
@@ -2612,6 +2620,7 @@
"bBE5tC": ["Terdeteksi di komputer ini"],
"bBcFK_": ["Buka pemilih emoji untuk ", ["keyName"]],
"bD8I7O": ["Lengkap"],
+ "bDiiSM": ["Sudah tercakup oleh folder induk yang dipilih"],
"bEp7UY": ["Tidak terhubung ke bridge desktop"],
"bF22t6": ["Hapus bidang ", ["field"]],
"bGOTXx": [
@@ -3551,6 +3560,7 @@
"Disimpan di <0>.ok/templates/</0> pada proyek ini. Tersedia di setiap folder (templat khusus folder bisa menimpanya berdasarkan nama berkas)."
],
"ng2Ibo": ["Nama cabang"],
+ "ni5Vqi": ["(nama folder saja memerlukan /** setelahnya agar cocok dengan isinya)"],
"njBeMm": ["Keduanya"],
"njU86j": ["Properti \"", ["trimmed"], "\" sudah ada"],
"nmwqWS": ["Belum dijawab"],
@@ -4169,6 +4179,7 @@
"wqD3pI": [["failed"], " dari ", ["0"], " komentar tidak dapat diperbarui."],
"ws5o1F": ["Diperiksa oleh: ", ["0"]],
"wtcxiD": ["Bagikan penyiapan ini dengan tim Anda?"],
+ "wtd69q": ["Tidak ada folder yang cocok."],
"wvK7Ay": ["Salinan lokal cabang <0>", ["branch"], "</0> milik Anda tertinggal."],
"wvbc1r": ["Dokumen tidak bisa dibuka"],
"wzq9Rv": ["Cabang dengan nama itu sudah ada. Buka worktree-nya dari pengalih saja."],
@@ -4299,6 +4310,7 @@
"yhdqox": [
"Terpasang — ok tersedia di terminal eksternal. Melepas centang menghapusnya; terminal bawaan dan alat AI OpenKnowledge tetap berfungsi."
],
+ "yit5dF": ["Belum ada folder di proyek ini."],
"yjExfe": ["Cabang <0>", ["shareBranch"], "</0> sedang dipakai di:"],
"ylXj1N": ["Terpilih"],
"ymWJLd": ["Tampilkan ", ["0"], " lagi"],
@@ -4334,6 +4346,7 @@
"zAJzIg": ["Masalah di ", ["0"]],
"zAsDLY": ["Visualisasi graf tautan antardokumen"],
"zBUqvf": ["Siapkan integrasi OpenKnowledge…"],
+ "zD1Nqf": [["count", "plural", { "other": ["#", " dokumen"] }]],
"zJL34S": ["Jendela Terminal baru"],
"zKxoPm": ["\"", ["0"], "\" tidak bisa diganti namanya: ", ["1"]],
"zL0LPh": ["Global di luar bidang teks"],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index c8eb33523..7da5cae54 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -96,6 +96,10 @@ msgstr "\"{trimmed}\" sudah ada di sini"
msgid "\"frontmatter\" is a reserved property name"
msgstr "\"frontmatter\" adalah nama properti yang dicadangkan"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(nama folder saja memerlukan /** setelahnya agar cocok dengan isinya)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, other {# dokumen}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, other {# galat}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, other {# folder dipilih}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, other {Berkas}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, other {Folder}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, other {Saat ini cocok dengan {3} dari {4} dokumen.}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, other {# berkas berkonflik}}"
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, other {# komentar}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, other {# dokumen}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, other {# item tidak dapat dipindahkan ke {trashNoun}. Apakah Anda ingin menghapus permanen saja?}}"
@@ -1492,6 +1514,10 @@ msgstr "Nilai yang diizinkan untuk {field}"
msgid "Already at {assetContentPath} — reusing."
msgstr "Sudah ada di {assetContentPath} — memakai ulang."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "Sudah tercakup oleh folder induk yang dipilih"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "Sudah punya repositori git? Tambahkan dengan <0>git remote add origin <url></0> di folder proyek ini. Halaman ini diperbarui otomatis begitu sebuah remote terdeteksi."
@@ -7777,6 +7803,14 @@ msgstr "Tidak ada berkas yang dipilih"
msgid "No files yet."
msgstr "Belum ada berkas."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "Belum ada folder di proyek ini."
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "Tidak ada folder yang cocok."
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "Tidak ada remote git"
@@ -9064,6 +9098,14 @@ msgstr "Pilih tema atau buat tema Anda sendiri."
msgid "Pick an emoji to insert at the cursor."
msgstr "Pilih sebuah emoji untuk disisipkan di posisi kursor."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "Pilih folder"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "Pilih folder tempat skema ini berlaku"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "Pilih folder tempat Anda mengkloningnya."
@@ -10398,6 +10440,10 @@ msgstr "Mencari berkas, folder, dan perintah untuk ruang kerja saat ini."
msgid "Search files, folders, or commands"
msgstr "Cari berkas, folder, atau perintah"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "Cari folder"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "Cari ikon..."
@@ -12697,6 +12743,11 @@ msgstr "Tampilkan atau sembunyikan gambar mini"
msgid "Toggle underline formatting."
msgstr "Menyalakan atau mematikan format garis bawah."
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "Mengaktifkan atau menonaktifkan pola {0}/**"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "Terlalu lambat"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index 0d0ea4f99..27a52d191 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -1153,6 +1153,7 @@
"GUYwCr": ["Ďĩśḿĩśś ńōţĩćē"],
"GUZHkL": ["Ḿĩśśĩńĝ ƥàĺēţţē ćōĺōŕś"],
"GUqTzn": ["Ćōḿƥēţĩţōŕ ŕēśēàŕćĥ"],
+ "GW9ZdV": ["Ƥĩćķ ƒōĺďēŕś"],
"GXf9hG": ["Ćĺōńĩńĝ ", ["repoName"], "..."],
"GZzDqc": [
"Ďēţàĩĺś àƀōũţ ţĥē ēŕŕōŕ ŷōũ Ĵũśţ ĥĩţ àŕē ĩńćĺũďēď. Śēćŕēţś ĺĩķē ÀƤĨ ķēŷś àńď ţōķēńś àŕē ŕēďàćţēď àũţōḿàţĩćàĺĺŷ."
@@ -1959,6 +1960,7 @@
"SlfejT": ["Ēŕŕōŕ"],
"Soy_80": [["0"], " àćţś ŵĩţĥōũţ àśķĩńĝ — ŌƥēńĶńōŵĺēďĝē ćàń'ţ àďď ƥēŕḿĩśśĩōń ƥŕōḿƥţś ƒōŕ ĩţ"],
"SqIoy_": ["Àũţō-ƒĩx — ńō ƥŕōƀĺēḿś ĥēŕē ĥàvē àń àũţōḿàţĩć ƒĩx"],
+ "Sr9xtj": ["Ƥĩćķ ƒōĺďēŕś ţĥĩś śćĥēḿà àƥƥĺĩēś ţō"],
"SrOuyg": ["Ďōćũḿēńţ ƥàńēĺś"],
"SvBFYA": ["Ńō ŕēćēńţ ƥŕōĴēćţś"],
"Sxx_Zz": [
@@ -2142,9 +2144,13 @@
"V_DjMe": ["ŕēńďēŕ ēŕŕōŕ"],
"V_wltx": ["Ēńţēŕ à ţĩţĺē ƒōŕ ţĥĩś ţēḿƥĺàţē."],
"Va3xJe": ["Àďď ƒĩēĺď"],
+ "VbM4Sv": ["Śēàŕćĥ ƒōĺďēŕś"],
"VbqhBI": ["Àĺŕēàďŷ àţ ", ["assetContentPath"], " — ŕēũśĩńĝ."],
"VbyRUy": ["Ćōḿḿēńţś"],
"VcqWBy": ["Ũƥĺōàď ḿàŷ ĥàvē śũććēēďēď ƀũţ ţĥē śĩďēƀàŕ ĩś ōũţ ōƒ ďàţē — ŕēƒŕēśĥ ţō ŕēśŷńć"],
+ "Vd8wxu": [
+ ["0", "plural", { "one": ["#", " ƒōĺďēŕ ƥĩćķēď"], "other": ["#", " ƒōĺďēŕś ƥĩćķēď"] }]
+ ],
"VdXv4D": ["Ćĺōńē ƒŕōḿ ĜĩţĤũƀ"],
"VeVIIk": ["Ĺōàďĩńĝ śķĩĺĺś"],
"Vftef5": ["Ćōḿḿōń ḿàŕķďōŵń ĩśśũēś — ĥàŕď ţàƀś, ĥēàďĩńĝ ĩńćŕēḿēńţś, ĺĩśţ ḿàŕķēŕś, àńď ḿōŕē."],
@@ -2266,6 +2272,7 @@
"XgqUOy": ["Ńō śķĩĺĺ ƒōũńď àţ ţĥàţ śōũŕćē. Ĩḿƥōŕţ ŵĩĺĺ ŕēƥōŕţ ŵĥŷ ĩƒ ŷōũ ćōńţĩńũē."],
"Xhm7gG": ["Àśśēţ śũĝĝēśţĩōńś"],
"Xisk4u": ["Ēďĩţēď ", ["editedAgo"]],
+ "XjqA8x": ["Ţōĝĝĺēś ţĥē ƥàţţēŕń ", ["0"], "/**"],
"Xk0-VC": [
"Ƥŕēvĩēŵś ōƒ ĺĩńķś ţō ōţĥēŕ ďōćũḿēńţś ĩń ţĥĩś ƥŕōĴēćţ àŕē àĺŵàŷś ōń àńď ŕēàď ƒŕōḿ ţĥē ĺōćàĺ ĩńďēx — ńōţĥĩńĝ ĺēàvēś ŷōũŕ ćōḿƥũţēŕ ƒōŕ ţĥōśē."
],
@@ -2440,6 +2447,16 @@
],
"Zon_qG": ["Ḿĩŕŕōŕ śōũŕćē <0>", ["label"], "</0>"],
"ZptNUh": ["Śĥōŵ ", ["hidden"], " ḿōŕē"],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["Ḿàţćĥēś ", ["1"], " ōƒ ", ["2"], " ďōć ŕĩĝĥţ ńōŵ."],
+ "other": ["Ḿàţćĥēś ", ["3"], " ōƒ ", ["4"], " ďōćś ŕĩĝĥţ ńōŵ."]
+ }
+ ]
+ ],
"ZsGpr_": ["Ƥàśţē ĺĩńķ"],
"ZscwQ0": ["Ćōũĺďń'ţ śŵĩţćĥ ţō Ōńĺŷ ḿē"],
"Zue_jx": ["Ŷōũŕ ĜĩţĤũƀ ţōķēń ĩś ḿĩśśĩńĝ ŕēǫũĩŕēď śćōƥēś. Ţŕŷ śĩĝńĩńĝ ĩń àĝàĩń."],
@@ -2583,6 +2600,7 @@
"bBE5tC": ["Ďēţēćţēď ōń ţĥĩś ḿàćĥĩńē"],
"bBcFK_": ["Ōƥēń ēḿōĴĩ ƥĩćķēŕ ƒōŕ ", ["keyName"]],
"bD8I7O": ["Ćōḿƥĺēţē"],
+ "bDiiSM": ["Àĺŕēàďŷ ćōvēŕēď ƀŷ à ƥĩćķēď ƥàŕēńţ ƒōĺďēŕ"],
"bEp7UY": ["Ńōţ àţţàćĥēď ţō ďēśķţōƥ ƀŕĩďĝē"],
"bF22t6": ["Ŕēḿōvē ƒĩēĺď ", ["field"]],
"bGOTXx": [
@@ -3512,6 +3530,7 @@
"Śţōŕēď àţ <0>.ōķ/ţēḿƥĺàţēś/</0> ĩń ţĥĩś ƥŕōĴēćţ. Àvàĩĺàƀĺē ĩń ēvēŕŷ ƒōĺďēŕ (ƒōĺďēŕ-śćōƥēď ţēḿƥĺàţēś ćàń ōvēŕŕĩďē ƀŷ ƒĩĺēńàḿē)."
],
"ng2Ibo": ["ßŕàńćĥ ńàḿē"],
+ "ni5Vqi": ["(à ƀàŕē ƒōĺďēŕ ńàḿē ńēēďś /** àƒţēŕ ĩţ ţō ḿàţćĥ ŵĥàţ'ś ĩńśĩďē)"],
"njBeMm": ["ßōţĥ"],
"njU86j": ["Ƥŕōƥēŕţŷ \"", ["trimmed"], "\" àĺŕēàďŷ ēxĩśţś"],
"nmwqWS": ["Ńōţ àńśŵēŕēď"],
@@ -4140,6 +4159,7 @@
"wqD3pI": [["failed"], " ōƒ ", ["0"], " ćōḿḿēńţś ćōũĺď ńōţ ƀē ũƥďàţēď."],
"ws5o1F": ["Ćĥēćķēď ƀŷ: ", ["0"]],
"wtcxiD": ["Śĥàŕē ţĥĩś śēţũƥ ŵĩţĥ ŷōũŕ ţēàḿ?"],
+ "wtd69q": ["Ńō ƒōĺďēŕś ḿàţćĥ."],
"wvK7Ay": ["Ŷōũŕ ĺōćàĺ ćōƥŷ ōƒ ƀŕàńćĥ <0>", ["branch"], "</0> ĩś ƀēĥĩńď."],
"wvbc1r": ["Ćōũĺďń'ţ ōƥēń ďōćũḿēńţ"],
"wzq9Rv": [
@@ -4276,6 +4296,7 @@
"yhdqox": [
"Ĩńśţàĺĺēď — ōķ ĩś àvàĩĺàƀĺē ĩń ēxţēŕńàĺ ţēŕḿĩńàĺś. Ũńćĥēćķĩńĝ ŕēḿōvēś ĩţ; ŌƥēńĶńōŵĺēďĝē'ś ƀũĩĺţ-ĩń ţēŕḿĩńàĺ àńď ÀĨ ţōōĺś ķēēƥ ŵōŕķĩńĝ."
],
+ "yit5dF": ["Ńō ƒōĺďēŕś ĩń ţĥĩś ƥŕōĴēćţ ŷēţ."],
"yjExfe": ["ßŕàńćĥ <0>", ["shareBranch"], "</0> ĩś ćĥēćķēď ōũţ ĩń:"],
"ylXj1N": ["Śēĺēćţēď"],
"ymWJLd": ["Śĥōŵ ", ["0"], " ḿōŕē"],
@@ -4307,6 +4328,7 @@
"zAJzIg": ["Ƥŕōƀĺēḿś ĩń ", ["0"]],
"zAsDLY": ["Ĝŕàƥĥ vĩśũàĺĩźàţĩōń ōƒ ďōćũḿēńţ ĺĩńķś"],
"zBUqvf": ["Śēţ ũƥ ŌƥēńĶńōŵĺēďĝē ĩńţēĝŕàţĩōńś…"],
+ "zD1Nqf": [["count", "plural", { "one": ["#", " ďōć"], "other": ["#", " ďōćś"] }]],
"zJL34S": ["Ńēŵ Ţēŕḿĩńàĺ Ŵĩńďōŵ"],
"zKxoPm": ["Ćōũĺďń'ţ ŕēńàḿē \"", ["0"], "\": ", ["1"]],
"zL0LPh": ["Ĝĺōƀàĺ ōũţśĩďē ţēxţ ƒĩēĺďś"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index 3d244989b..28b6306b8 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -96,6 +96,10 @@ msgstr ""
msgid "\"frontmatter\" is a reserved property name"
msgstr ""
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr ""
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr ""
msgid "{0, plural, one {# error} other {# errors}}"
msgstr ""
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr ""
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr ""
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr ""
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr ""
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr ""
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr ""
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr ""
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr ""
@@ -1492,6 +1514,10 @@ msgstr ""
msgid "Already at {assetContentPath} — reusing."
msgstr ""
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr ""
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr ""
@@ -7777,6 +7803,14 @@ msgstr ""
msgid "No files yet."
msgstr ""
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr ""
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr ""
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr ""
@@ -9064,6 +9098,14 @@ msgstr ""
msgid "Pick an emoji to insert at the cursor."
msgstr ""
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr ""
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr ""
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr ""
@@ -10398,6 +10440,10 @@ msgstr ""
msgid "Search files, folders, or commands"
msgstr ""
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr ""
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr ""
@@ -12697,6 +12743,11 @@ msgstr ""
msgid "Toggle underline formatting."
msgstr ""
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr ""
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index 264743665..4fcc93e5f 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -1315,6 +1315,7 @@
"GUYwCr": ["Dispensar o aviso"],
"GUZHkL": ["Faltam cores na paleta"],
"GUqTzn": ["Pesquisa da concorrência"],
+ "GW9ZdV": ["Escolher pastas"],
"GXf9hG": ["Clonando ", ["repoName"], "..."],
"GZzDqc": [
"Os detalhes do erro que você acabou de encontrar estão incluídos. Segredos como chaves de API e tokens são ocultados automaticamente."
@@ -2211,6 +2212,7 @@
" age sem perguntar — o OpenKnowledge não consegue adicionar pedidos de permissão para ele"
],
"SqIoy_": ["Correção automática — nenhum problema aqui tem correção automática"],
+ "Sr9xtj": ["Escolher as pastas a que este esquema se aplica"],
"SrOuyg": ["Painéis do documento"],
"SvBFYA": ["Nenhum projeto recente"],
"Sxx_Zz": [
@@ -2414,11 +2416,23 @@
"V_DjMe": ["erro de renderização"],
"V_wltx": ["Digite um título para este modelo."],
"Va3xJe": ["Adicionar campo"],
+ "VbM4Sv": ["Buscar pastas"],
"VbqhBI": ["Já está em ", ["assetContentPath"], " — reaproveitando."],
"VbyRUy": ["Comentários"],
"VcqWBy": [
"O envio pode ter dado certo, mas a barra lateral está desatualizada — atualize para ressincronizar"
],
+ "Vd8wxu": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["#", " pasta selecionada"],
+ "many": ["#", " pastas selecionadas"],
+ "other": ["#", " pastas selecionadas"]
+ }
+ ]
+ ],
"VdXv4D": ["Clonar do GitHub"],
"VeVIIk": ["Carregando habilidades"],
"Vftef5": [
@@ -2558,6 +2572,7 @@
],
"Xhm7gG": ["Sugestões de recursos"],
"Xisk4u": ["Editado ", ["editedAgo"]],
+ "XjqA8x": ["Alterna o padrão ", ["0"], "/**"],
"Xk0-VC": [
"As pré-visualizações de links para outros documentos deste projeto estão sempre ligadas e são lidas do índice local — para essas, nada sai do seu computador."
],
@@ -2755,6 +2770,17 @@
],
"Zon_qG": ["Fonte do espelho <0>", ["label"], "</0>"],
"ZptNUh": ["Mostrar mais ", ["hidden"]],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["No momento, corresponde a ", ["1"], " de ", ["2"], " documento."],
+ "many": ["No momento, corresponde a ", ["3"], " de ", ["4"], " documentos."],
+ "other": ["No momento, corresponde a ", ["3"], " de ", ["4"], " documentos."]
+ }
+ ]
+ ],
"ZsGpr_": ["Colar link"],
"ZscwQ0": ["Não deu para mudar para Somente eu"],
"Zue_jx": ["Faltam escopos obrigatórios no seu token do GitHub. Tente entrar de novo."],
@@ -2915,6 +2941,7 @@
"bBE5tC": ["Detectado neste computador"],
"bBcFK_": ["Abrir o seletor de emojis de ", ["keyName"]],
"bD8I7O": ["Completo"],
+ "bDiiSM": ["Já coberta por uma pasta principal selecionada"],
"bEp7UY": ["Sem conexão com a ponte do desktop"],
"bF22t6": ["Remover o campo ", ["field"]],
"bGOTXx": [
@@ -3964,6 +3991,9 @@
"Guardado em <0>.ok/templates/</0> neste projeto. Disponível em todas as pastas (modelos de pasta podem substituí-lo pelo nome do arquivo)."
],
"ng2Ibo": ["Nome do ramo"],
+ "ni5Vqi": [
+ "(um nome de pasta sozinho precisa de /** depois para corresponder ao seu conteúdo)"
+ ],
"njBeMm": ["Ambos"],
"njU86j": ["A propriedade \"", ["trimmed"], "\" já existe"],
"nmwqWS": ["Sem resposta"],
@@ -4652,6 +4682,7 @@
"wqD3pI": ["Não foi possível atualizar ", ["failed"], " de ", ["0"], " comentários."],
"ws5o1F": ["Verificado por: ", ["0"]],
"wtcxiD": ["Compartilhar esta configuração com sua equipe?"],
+ "wtd69q": ["Nenhuma pasta corresponde."],
"wvK7Ay": ["Sua cópia local do ramo <0>", ["branch"], "</0> está atrasada."],
"wvbc1r": ["Não deu para abrir o documento"],
"wzq9Rv": ["Já existe um ramo com esse nome. Abra o worktree dele pelo seletor."],
@@ -4794,6 +4825,7 @@
"yhdqox": [
"Instalado — ok está disponível em terminais externos. Desmarcar remove; o terminal integrado e as ferramentas de IA do OpenKnowledge continuam funcionando."
],
+ "yit5dF": ["Ainda não há pastas neste projeto."],
"yjExfe": ["O ramo <0>", ["shareBranch"], "</0> está ativo em:"],
"ylXj1N": ["Selecionado"],
"ymWJLd": ["Mostrar mais ", ["0"]],
@@ -4833,6 +4865,13 @@
"zAJzIg": ["Problemas em ", ["0"]],
"zAsDLY": ["Visualização em grafo dos links entre documentos"],
"zBUqvf": ["Configurar as integrações do OpenKnowledge…"],
+ "zD1Nqf": [
+ [
+ "count",
+ "plural",
+ { "one": ["#", " documento"], "many": ["#", " documentos"], "other": ["#", " documentos"] }
+ ]
+ ],
"zJL34S": ["Nova janela do Terminal"],
"zKxoPm": ["Não deu para renomear \"", ["0"], "\": ", ["1"]],
"zL0LPh": ["Global fora dos campos de texto"],
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index ca7e0754a..78f8d01e4 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -96,6 +96,10 @@ msgstr "\"{trimmed}\" já existe aqui"
msgid "\"frontmatter\" is a reserved property name"
msgstr "\"frontmatter\" é um nome de propriedade reservado"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(um nome de pasta sozinho precisa de /** depois para corresponder ao seu conteúdo)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, one {# documento} many {# documentos} other {# documentos}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, one {# erro} many {# erros} other {# erros}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, one {# pasta selecionada} many {# pastas selecionadas} other {# pastas selecionadas}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, one {Arquivo} many {Arquivos} other {Arquivos}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, one {Pasta} many {Pastas} other {Pastas}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, one {No momento, corresponde a {1} de {2} documento.} many {No momento, corresponde a {3} de {4} documentos.} other {No momento, corresponde a {3} de {4} documentos.}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, one {# arquivo em conflito} many {# arquivos em
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, one {# comentário} many {# comentários} other {# comentários}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, one {# documento} many {# documentos} other {# documentos}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {Não foi possível mover # item para {trashNoun}. Deseja excluir permanentemente?} many {Não foi possível mover # itens para {trashNoun}. Deseja excluir permanentemente?} other {Não foi possível mover # itens para {trashNoun}. Deseja excluir permanentemente?}}"
@@ -1492,6 +1514,10 @@ msgstr "Valores permitidos para {field}"
msgid "Already at {assetContentPath} — reusing."
msgstr "Já está em {assetContentPath} — reaproveitando."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "Já coberta por uma pasta principal selecionada"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "Já tem um repositório git? Adicione-o com <0>git remote add origin <url></0> na pasta deste projeto. Esta página se atualiza sozinha assim que um remoto for detectado."
@@ -7777,6 +7803,14 @@ msgstr "Nenhum arquivo selecionado"
msgid "No files yet."
msgstr "Ainda não há arquivos."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "Ainda não há pastas neste projeto."
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "Nenhuma pasta corresponde."
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "Sem remoto do git"
@@ -9064,6 +9098,14 @@ msgstr "Escolha um tema ou crie o seu."
msgid "Pick an emoji to insert at the cursor."
msgstr "Escolha um emoji para inserir no cursor."
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "Escolher pastas"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "Escolher as pastas a que este esquema se aplica"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "Escolha a pasta onde você o clonou."
@@ -10398,6 +10440,10 @@ msgstr "Busca arquivos, pastas e comandos do espaço de trabalho atual."
msgid "Search files, folders, or commands"
msgstr "Busque arquivos, pastas ou comandos"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "Buscar pastas"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "Pesquisar ícones..."
@@ -12697,6 +12743,11 @@ msgstr "Mostrar ou ocultar as miniaturas"
msgid "Toggle underline formatting."
msgstr "Liga ou desliga o sublinhado."
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "Alterna o padrão {0}/**"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "Lento demais"
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index a8b515349..332f888e2 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -1164,6 +1164,7 @@
"GUYwCr": ["اطلاع برخاست کریں"],
"GUZHkL": ["پیلیٹ کے رنگ غائب ہیں"],
"GUqTzn": ["حریفوں کی تحقیق"],
+ "GW9ZdV": ["فولڈر منتخب کریں"],
"GXf9hG": [["repoName"], " کلون کیا جا رہا ہے..."],
"GZzDqc": [
"ابھی پیش آنے والی خرابی کی تفصیلات شامل ہیں۔ API کلیدیں اور ٹوکنز جیسے راز خودکار طور پر چھپا دیے جاتے ہیں۔"
@@ -2008,6 +2009,7 @@
" پوچھے بغیر عمل کرتا ہے — OpenKnowledge اس کے لیے اجازت کے پرامپٹ شامل نہیں کر سکتا"
],
"SqIoy_": ["خودکار اصلاح — یہاں کسی مسئلے کا خودکار حل نہیں ہے"],
+ "Sr9xtj": ["وہ فولڈر منتخب کریں جن پر یہ اسکیما لاگو ہوتا ہے"],
"SrOuyg": ["دستاویز کے پینلز"],
"SvBFYA": ["کوئی حالیہ پروجیکٹ نہیں"],
"Sxx_Zz": [
@@ -2195,9 +2197,11 @@
"V_DjMe": ["رینڈر کی خرابی"],
"V_wltx": ["اس ٹیمپلیٹ کے لیے عنوان درج کریں۔"],
"Va3xJe": ["فیلڈ شامل کریں"],
+ "VbM4Sv": ["فولڈر تلاش کریں"],
"VbqhBI": ["پہلے ہی ", ["assetContentPath"], " پر — دوبارہ استعمال کیا جا رہا ہے۔"],
"VbyRUy": ["تبصرے"],
"VcqWBy": ["شاید اپ لوڈ ہو گیا ہو مگر سائیڈ بار پرانا ہے — دوبارہ مطابقت کے لیے تازہ کریں"],
+ "Vd8wxu": [["0", "plural", { "one": ["#", " فولڈر منتخب"], "other": ["#", " فولڈر منتخب"] }]],
"VdXv4D": ["GitHub سے کلون کریں"],
"VeVIIk": ["مہارتیں لوڈ ہو رہی ہیں"],
"Vftef5": [
@@ -2327,6 +2331,7 @@
"XgqUOy": ["اس ماخذ پر کوئی مہارت نہیں ملی۔ اگر آپ جاری رکھیں تو درآمد وجہ بتا دے گی۔"],
"Xhm7gG": ["اثاثوں کی تجاویز"],
"Xisk4u": [["editedAgo"], " ترمیم ہوئی"],
+ "XjqA8x": ["پیٹرن ", ["0"], "/** ٹوگل کریں"],
"Xk0-VC": [
"اس پروجیکٹ کی دیگر دستاویزات کے لنکس کے پیش منظر ہمیشہ فعال رہتے ہیں اور مقامی اشاریے سے پڑھے جاتے ہیں — ان کے لیے آپ کے کمپیوٹر سے کچھ باہر نہیں جاتا۔"
],
@@ -2500,6 +2505,16 @@
],
"Zon_qG": ["مرر کا ماخذ <0>", ["label"], "</0>"],
"ZptNUh": [["hidden"], " مزید دکھائیں"],
+ "Zs3d0w": [
+ [
+ "0",
+ "plural",
+ {
+ "one": ["ابھی ", ["2"], " میں سے ", ["1"], " دستاویز مماثل ہے۔"],
+ "other": ["ابھی ", ["4"], " میں سے ", ["3"], " دستاویزات مماثل ہیں۔"]
+ }
+ ]
+ ],
"ZsGpr_": ["لنک چسپاں کریں"],
"ZscwQ0": ["«صرف میں» پر تبدیل نہیں ہو سکا"],
"Zue_jx": ["آپ کے GitHub ٹوکن میں مطلوبہ دائرہ کار غائب ہیں۔ دوبارہ سائن اِن کر کے دیکھیں۔"],
@@ -2651,6 +2666,7 @@
"bBE5tC": ["اس مشین پر پایا گیا"],
"bBcFK_": [["keyName"], " کے لیے ایموجی منتخب کنندہ کھولیں"],
"bD8I7O": ["مکمل"],
+ "bDiiSM": ["پہلے سے منتخب کردہ پیرنٹ فولڈر میں شامل ہے"],
"bEp7UY": ["ڈیسک ٹاپ برج سے منسلک نہیں"],
"bF22t6": ["فیلڈ ", ["field"], " ہٹائیں"],
"bGOTXx": ["موجودہ انتخاب پر تبصرے کا کمپوزر کھولیں اور اسے بھیجنے کی قطار میں شامل کریں۔"],
@@ -3596,6 +3612,7 @@
"اس پروجیکٹ میں <0>.ok/templates/</0> پر محفوظ۔ ہر فولڈر میں دستیاب (فولڈر تک محدود ٹیمپلیٹس فائل کے نام سے اسے منسوخ کر سکتے ہیں)۔"
],
"ng2Ibo": ["برانچ کا نام"],
+ "ni5Vqi": ["(صرف فولڈر کے نام کے بعد /** لگانا ضروری ہے تاکہ اس کے اندر کا مواد مماثل ہو)"],
"njBeMm": ["دونوں"],
"njU86j": ["خصوصیت «", ["trimmed"], "» پہلے سے موجود ہے"],
"nmwqWS": ["جواب نہیں دیا گیا"],
@@ -4215,6 +4232,7 @@
"wqD3pI": [["0"], " میں سے ", ["failed"], " تبصرے اپ ڈیٹ نہیں ہو سکے۔"],
"ws5o1F": ["جانچا گیا: ", ["0"]],
"wtcxiD": ["یہ سیٹ اپ اپنی ٹیم کے ساتھ شیئر کریں؟"],
+ "wtd69q": ["کوئی فولڈر مماثل نہیں۔"],
"wvK7Ay": ["برانچ <0>", ["branch"], "</0> کی آپ کی مقامی نقل پیچھے ہے۔"],
"wvbc1r": ["دستاویز نہیں کھل سکی"],
"wzq9Rv": ["اس نام کی برانچ پہلے سے موجود ہے۔ اس کے بجائے سوئچر سے اس کا ورک ٹری کھولیں۔"],
@@ -4347,6 +4365,7 @@
"yhdqox": [
"نصب شدہ — ok بیرونی ٹرمینلز میں دستیاب ہے۔ نشان ہٹانے سے یہ ہٹ جاتا ہے؛ OpenKnowledge کا بلٹ اِن ٹرمینل اور AI ٹولز کام کرتے رہتے ہیں۔"
],
+ "yit5dF": ["اس پروجیکٹ میں ابھی کوئی فولڈر نہیں ہے۔"],
"yjExfe": ["برانچ <0>", ["shareBranch"], "</0> یہاں چیک آؤٹ ہے:"],
"ylXj1N": ["منتخب"],
"ymWJLd": [["0"], " مزید دکھائیں"],
@@ -4378,6 +4397,7 @@
"zAJzIg": [["0"], " میں مسائل"],
"zAsDLY": ["دستاویزات کے لنکس کی گرافی نمائش"],
"zBUqvf": ["OpenKnowledge کے انضمامات ترتیب دیں…"],
+ "zD1Nqf": [["count", "plural", { "one": ["#", " دستاویز"], "other": ["#", " دستاویزات"] }]],
"zJL34S": ["نئی Terminal ونڈو"],
"zKxoPm": ["«", ["0"], "» کا نام نہیں بدلا جا سکا: ", ["1"]],
"zL0LPh": ["متن کے فیلڈز سے باہر عالمی"],
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index 3440c44d8..16c9c021f 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -96,6 +96,10 @@ msgstr "«{trimmed}» یہاں پہلے سے موجود ہے"
msgid "\"frontmatter\" is a reserved property name"
msgstr "«frontmatter» ایک محفوظ خصوصیت کا نام ہے"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(صرف فولڈر کے نام کے بعد /** لگانا ضروری ہے تاکہ اس کے اندر کا مواد مماثل ہو)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, one {# دستاویز} other {# دستاویزات}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, one {# خرابی} other {# خرابیاں}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, one {# فولڈر منتخب} other {# فولڈر منتخب}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, one {فائل} other {فائلیں}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, one {فولڈر} other {فولڈرز}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, one {ابھی {2} میں سے {1} دستاویز مماثل ہے۔} other {ابھی {4} میں سے {3} دستاویزات مماثل ہیں۔}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, one {# فائل متصادم} other {# فائل
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, one {# تبصرہ} other {# تبصرے}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, one {# دستاویز} other {# دستاویزات}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, one {# آئٹم {trashNoun} میں منتقل نہیں ہو سکا۔ کیا آپ اس کے بجائے مستقل طور پر حذف کرنا چاہتے ہیں؟} other {# آئٹمز {trashNoun} میں منتقل نہیں ہو سکے۔ کیا آپ اس کے بجائے مستقل طور پر حذف کرنا چاہتے ہیں؟}}"
@@ -1496,6 +1518,10 @@ msgstr "{field} کے لیے اجازت شدہ اقدار"
msgid "Already at {assetContentPath} — reusing."
msgstr "پہلے ہی {assetContentPath} پر — دوبارہ استعمال کیا جا رہا ہے۔"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "پہلے سے منتخب کردہ پیرنٹ فولڈر میں شامل ہے"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "پہلے سے git ریپازٹری موجود ہے؟ اس پروجیکٹ کے فولڈر میں <0>git remote add origin <url></0> سے شامل کریں۔ ریموٹ کا پتا چلتے ہی یہ صفحہ خودکار طور پر تازہ ہو جاتا ہے۔"
@@ -7781,6 +7807,14 @@ msgstr "کوئی فائل منتخب نہیں"
msgid "No files yet."
msgstr "ابھی کوئی فائل نہیں۔"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "اس پروجیکٹ میں ابھی کوئی فولڈر نہیں ہے۔"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "کوئی فولڈر مماثل نہیں۔"
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "کوئی git ریموٹ نہیں"
@@ -9068,6 +9102,14 @@ msgstr "ایک تھیم منتخب کریں یا اپنی تھیم بنائیں
msgid "Pick an emoji to insert at the cursor."
msgstr "کرسر پر داخل کرنے کے لیے کوئی ایموجی منتخب کریں۔"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "فولڈر منتخب کریں"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "وہ فولڈر منتخب کریں جن پر یہ اسکیما لاگو ہوتا ہے"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "وہ فولڈر منتخب کریں جہاں آپ نے اسے کلون کیا ہے۔"
@@ -10402,6 +10444,10 @@ msgstr "موجودہ ورک اسپیس کی فائلیں، فولڈرز اور
msgid "Search files, folders, or commands"
msgstr "فائلیں، فولڈرز یا کمانڈز تلاش کریں"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "فولڈر تلاش کریں"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "آئیکن تلاش کریں..."
@@ -12701,6 +12747,11 @@ msgstr "تھمب نیلز بدلیں"
msgid "Toggle underline formatting."
msgstr "خطِ تحت کی فارمیٹنگ بدلیں۔"
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "پیٹرن {0}/** ٹوگل کریں"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "بہت سست"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index ac4c3a10b..18a670cbe 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -1026,6 +1026,7 @@
"GUYwCr": ["忽略此提示"],
"GUZHkL": ["缺少调色板颜色"],
"GUqTzn": ["竞品调研"],
+ "GW9ZdV": ["选择文件夹"],
"GXf9hG": ["正在克隆 ", ["repoName"], "…"],
"GZzDqc": ["其中包含你刚遇到的错误的详细信息。API 密钥、令牌等机密内容会自动隐去。"],
"G_686w": ["任务清单"],
@@ -1734,6 +1735,7 @@
"SlfejT": ["错误"],
"Soy_80": [["0"], " 不经询问即执行操作 — OpenKnowledge 无法为其添加权限确认"],
"SqIoy_": ["自动修复——这里的问题都没有自动修复方案"],
+ "Sr9xtj": ["选择这个架构适用的文件夹"],
"SrOuyg": ["文档面板"],
"SvBFYA": ["没有最近的项目"],
"Sxx_Zz": [
@@ -1903,9 +1905,11 @@
"V_DjMe": ["渲染错误"],
"V_wltx": ["请为这个模板输入标题。"],
"Va3xJe": ["添加字段"],
+ "VbM4Sv": ["搜索文件夹"],
"VbqhBI": ["已经在 ", ["assetContentPath"], " 了——直接复用。"],
"VbyRUy": ["评论"],
"VcqWBy": ["上传可能已成功,但侧边栏不是最新的——请刷新以重新同步"],
+ "Vd8wxu": [["0", "plural", { "other": ["已选 ", "#", " 个文件夹"] }]],
"VdXv4D": ["从 GitHub 克隆"],
"VeVIIk": ["正在加载技能"],
"Vftef5": ["常见的 markdown 问题——硬制表符、标题层级跳跃、列表标记等等。"],
@@ -2027,6 +2031,7 @@
"XgqUOy": ["在那个来源没有找到技能。如果继续,导入会告诉你原因。"],
"Xhm7gG": ["资源建议"],
"Xisk4u": [["editedAgo"], "编辑"],
+ "XjqA8x": ["切换模式 ", ["0"], "/**"],
"Xk0-VC": [
"指向本项目其他文档的链接预览始终开启,并从本地索引读取——这类预览不会有任何内容离开你的电脑。"
],
@@ -2178,6 +2183,7 @@
"ZoOlzR": ["应用与系统信息,以及最近的应用日志。当前没有打开的项目,因此不包含项目日志。"],
"Zon_qG": ["镜像来源 <0>", ["label"], "</0>"],
"ZptNUh": ["再显示 ", ["hidden"], " 个"],
+ "Zs3d0w": [["0", "plural", { "other": ["当前匹配 ", ["4"], " 个文档中的 ", ["3"], " 个。"] }]],
"ZsGpr_": ["粘贴链接"],
"ZscwQ0": ["无法切换到「仅自己」"],
"Zue_jx": ["你的 GitHub 令牌缺少必需的权限范围。请尝试重新登录。"],
@@ -2313,6 +2319,7 @@
"bBE5tC": ["在这台电脑上检测到"],
"bBcFK_": ["打开 ", ["keyName"], " 的表情符号选择器"],
"bD8I7O": ["完成"],
+ "bDiiSM": ["已被选中的上级文件夹覆盖"],
"bEp7UY": ["未连接到桌面桥接"],
"bF22t6": ["移除字段 ", ["field"]],
"bGOTXx": ["针对当前选区打开评论输入框,并把它加入发送队列。"],
@@ -3119,6 +3126,7 @@
"保存在这个项目的 <0>.ok/templates/</0> 中。在所有文件夹中都可用(文件夹范围的模板可按文件名覆盖它)。"
],
"ng2Ibo": ["分支名"],
+ "ni5Vqi": ["(仅写文件夹名时需要在后面加 /** 才能匹配其中的内容)"],
"njBeMm": ["两者"],
"njU86j": ["属性 \"", ["trimmed"], "\" 已存在"],
"nmwqWS": ["未回答"],
@@ -3646,6 +3654,7 @@
"wqD3pI": [["0"], " 条评论中有 ", ["failed"], " 条无法更新。"],
"ws5o1F": ["检查者:", ["0"]],
"wtcxiD": ["要把这套配置分享给你的团队吗?"],
+ "wtd69q": ["没有匹配的文件夹。"],
"wvK7Ay": ["你本地的 <0>", ["branch"], "</0> 分支副本落后了。"],
"wvbc1r": ["无法打开文档"],
"wzq9Rv": ["同名分支已存在。请从切换器中打开它的 worktree。"],
@@ -3762,6 +3771,7 @@
"yhdqox": [
"已安装——ok 可在外部终端中使用。取消勾选会将其移除;OpenKnowledge 的内置终端和 AI 工具照常可用。"
],
+ "yit5dF": ["此项目中还没有文件夹。"],
"yjExfe": ["分支 <0>", ["shareBranch"], "</0> 已在以下位置检出:"],
"ylXj1N": ["已选中"],
"ymWJLd": ["再显示 ", ["0"], " 个"],
@@ -3793,6 +3803,7 @@
"zAJzIg": [["0"], " 中的问题"],
"zAsDLY": ["文档链接的图形可视化。"],
"zBUqvf": ["设置 OpenKnowledge 集成…"],
+ "zD1Nqf": [["count", "plural", { "other": ["#", " 个文档"] }]],
"zJL34S": ["新建终端窗口"],
"zKxoPm": ["无法重命名 \"", ["0"], "\":", ["1"]],
"zL0LPh": ["文本字段之外的全局范围"],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index bc885e395..8967c3440 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -96,6 +96,10 @@ msgstr "“{trimmed}”在这里已存在"
msgid "\"frontmatter\" is a reserved property name"
msgstr "“frontmatter”是保留的属性名"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(仅写文件夹名时需要在后面加 /** 才能匹配其中的内容)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, other {# 个文档}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, other {# 个错误}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, other {已选 # 个文件夹}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, other {文件}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, other {文件夹}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, other {当前匹配 {4} 个文档中的 {3} 个。}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, other {# 个文件有冲突}}"
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, other {# 条评论}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, other {# 个文档}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, other {# 个项目无法移到{trashNoun}。是否要改为永久删除?}}"
@@ -1496,6 +1518,10 @@ msgstr "{field} 允许的值"
msgid "Already at {assetContentPath} — reusing."
msgstr "已经在 {assetContentPath} 了——直接复用。"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "已被选中的上级文件夹覆盖"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "已经有 git 仓库了?在这个项目的文件夹中用 <0>git remote add origin <url></0> 添加它。检测到远程仓库后,本页会自动更新。"
@@ -7781,6 +7807,14 @@ msgstr "未选择任何文件"
msgid "No files yet."
msgstr "还没有文件。"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "此项目中还没有文件夹。"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "没有匹配的文件夹。"
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "没有 git 远程"
@@ -9068,6 +9102,14 @@ msgstr "选择一个主题或创建自己的主题。"
msgid "Pick an emoji to insert at the cursor."
msgstr "选择一个表情符号插入到光标处。"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "选择文件夹"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "选择这个架构适用的文件夹"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "选择你克隆到的那个文件夹。"
@@ -10402,6 +10444,10 @@ msgstr "在当前工作区中搜索文件、文件夹和命令。"
msgid "Search files, folders, or commands"
msgstr "搜索文件、文件夹或命令"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "搜索文件夹"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "搜索图标..."
@@ -12701,6 +12747,11 @@ msgstr "切换缩略图"
msgid "Toggle underline formatting."
msgstr "切换下划线格式。"
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "切换模式 {0}/**"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "太慢了"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 2c5d2d793..ff8400f48 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -1032,6 +1032,7 @@
"GUYwCr": ["關閉這則提示"],
"GUZHkL": ["缺少色盤色彩"],
"GUqTzn": ["競品研究"],
+ "GW9ZdV": ["選擇資料夾"],
"GXf9hG": ["正在複製 ", ["repoName"], "…"],
"GZzDqc": ["其中包含你剛遇到的錯誤的詳細資料。API 金鑰、權杖之類的機密內容會自動遮蔽。"],
"G_686w": ["工作清單"],
@@ -1754,6 +1755,7 @@
"SlfejT": ["錯誤"],
"Soy_80": [["0"], " 不經詢問即執行操作 — OpenKnowledge 無法為其加入權限確認"],
"SqIoy_": ["自動修正——這裡的問題都沒有自動修正方式"],
+ "Sr9xtj": ["選擇這個結構描述適用的資料夾"],
"SrOuyg": ["文件面板"],
"SvBFYA": ["沒有最近的專案"],
"Sxx_Zz": [
@@ -1925,9 +1927,11 @@
"V_DjMe": ["算繪錯誤"],
"V_wltx": ["請為這個範本輸入標題。"],
"Va3xJe": ["新增欄位"],
+ "VbM4Sv": ["搜尋資料夾"],
"VbqhBI": ["已經在 ", ["assetContentPath"], " 了——直接重複使用。"],
"VbyRUy": ["註解"],
"VcqWBy": ["上傳可能已經成功,但側邊欄不是最新的——請重新整理以重新同步"],
+ "Vd8wxu": [["0", "plural", { "other": ["已選 ", "#", " 個資料夾"] }]],
"VdXv4D": ["從 GitHub 複製"],
"VeVIIk": ["正在載入技能"],
"Vftef5": ["常見的 markdown 問題——硬定位字元、標題層級跳躍、清單標記等等。"],
@@ -2049,6 +2053,7 @@
"XgqUOy": ["在那個來源找不到技能。如果繼續,匯入會告訴你原因。"],
"Xhm7gG": ["資源建議"],
"Xisk4u": [["editedAgo"], "編輯"],
+ "XjqA8x": ["切換模式 ", ["0"], "/**"],
"Xk0-VC": [
"連到這個專案其他文件的連結預覽一律開啟,而且是從本機索引讀取——這類預覽不會有任何內容離開你的電腦。"
],
@@ -2198,6 +2203,7 @@
],
"Zon_qG": ["鏡像來源 <0>", ["label"], "</0>"],
"ZptNUh": ["再顯示 ", ["hidden"], " 個"],
+ "Zs3d0w": [["0", "plural", { "other": ["目前符合 ", ["4"], " 個文件中的 ", ["3"], " 個。"] }]],
"ZsGpr_": ["貼上連結"],
"ZscwQ0": ["無法切換到「僅自己」"],
"Zue_jx": ["你的 GitHub 權杖缺少必要的權限範圍。請試著重新登入。"],
@@ -2333,6 +2339,7 @@
"bBE5tC": ["在這台電腦上偵測到"],
"bBcFK_": ["開啟 ", ["keyName"], " 的表情符號選擇器"],
"bD8I7O": ["完成"],
+ "bDiiSM": ["已由選取的上層資料夾涵蓋"],
"bEp7UY": ["未連接到桌面橋接"],
"bF22t6": ["移除欄位 ", ["field"]],
"bGOTXx": ["針對目前的選取範圍開啟註解輸入框,並把它加入傳送佇列。"],
@@ -3145,6 +3152,7 @@
"存在這個專案的 <0>.ok/templates/</0> 裡。在所有資料夾中都能用(資料夾範圍的範本可以用相同檔名覆蓋它)。"
],
"ng2Ibo": ["分支名稱"],
+ "ni5Vqi": ["(僅寫資料夾名稱時需要在後面加上 /** 才能符合其中的內容)"],
"njBeMm": ["兩者"],
"njU86j": ["屬性「", ["trimmed"], "」已存在"],
"nmwqWS": ["未回答"],
@@ -3674,6 +3682,7 @@
"wqD3pI": [["0"], " 則註解中有 ", ["failed"], " 則無法更新。"],
"ws5o1F": ["檢查者:", ["0"]],
"wtcxiD": ["要把這套設定分享給你的團隊嗎?"],
+ "wtd69q": ["沒有符合的資料夾。"],
"wvK7Ay": ["你本機的 <0>", ["branch"], "</0> 分支副本落後了。"],
"wvbc1r": ["無法開啟文件"],
"wzq9Rv": ["同名的分支已存在。請改從切換器開啟它的 worktree。"],
@@ -3790,6 +3799,7 @@
"yhdqox": [
"已安裝——ok 可以在外部終端機中使用。取消勾選會把它移除;OpenKnowledge 的內建終端機和 AI 工具照常可用。"
],
+ "yit5dF": ["此專案中還沒有資料夾。"],
"yjExfe": ["分支 <0>", ["shareBranch"], "</0> 已在以下位置簽出:"],
"ylXj1N": ["已選取"],
"ymWJLd": ["再顯示 ", ["0"], " 個"],
@@ -3823,6 +3833,7 @@
"zAJzIg": [["0"], " 中的問題"],
"zAsDLY": ["文件連結的圖形檢視。"],
"zBUqvf": ["設定 OpenKnowledge 整合…"],
+ "zD1Nqf": [["count", "plural", { "other": ["#", " 個文件"] }]],
"zJL34S": ["新增終端機視窗"],
"zKxoPm": ["無法重新命名「", ["0"], "」:", ["1"]],
"zL0LPh": ["文字欄位之外的全域範圍"],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index 70dfd590a..da2994ba3 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -96,6 +96,10 @@ msgstr "「{trimmed}」在這裡已存在"
msgid "\"frontmatter\" is a reserved property name"
msgstr "「frontmatter」是保留的屬性名稱"
+#: src/components/settings/LintingSection.tsx
+msgid "(a bare folder name needs /** after it to match what's inside)"
+msgstr "(僅寫資料夾名稱時需要在後面加上 /** 才能符合其中的內容)"
+
#. placeholder {0}: seed.parentProjectName
#: src/components/ShareReceiveDialog.tsx
msgid "(a worktree of {0})"
@@ -176,6 +180,11 @@ msgstr "{0, plural, other {# 個文件}}"
msgid "{0, plural, one {# error} other {# errors}}"
msgstr "{0, plural, other {# 個錯誤}}"
+#. placeholder {0}: selected.size
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{0, plural, one {# folder picked} other {# folders picked}}"
+msgstr "{0, plural, other {已選 # 個資料夾}}"
+
#. placeholder {0}: value.length
#: src/components/ArrayOfObjectsWidget.tsx
msgid "{0, plural, one {# item} other {# items}}"
@@ -236,6 +245,15 @@ msgstr "{0, plural, other {檔案}}"
msgid "{0, plural, one {Folder} other {Folders}}"
msgstr "{0, plural, other {資料夾}}"
+#. placeholder {0}: counted.total
+#. placeholder {1}: counted.matched
+#. placeholder {2}: counted.total
+#. placeholder {3}: counted.matched
+#. placeholder {4}: counted.total
+#: src/components/settings/LintingSection.tsx
+msgid "{0, plural, one {Matches {1} of {2} doc right now.} other {Matches {3} of {4} docs right now.}}"
+msgstr "{0, plural, other {目前符合 {4} 個文件中的 {3} 個。}}"
+
#. placeholder {0}: result.fileCount
#: src/components/ProblemsPanel.tsx
msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"
@@ -485,6 +503,10 @@ msgstr "{conflictCount, plural, other {# 個檔案有衝突}}"
msgid "{count, plural, one {# comment} other {# comments}}"
msgstr "{count, plural, other {# 則註解}}"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "{count, plural, one {# doc} other {# docs}}"
+msgstr "{count, plural, other {# 個文件}}"
+
#: src/components/TrashFailureModal.tsx
msgid "{count, plural, one {# item could not be moved to the {trashNoun}. Do you want to permanently delete instead?} other {# items could not be moved to the {trashNoun}. Do you want to permanently delete instead?}}"
msgstr "{count, plural, other {# 個項目無法移到{trashNoun}。是否要改為永久刪除?}}"
@@ -1496,6 +1518,10 @@ msgstr "{field} 允許的值"
msgid "Already at {assetContentPath} — reusing."
msgstr "已經在 {assetContentPath} 了——直接重複使用。"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Already covered by a picked parent folder"
+msgstr "已由選取的上層資料夾涵蓋"
+
#: src/components/settings/SyncSection.tsx
msgid "Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."
msgstr "已經有 git 儲存庫了?在這個專案的資料夾中用 <0>git remote add origin <url></0> 加上它。偵測到遠端後,這個頁面會自動更新。"
@@ -7781,6 +7807,14 @@ msgstr "沒有選取任何檔案"
msgid "No files yet."
msgstr "還沒有檔案。"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders in this project yet."
+msgstr "此專案中還沒有資料夾。"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "No folders match."
+msgstr "沒有符合的資料夾。"
+
#: src/components/SyncStatusBadge.tsx
msgid "No git remote"
msgstr "沒有 git 遠端"
@@ -9068,6 +9102,14 @@ msgstr "選擇主題或建立自己的主題。"
msgid "Pick an emoji to insert at the cursor."
msgstr "挑一個表情符號插入到游標處。"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders"
+msgstr "選擇資料夾"
+
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Pick folders this schema applies to"
+msgstr "選擇這個結構描述適用的資料夾"
+
#: src/components/ShareReceiveDialog.tsx
msgid "Pick the folder where you've cloned it."
msgstr "挑你複製下來的那個資料夾。"
@@ -10402,6 +10444,10 @@ msgstr "在目前的工作區中搜尋檔案、資料夾和指令。"
msgid "Search files, folders, or commands"
msgstr "搜尋檔案、資料夾或指令"
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Search folders"
+msgstr "搜尋資料夾"
+
#: src/editor/components/IconPickerInput.tsx
msgid "Search icons..."
msgstr "搜尋圖示..."
@@ -12701,6 +12747,11 @@ msgstr "切換縮圖"
msgid "Toggle underline formatting."
msgstr "切換底線格式。"
+#. placeholder {0}: row.path
+#: src/components/settings/applies-to-folder-picker.tsx
+msgid "Toggles the pattern {0}/**"
+msgstr "切換模式 {0}/**"
+
#: src/components/FeedbackForm.tsx
msgid "Too slow"
msgstr "太慢了"
diff --git a/packages/app/tests/stress/frontmatter-glob-picker.e2e.ts b/packages/app/tests/stress/frontmatter-glob-picker.e2e.ts
new file mode 100644
index 000000000..f52f0310b
--- /dev/null
+++ b/packages/app/tests/stress/frontmatter-glob-picker.e2e.ts
@@ -0,0 +1,284 @@
+/**
+ * Playwright E2E for the appliesTo folder picker — the running-app fidelities
+ * the DOM tests structurally cannot reach. The DOM tier mocks BOTH system
+ * boundaries (the config binding and the page list), so it proves what the UI
+ * sends, not that the system accepts it: the real chain
+ * pick a folder -> CRDT config patch -> persistence -> config.yml on disk
+ * -> server lint compose -> validation scoped to the picked folder
+ * is unknown until driven against a live server. This file drives it, plus the
+ * one class jsdom is blind to by construction: wheel scrolling the picker's
+ * list inside the Settings dialog, where react-remove-scroll's document-level
+ * listeners preventDefault native scroll on portaled descendants
+ * (radix-ui/primitives#1159) unless the popover's stopPropagation workaround
+ * holds. That regression shipped once — jsdom stayed green through it.
+ *
+ * Isolation: the schema files + config mappings are per-worker (shared across
+ * this file's tests), so every test asserts only against its OWN uuid-prefixed
+ * folders and patterns — totals like "of N docs" are matched by regex, never
+ * pinned, because sibling tests and fixture files contribute to N.
+ */
+
+import { randomUUID } from 'node:crypto';
+import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
+import { join } from 'node:path';
+import type { Page } from '@playwright/test';
+import { parse } from 'yaml';
+import { expect, filterCriticalErrors, type LogEntry, test } from './_helpers';
+
+const SCHEMA_MAIN = '.ok/schemas/glob-picker.schema.json';
+/** Dedicated row for the zero-match test — its count must not see other globs. */
+const SCHEMA_ZERO = '.ok/schemas/glob-picker-zero.schema.json';
+
+const REQUIRED_SCHEMA = JSON.stringify({ type: 'object', required: ['status', 'owner'] });
+
+const errors: LogEntry[] = [];
+
+const schemaRow = (page: Page, file: string) => page.getByTestId(`frontmatter-schema-row-${file}`);
+const pickerTrigger = (page: Page, file: string) =>
+ page.getByTestId(`frontmatter-schema-pick-folders-${file}`);
+const folderItem = (page: Page, file: string, path: string) =>
+ page.getByTestId(`frontmatter-schema-folder-item-${file}-${path}`);
+const folderList = (page: Page, file: string) =>
+ page.getByTestId(`frontmatter-schema-folder-tree-${file}`);
+const matchCount = (page: Page, file: string) =>
+ page.getByTestId(`frontmatter-schema-match-count-${file}`);
+const pillInput = (page: Page, file: string) =>
+ page.locator(`[id="frontmatter-schema-applies-${file}"]`);
+
+async function openFrontmatterSettings(page: Page) {
+ await page.goto('/#settings/plugin:frontmatter');
+ // The panel mounts reactively once the project config doc syncs and reports
+ // the plugin enabled — the deep-linked section id is held in state, so this
+ // is pure config-sync latency. Generous: under parallel worker start-up the
+ // sync can trail first paint by tens of seconds.
+ await expect(page.getByTestId('settings-plugin-frontmatter')).toBeVisible({ timeout: 30_000 });
+}
+
+test.beforeEach(async ({ page, workerServer }) => {
+ mkdirSync(join(workerServer.contentDir, '.ok', 'schemas'), { recursive: true });
+ writeFileSync(join(workerServer.contentDir, SCHEMA_MAIN), REQUIRED_SCHEMA, 'utf-8');
+ writeFileSync(join(workerServer.contentDir, SCHEMA_ZERO), REQUIRED_SCHEMA, 'utf-8');
+ writeFileSync(
+ join(workerServer.contentDir, '.ok', 'config.yml'),
+ [
+ 'contentRules:',
+ ' frontmatter:',
+ ' enabled: true',
+ ' schemas:',
+ ` - file: ${SCHEMA_MAIN}`,
+ // Scoped to a folder that never exists: an UNSCOPED mapping applies to
+ // every doc, which would badge the scoping test's "outside" doc from
+ // this row and make SCHEMA_MAIN's absence unobservable.
+ ` - file: ${SCHEMA_ZERO}`,
+ ' appliesTo:',
+ ' - zzz-never/**',
+ '',
+ ].join('\n'),
+ 'utf-8',
+ );
+ errors.length = 0;
+ page.on('pageerror', (err) => errors.push({ type: 'uncaught', text: err.message }));
+ page.on('console', (msg) => {
+ if (msg.type() === 'error') {
+ const loc = msg.location();
+ errors.push({ type: 'error', text: msg.text(), url: loc.url, line: loc.lineNumber });
+ }
+ });
+});
+
+test.afterEach(() => {
+ expect(filterCriticalErrors(errors), 'Expected zero critical console errors').toEqual([]);
+});
+
+test.afterAll(({ workerServer }) => {
+ // Restore the default so any e2e sharing this worker isn't left with the
+ // frontmatter plugin silently enabled.
+ writeFileSync(join(workerServer.contentDir, '.ok', 'config.yml'), '', 'utf-8');
+});
+
+test.describe('folder picker writes real config', () => {
+ test('picking a folder lands folder/** in the pills, the trigger, and config.yml on disk', async ({
+ page,
+ workerServer,
+ }) => {
+ const folder = `pick-${randomUUID().slice(0, 8)}`;
+ mkdirSync(join(workerServer.contentDir, folder), { recursive: true });
+ writeFileSync(join(workerServer.contentDir, folder, 'doc-a.md'), '# a\n', 'utf-8');
+
+ await openFrontmatterSettings(page);
+ await pickerTrigger(page, SCHEMA_MAIN).click();
+ // The row is fed by the real /api/documents folder feed; the watcher may
+ // still be indexing the folder created above, and the open list re-renders
+ // live as the page list refreshes.
+ await expect(folderItem(page, SCHEMA_MAIN, folder)).toBeVisible({ timeout: 15_000 });
+ await folderItem(page, SCHEMA_MAIN, folder).click();
+
+ // Multi-select: the popover stays open, the trigger now summarizes.
+ await expect(folderList(page, SCHEMA_MAIN)).toBeVisible();
+ await expect(pickerTrigger(page, SCHEMA_MAIN)).toContainText('1 folder picked');
+ // The generated pattern is visible in the escape-hatch pill input's row.
+ await expect(schemaRow(page, SCHEMA_MAIN)).toContainText(`${folder}/**`);
+ // And the write is REAL: CRDT patch -> persistence -> config.yml bytes.
+ await expect
+ .poll(() => readFileSync(join(workerServer.contentDir, '.ok', 'config.yml'), 'utf-8'), {
+ timeout: 15_000,
+ })
+ .toContain(`${folder}/**`);
+ });
+
+ test('the picked glob actually scopes validation: in-folder doc flags, outside doc does not', async ({
+ page,
+ api,
+ workerServer,
+ }) => {
+ const folder = `scope-${randomUUID().slice(0, 8)}`;
+ const insideDoc = `${folder}/inside`;
+ const outsideDoc = `outside-${randomUUID().slice(0, 8)}`;
+ mkdirSync(join(workerServer.contentDir, folder), { recursive: true });
+ await api.createPage(`${insideDoc}.md`);
+ await api.createPage(`${outsideDoc}.md`);
+ await api.replaceDoc(insideDoc, '# inside\n');
+ await api.replaceDoc(outsideDoc, '# outside\n');
+
+ await openFrontmatterSettings(page);
+ await pickerTrigger(page, SCHEMA_MAIN).click();
+ await expect(folderItem(page, SCHEMA_MAIN, folder)).toBeVisible({ timeout: 15_000 });
+ await folderItem(page, SCHEMA_MAIN, folder).click();
+ await expect(schemaRow(page, SCHEMA_MAIN)).toContainText(`${folder}/**`);
+
+ // The in-scope doc proves the schema is live before the out-of-scope
+ // absence means anything: both docs are missing the same two required
+ // properties, so the badge difference can only be the picked glob.
+ await page.goto(`/#/${insideDoc}`);
+ await expect(page.getByTestId('add-properties-problem-badge')).toBeVisible({
+ timeout: 20_000,
+ });
+
+ await page.goto(`/#/${outsideDoc}`);
+ await expect(page.locator('.ProseMirror:not(.composer-prosemirror)')).toContainText('outside', {
+ timeout: 15_000,
+ });
+ await expect(page.getByTestId('add-properties-problem-badge')).toHaveCount(0);
+ });
+
+ test('unchecking a picked folder removes its pattern from config.yml, dropping the appliesTo key', async ({
+ page,
+ workerServer,
+ }) => {
+ const folder = `unpick-${randomUUID().slice(0, 8)}`;
+ mkdirSync(join(workerServer.contentDir, folder), { recursive: true });
+ writeFileSync(join(workerServer.contentDir, folder, 'doc-u.md'), '# u\n', 'utf-8');
+ // The remove path must start from a PERSISTED glob, not one this test just
+ // picked: re-seed the worker config with the mapping already scoped, so
+ // the unpick drives a fresh CRDT patch through persistence to disk.
+ writeFileSync(
+ join(workerServer.contentDir, '.ok', 'config.yml'),
+ [
+ 'contentRules:',
+ ' frontmatter:',
+ ' enabled: true',
+ ' schemas:',
+ ` - file: ${SCHEMA_MAIN}`,
+ ' appliesTo:',
+ ` - ${folder}/**`,
+ ` - file: ${SCHEMA_ZERO}`,
+ ' appliesTo:',
+ ' - zzz-never/**',
+ '',
+ ].join('\n'),
+ 'utf-8',
+ );
+
+ await openFrontmatterSettings(page);
+ // The seeded glob is live in the row before the picker opens.
+ await expect(schemaRow(page, SCHEMA_MAIN)).toContainText(`${folder}/**`, { timeout: 15_000 });
+ await pickerTrigger(page, SCHEMA_MAIN).click();
+ const item = folderItem(page, SCHEMA_MAIN, folder);
+ await expect(item).toBeVisible({ timeout: 15_000 });
+ await expect(item).toHaveAttribute('aria-checked', 'true');
+
+ await item.click();
+ await expect(pickerTrigger(page, SCHEMA_MAIN)).toContainText('Pick folders');
+ await expect(schemaRow(page, SCHEMA_MAIN)).not.toContainText(`${folder}/**`);
+ // The removal is REAL: CRDT patch -> persistence -> config.yml bytes.
+ await expect
+ .poll(() => readFileSync(join(workerServer.contentDir, '.ok', 'config.yml'), 'utf-8'), {
+ timeout: 15_000,
+ })
+ .not.toContain(`${folder}/**`);
+ // Emptying the list drops the `appliesTo` key rather than writing
+ // `appliesTo: []`: the mapping reverts to its unscoped authored shape.
+ const config = parse(
+ readFileSync(join(workerServer.contentDir, '.ok', 'config.yml'), 'utf-8'),
+ ) as {
+ contentRules?: { frontmatter?: { schemas?: Array<{ file?: string; appliesTo?: unknown }> } };
+ };
+ const mapping = config.contentRules?.frontmatter?.schemas?.find((m) => m.file === SCHEMA_MAIN);
+ expect(mapping).toBeDefined();
+ expect(mapping).not.toHaveProperty('appliesTo');
+ });
+});
+
+test.describe('live match count against the real page list', () => {
+ test('a bare folder name reads 0 with the /** teaching hint; picking the folder fixes it', async ({
+ page,
+ workerServer,
+ }) => {
+ const folder = `zm-${randomUUID().slice(0, 8)}`;
+ mkdirSync(join(workerServer.contentDir, folder), { recursive: true });
+ writeFileSync(join(workerServer.contentDir, folder, 'doc-z.md'), '# z\n', 'utf-8');
+
+ await openFrontmatterSettings(page);
+ // The original bug-bash failure, typed into the raw input: a bare folder
+ // name is an exact-doc pattern and matches nothing.
+ await pillInput(page, SCHEMA_ZERO).fill(folder);
+ await pillInput(page, SCHEMA_ZERO).press('Enter');
+ await expect(matchCount(page, SCHEMA_ZERO)).toContainText(/Matches 0 of \d+ docs right now/, {
+ timeout: 15_000,
+ });
+ await expect(matchCount(page, SCHEMA_ZERO)).toContainText('a bare folder name needs /**');
+
+ // Picking the folder authors the pattern that was meant.
+ await pickerTrigger(page, SCHEMA_ZERO).click();
+ await expect(folderItem(page, SCHEMA_ZERO, folder)).toBeVisible({ timeout: 15_000 });
+ await folderItem(page, SCHEMA_ZERO, folder).click();
+ await expect(matchCount(page, SCHEMA_ZERO)).toContainText(/Matches 1 of \d+ docs right now/);
+ });
+});
+
+test.describe('picker list scrolls inside the Settings dialog', () => {
+ test('wheel over the open folder list moves it (react-remove-scroll workaround holds)', async ({
+ page,
+ workerServer,
+ }) => {
+ // Enough folders to overflow the CommandList's 300px max height. Created
+ // before navigation so the initial page-list fetch already carries them.
+ const stem = `scroll-${randomUUID().slice(0, 6)}`;
+ for (let i = 0; i < 20; i++) {
+ const dir = join(workerServer.contentDir, `${stem}-${String(i).padStart(2, '0')}`);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, 'doc.md'), '# d\n', 'utf-8');
+ }
+
+ await openFrontmatterSettings(page);
+ await pickerTrigger(page, SCHEMA_MAIN).click();
+ await expect(folderItem(page, SCHEMA_MAIN, `${stem}-00`)).toBeVisible({ timeout: 15_000 });
+
+ const list = folderList(page, SCHEMA_MAIN);
+ const overflows = () =>
+ list.evaluate((el) => ({
+ scrollTop: el.scrollTop,
+ overflow: el.scrollHeight - el.clientHeight,
+ }));
+ expect((await overflows()).overflow).toBeGreaterThan(0);
+
+ const box = await list.boundingBox();
+ if (!box) throw new Error('folder list has no bounding box');
+ await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2);
+ await page.mouse.wheel(0, 240);
+ // Native wheel must actually move the list. With the popover's
+ // stopPropagation workaround removed, react-remove-scroll preventDefaults
+ // the event and scrollTop stays 0 — this assertion is the regression pin.
+ await expect.poll(async () => (await overflows()).scrollTop).toBeGreaterThan(0);
+ });
+});