Add "Show Help at Cursor" to the editor context menu#14860
Merged
Conversation
|
E2E Tests 🚀 Why these tags?
More on automatic tags from changed files. |
austin3dickey
approved these changes
Jul 15, 2026
austin3dickey
left a comment
Contributor
There was a problem hiding this comment.
Works well for me, thanks!
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #14570
This PR adds "Show Help at Cursor" to the editor right-click context menu. The command already existed with keybindings (F1, Cmd+K Cmd+H) and a command palette entry; this PR just surfaces it in the context menu where users might look for it, as requested in the issue.
This is purely declarative metadata. A
menuentry added to the existingShowHelpAtCursoraction registration. There is no new runtime logic, and the action'srun()method is unchanged.The
whenclause reuses thePOSITRON_RUNTIME_LANGUAGE_IDScontext key I added in #13098 (for "View Data Frame at Cursor"), so the item shows on editors whose language has a registered Positron runtime, plus.qmdexplicitly (the embedded language is resolved at the cursor). The entry is ordered to sit just below "Go to References" and just above "View Data Frame at Cursor" in the navigation group:Release Notes
New Features
Bug Fixes
QA Notes
@:help @:editor @:quarto
There are no automated tests here because the change is declarative menu registration with no new logic to exercise. We can verify manually during review:
library). Confirm "Show Help at Cursor" appears in the context menu, directly below "Go to References" and above "View Data Frame at Cursor". Choosing it opens the help topic.print)..qmdfile with an R chunk or a Python chunk, place the cursor inside each chunk on a symbol and confirm the item appears and opens help for the correct language (this exercises the embedded-language path).