Repository navigation
fix(chooser): select filename stem on initial save presentation - #1898
Merged
Merged
Conversation
Select only the filename stem up to the last dot when presenting a SaveFile chooser with a suggested name, allowing users to immediately replace the name while preserving the extension. Use grab_focus_without_selecting and preserve the stem selection during post-presentation idle focus restoration so that GTK's entry focus handler does not select all text.
Contributor
Review and cleanupMerged Review against the description and #1897
Tests
Comment audit: the PR adds no comments. Validation
Non-blocking notes
CI: all checks green (QA scenarios skipped by workflow) as of 2026-10-26. |
wmfeht
added a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Oct 28, 2026
Sync lgse/strata#1898–#1908: Save stem selection, multi-word global search, preview fixes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Select only the file stem (up to the last dot) when presenting a SaveFile chooser with a suggested filename, allowing users to immediately replace the filename while preserving the extension.
Use
grab_focus_without_selectingand preserve the stem selection during post-presentation idle focus restoration so that GTK'sGtkEntryfocus handler does not reset the selection to all text.Visual evidence
How to test
current_nameset toreport.draft.pdf(e.g. saving/downloading a file).Expected result:
The name field has keyboard focus and only
report.draftis selected, leaving.pdfunselected.Related issue
Closes #1897