Skip to content

Show window: plain switch labels, hide irrelevant controls, output to a new window - #27

Open
DavidSagan wants to merge 4 commits into
mainfrom
show-labels
Open

DavidSagan wants to merge 4 commits into
mainfrom
show-labels

Conversation

@DavidSagan

@DavidSagan DavidSagan commented Nov 8, 2026 •

Copy link
Copy Markdown
Member
  • Check boxes and radio buttons in the Show window no longer print Tao's leading -: -orbit is shown as orbit, and -orbit -floor_coords as orbit + floor_coords. Plain labels such as "element end" are unchanged. The "Fill in: …" message uses the same names.
  • The "More arguments" box is removed: every argument of every subcommand is already in its form (e.g. show beam has none).
  • Controls that don't apply are hidden: "Use selected" for subcommands without an element, Recent until there is history, and "Save results" until there is output.
  • The live "Tao> show …" line under the buttons is removed; the command that ran is still shown above the output.
  • The form pane is sized to each subcommand's options, so no blank space is left above the buttons; a long form (show lattice) is capped at 2/3 of the height and scrolls.
  • Use selected is a toggle: click it again to take the element out (and untick the switch it ticked). Pickers have a clear button, and clearing a value no longer re-ticks its switch.
  • show lattice: -0undef and -undef0 are one Print 0 check box (uses -0undef, whose right-justified 0 can be told from a true zero).
  • Save results copies the current output into a window of its own (titled Tao: show …) with Save As… to write it to a text file. Each copy keeps its text when the Show window runs something else.
  • Tests: test_show_labels_have_no_dashes, test_show_result_window, test_show_form_leaves_no_blank_space. 69 passed, 1 skipped (local and conda).

🤖 Generated with Claude Code

DavidSagan and others added 2 commits November 8, 2026 00:49
…guments"

The dash only marks a switch on Tao's command line, so check boxes and radio
buttons now read "orbit", "floor_coords", "orbit + floor_coords", etc. The
command line shown above the output still has the dashes.

Every argument of every show subcommand is in its form, so the free-form
"More arguments" box is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "Use selected" is hidden (not just disabled) for subcommands without an
  element; Recent is hidden until there is history; "New window" appears
  once there is output.
- The "Tao> show ..." line under the buttons is removed (the command that ran
  is still shown above the output).
- "New window" copies the output into a window of its own, titled with the
  command, with Save As... to write it to a text file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DavidSagan DavidSagan changed the title Show window: no leading "-" on switch labels; remove "More arguments" Show window: plain switch labels, hide irrelevant controls, output to a new window Nov 8, 2026
DavidSagan and others added 2 commits November 8, 2026 01:56
…uttons)

Each subcommand's form pane is sized to its contents, so the buttons sit right
under the options and the output gets the rest. A long form (show lattice) is
capped at 2/3 of the height and scrolls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "New window" is renamed "Save results".
- "Use selected" is a toggle: clicking it again takes the element out (and
  unticks the switch it ticked). Pickers also get a clear button, and clearing
  a value no longer re-ticks its switch.
- show lattice: -0undef and -undef0 (both print 0 for undefined values) are one
  "Print 0" check box, using -0undef (right-justified 0, told apart from a
  true zero).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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