Skip to content

Add a Show window for Tao's show subcommands - #19

Merged
DavidSagan merged 1 commit into
mainfrom
show-window
Nov 7, 2026
Merged

DavidSagan merged 1 commit into
mainfrom
show-window

Conversation

@DavidSagan

Copy link
Copy Markdown
Member

Summary

A Show window (Tao > Show, Ctrl+9, also in the Main toolbar) for Tao's show command.

  • Subcommand list: all 49 show subcommands, from tao_show_what_names in tao_command_names_mod.f90. Double-click one to run it.
  • Arguments: a field with a history of past commands (latest first, saved). Picking an entry fills in both the subcommand and the arguments.
  • Use selected: fills in the element selected in the Lattice window or a plot. It uses the name if unique, else branch>>index, the same rule as the Change window. It is enabled only for subcommands that take an element: element, attribute, field, matrix, taylor_map, control.
  • Output: shown in the window, and the command is echoed in the console.
  • Update automatically: re-runs the last command whenever Tao's state changes (set, change, optimizer, …), keeping the scroll position. show itself doesn't mark Tao's state as changed, so this can't loop.
  • Help: runs help show <subcommand>.

This is a general window for every show subcommand. The windows that already present some of this data in their own form (Data, Variables, Lattice, Optimizer) are unchanged.

Testing

  • 55 tests pass and 1 is skipped, locally and against the conda-forge Tao used in CI. 2 are new:
    • show element qf output, the console echo, the history, show merit updating automatically after a set ele, Help, and picking from the history;
    • Use selected giving 0>>1 for the repeated QF, and being disabled for merit.
  • Offscreen screenshot checked.

🤖 Generated with Claude Code

All 49 "show" subcommands in a list; arguments with history; "Use
selected" for the element-taking ones; output kept in the window;
"Update automatically" re-runs the command after each state change;
Help runs "help show <subcommand>".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DavidSagan
DavidSagan merged commit e497c56 into main Nov 7, 2026
2 checks passed
@DavidSagan
DavidSagan deleted the show-window branch November 7, 2026 07:18
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.

1 participant