Repository navigation
Fixed .md context menu losing all standard items after plugin install - #113
Merged
oleg68 merged 1 commit intoMay 12, 2026
Merged
Conversation
The PreviewMarkdownAction was registered at Loaders/text/x-markdown-nb/Actions (position 300). NetBeans' MarkdownDataObject looks for actions at Loaders/text/text/x-markdown-nb/Actions — the NB markdown module registers all standard file actions (Open, Cut, Copy, Delete, etc.) there. By creating the sibling Loaders/text/x-markdown-nb/Actions folder with only our one action, the plugin was inadvertently replacing the entire standard context menu. Fix: change the @ActionReference path to Loaders/text/text/x-markdown-nb/Actions at position 150 (between NB's OpenAction at 100 and its separator at 200), so Preview Markdown is added alongside the standard actions instead of replacing them. Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
PreviewMarkdownActionwas registered atLoaders/text/x-markdown-nb/Actions— NetBeans'MarkdownDataObjectactually usesLoaders/text/text/x-markdown-nb/Actionsfor the context menu, where the NB markdown module registers all standard file actions (Open, Cut, Copy, Delete, etc.)Loaders/text/x-markdown-nb/Actionsfolder with only "Preview Markdown", the plugin was replacing the entire standard context menu@ActionReferencepath toLoaders/text/text/x-markdown-nb/Actionsat position 150 (between Open and its separator), so "Preview Markdown" appears alongside the standard actionsTest plan
.mdfile in the Files panel🤖 Generated with Claude Code