fix: separa termos com espaco em vez de AND explicito

graph filter parser quebrava com AND explicito quando combinado
com termos negados. forma documentada e usada nativamente eh
separar por espaco (AND implicito).

antes: (path:foo) AND (-path:"bar")
depois: (path:foo) (-path:"bar")

bump: 0.5.2 -> 0.5.3
This commit is contained in:
Thalik Bussacro 2026-04-29 00:32:59 -03:00
parent e857b5f5f2
commit d1435a3fc8
4 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{
"id": "graph-filter-builder",
"name": "Graph Filter Builder",
"version": "0.5.2",
"version": "0.5.3",
"minAppVersion": "1.0.0",
"description": "Adds a Filter Builder panel to the graph view — structured Include/Exclude lines for tag/path/file with autocomplete. Lives at the top-left of the graph and live-updates the native filter input.",
"author": "Thalik",

View file

@ -1,6 +1,6 @@
{
"name": "graph-filter-builder",
"version": "0.5.2",
"version": "0.5.3",
"description": "Structured Include/Exclude filter builder for the graph view, with autocomplete for tags, paths and files.",
"main": "main.js",
"type": "module",

View file

@ -330,7 +330,10 @@ export class FilterBuilderSection {
if (parts.length === 0) return "";
if (parts.length === 1) return parts[0]!;
return parts.map((p) => `(${p})`).join(" AND ");
// Space-separated is the documented form for implicit AND.
// Explicit AND breaks the graph filter parser when combined with
// negated terms.
return parts.map((p) => `(${p})`).join(" ");
}
}

View file

@ -1,5 +1,6 @@
{
"0.5.0": "1.0.0",
"0.5.1": "1.0.0",
"0.5.2": "1.0.0"
"0.5.2": "1.0.0",
"0.5.3": "1.0.0"
}