Repository navigation
The knowledge base says what each file holds, on mouse-over - #25
Merged
Merged
Conversation
<nlp-knowledge-base> rows take a description -- the comment paragraph at the top of the .dict or .kbb file, read by kbDescription() the way the extension's KNOWLEDGE BASE view reads it -- and show it above the path. Files under kb/user/ are named without the kb/user/ (kbLabel()). NLP Studio fills the description from each file's first lines. analyzer-views 0.6.0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hovering over a
.dictor.kbbfile in the Knowledge Base list now shows what the file holds, above its path. The description is the comment paragraph at the top of the file, the same rule the Knowledge Base view in the NLP++ extension for VS Code uses (kbView.tsfileDescription). Files underkb/user/are listed by name only:colors.dict, notuser/colors.dict.@visualtext/analyzer-views0.6.0AnalyzerFiletakes an optionaldescription.<nlp-knowledge-base>shows it above the path on mouse-over, or just the path when there is none.kbDescription(text)in/rulesreads the opening#or/* */comment paragraph. It stops at a bare#and skips a/*that sits alone on its line. It reads at most the first 4 KB and 8 lines.kbLabel(path)gives the file's name in the list: the path withkb/user/removed.NLP Studio fills in
descriptionfrom the first 20 lines of each file already loaded in the editor, so a 10 MB.kbbis never read whole.The admin console gets the new names once it moves to the 0.6.0 tgz. For the descriptions, it also has to send each file's head (or its description) with the file list. That will be a separate PR there.
Tests:
analyzer-views61 pass,studio29 pass, and both type-check.🤖 Generated with Claude Code