Skip to content

Recent sources, and files dropped on the window - #13

Merged
icyspirit merged 1 commit into
mainfrom
feat/recent-sources-and-drops
Sep 29, 2026
Merged

icyspirit merged 1 commit into
mainfrom
feat/recent-sources-and-drops

Conversation

@icyspirit

Copy link
Copy Markdown
Owner

Summary

Recent sources

  • The sources shown are kept in the settings, newest first, ten of them, as recent files are.
    • They are kept as absolute paths, so an entry works wherever the configuration is.
    • This includes the sources of a configuration or session when it is shown.
  • The ▾ button next to the Sources field lists them, and so does ↓ in the field. Choosing one shows those sources again, as if typed and applied.
  • Long entries are shortened in the middle, with the full text as the tooltip. "Clear list" empties the list.

Files dropped on the window

  • Files and HDF5 entry directories dropped on the window are added to the sources:
    • with unique labels (e.g. a next to A, a#2);
    • not twice;
    • as a change that can be undone.
  • A configuration file (.yaml, .yml) dropped on the window is opened.
  • Panels used to take a dropped file's path for a signal path. They now leave file drops to the window, and so does the Sources field.

Code

  • apply_sources and dropped files go through the same _set_sources.
  • Recent files and recent sources share the helpers that keep lists in the settings.
  • README: the Sources bullet and the shortcut table.

Test plan

  • QT_QPA_PLATFORM=offscreen pytest: 186 passed in the dev environment, a clean PySide6 6.11 environment and a PyQt5 5.15 environment.
  • New tests:
    • recent sources: order, menu, choosing one, ↓ in the field, Clear list;
    • recent sources kept in the settings for the next window;
    • drops: a panel ignores files, the window adds a netCDF file and an HDF5 entry directory with unique labels, a second drop of the same file does nothing, undo, and a dropped configuration opens.
  • pyflakes src tests reports nothing.

🤖 Generated with Claude Code

https://claude.ai/code/session_018aVekYzCRLPE71Mm6UH8Zp


Generated by Claude Code

- The sources shown are kept in the settings, newest first (ten), as
  recent files are. The button next to the Sources field lists them, and
  so does Down in the field; choosing one shows those sources again.
- Files and HDF5 entry directories dropped on the window are added to the
  sources (with unique labels, and not twice), which can be undone. A
  configuration file (.yaml) dropped on it is opened. Panels leave dropped
  files to the window instead of taking their paths for signal paths, and
  so does the Sources field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018aVekYzCRLPE71Mm6UH8Zp
@icyspirit
icyspirit merged commit 59b0834 into main Sep 29, 2026
2 checks passed
@icyspirit
icyspirit deleted the feat/recent-sources-and-drops branch September 29, 2026 13:57
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