Skip to content

Rule Fired on a dictionary node opens its .dict entry (-DICTSOURCE, nlp-engine#475) - #1239

Merged
ddehilster merged 1 commit into
VisualText:masterfrom
ddehilster:feature/dict-source-475
Oct 15, 2026
Merged

ddehilster merged 1 commit into
VisualText:masterfrom
ddehilster:feature/dict-source-475

Conversation

@ddehilster

Copy link
Copy Markdown
Member

The extension half of VisualText/nlp-engine#475. Engine 4.2.33 added -DICTSOURCE (nlp-engine#789), which makes nodes built from .dict entries carry ("dictfile" "words.dict") ("dictline" 14).

  • src/nlp.ts: DEV-mode runs pass -DICTSOURCE when the installed engine is 4.2.33 or later and the new setting analyzer.dictSource is on (the default). Engines from 4.2.15 on exit on an unknown switch, so older engines never get it. Normal and SILENT runs don't get it either: the attributes only matter when you're reading trees.
  • src/treeFile.ts: "Rule Fired" on a dictionary node (pass 0, rule line 0) now opens kb/user/<dictfile> beside the tree, with the entry's line selected. A tree without the attributes (an older engine, or the setting off) falls back to the existing searchInDictionaries search.
  • package.json: new boolean setting analyzer.dictSource, on by default.

Checks:

  • tsc --noEmit: no new errors. The one existing error, serverCore.ts(680,83), is also on upstream/master.
  • eslint on the two changed files: clean.
  • The regexes pull the file and line correctly from real 4.2.33 final.tree lines.

I haven't tested it in a live VSCode window. That's worth one click on a dictionary node in a DEV-mode tree before release.

No version bump or CHANGELOG entry; that goes in the next release PR.

🤖 Generated with Claude Code

…isualText#475)

On DEV runs with engine 4.2.33 or later the extension passes -DICTSOURCE,
so nodes built from .dict entries carry dictfile and dictline. Rule Fired
on such a node opens that file at that line; without them it falls back
to searching the dictionaries as before. New setting analyzer.dictSource
(on by default) turns the switch off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ddehilster
ddehilster merged commit c1ceed8 into VisualText:master Oct 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant