Skip to content

fix: open anchor picker popups with a blank text field - #65

Merged
charlesangus merged 1 commit into
mainfrom
fix/anchor-popup-blank-field
Jun 15, 2026
Merged

charlesangus merged 1 commit into
mainfrom
fix/anchor-popup-blank-field

Conversation

@charlesangus

Copy link
Copy Markdown
Owner

Summary

The A and Alt-A anchor popups now always open with a blank text field instead of pre-filling the previously created/searched text.

Both shortcuts share the forked TabTabTabWidget in tabtabtab_anchors.py. Its create() method stamps the last-created node's name into the input field, and show() previously called self.input.selectAll() to preserve that text (so you could type over it or Tab-Tab to recreate it). show() now calls self.input.clear() so the picker and navigate popups always present an empty field.

Scope

tabtabtab_anchors.py is a dedicated fork used only by the anchor pickers in anchor.py, so this affects exactly the A (anchor_shortcut) and Alt-A (select_anchor_and_navigate) popups — Nuke's own Tab menu is untouched.

Trade-off

This retires the old "reopen and press Tab/Enter on the still-present previous text to recreate it" behaviour, since the field no longer carries text forward. Weight-based ranking (most-used item pre-selected) still works.

Testing

  • Full suite: 486 passed.

The A and Alt-A popups share the forked TabTabTabWidget, whose create()
stamps the last-created node's name into the input. show() previously
called selectAll() to preserve that text. Clear the input on every show()
instead so the anchor picker and navigate popups always present an empty
field rather than the previous text.
Copilot AI review requested due to automatic review settings June 15, 2026 22:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the anchor picker/navigate popup UI so that the text input is always blank when the popup opens, avoiding pre-filling with the last created/searched text.

Changes:

  • Update TabTabTabWidget.show() to clear the input field on every open (replacing selectAll()).
  • Update the show() docstring to reflect the new “always blank on open” behavior and rationale.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@charlesangus
charlesangus merged commit 1ac8046 into main Jun 15, 2026
1 check passed
@charlesangus
charlesangus deleted the fix/anchor-popup-blank-field branch June 15, 2026 22:09
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