Skip to content

Code editor: Ctrl+click token navigation and hover value preview - #297

Open
enriquevelmai wants to merge 1 commit into
nxt-dev:devfrom
enriquevelmai:feature/code-editor-token-nav
Open

enriquevelmai wants to merge 1 commit into
nxt-dev:devfrom
enriquevelmai:feature/code-editor-token-nav

Conversation

@enriquevelmai

Copy link
Copy Markdown

Two small navigation helpers in NxtCodeEditor:

  • Ctrl+click on a ${...} token that references another node (${/path/to/node.attr}, ${../sibling.attr}, ${node}) selects and frames that node via stage_model.select_and_frame. The cursor turns into a pointing hand while Ctrl is held over a token. Local attribute tokens and file:: / path:: / contents:: tokens are left alone.
  • Hover a token to get its resolved value as a tooltip (stage_model.resolve on the current node).

Only the existing stage model API is used; nothing changes for read-only vs editing modes.

In the code editor, Ctrl+click on a token that references another node
selects and frames that node in the graph. Hovering a token shows the
resolved value as a tooltip. Bare local attribute tokens and file::,
path:: and contents:: tokens are not navigation targets.
@wyoder

wyoder commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

@enriquevelmai thanks again for the PR. We will check it out asap and get back to you soon. Apologies for the wait time on this.

@wyoder
wyoder self-requested a review September 24, 2026 14:57

This branch has not been deployed

No deployments
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.

2 participants