You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Save picker: selecting an existing file should put its name into the Filename field #337
Version: flea 0.3.12 (Arch package), used as the xdg-desktop-portal FileChooser backend
What happens
In a Save dialog, clicking (or moving the cursor onto) an existing file in the listing does not change the Filename field. To save under that name — or a variant of it — the name has to be typed by hand.
What I expected
The behaviour of the Windows save dialog, the GTK file chooser and KDE's dialog: selecting a regular file in save mode copies its name into the Filename field, with the stem selected, so that I can either accept it (overwrite, through the existing collision review) or edit it (e.g. report-v2.docx → report-v3.docx). Selecting a folder leaves the field as it is.
Why it matters
Saving a new version next to an existing file, or replacing a file, is a very common save-dialog task; with a long or complex filename, retyping it is slow and error-prone.
Where it seems to be missing
In ui/PickerWindow.qml, saveName is only set from the request (win.saveName = Picker.validName(win.req.name) ? win.req.name : "") and from typing (onNameEdited). Nothing sets it from the listing's current item in save mode. PickerSave.selectStem() already exists and could be reused after the name is filled in.
A possible shape: when win.saving and the current item changes to a regular file (by click or keyboard), set win.saveName to its name and call save.selectStem() — perhaps only for an explicit selection (click / Space) if moving the cursor with the arrow keys should not overwrite a name the user has typed.
Thanks for Flea — the picker is otherwise a joy to use.
Clicking an existing file in Save left Filename unchanged. Clicking an existing file in a Save dialog fills Filename and selects its stem (ff808d99e5, v0.4.0). Thanks @vitonique! Release.
Activity
thisisgm commentedon Nov 3, 2026
Clicking an existing file in Save left Filename unchanged. Clicking an existing file in a Save dialog fills Filename and selects its stem (ff808d99e5, v0.4.0). Thanks @vitonique! Release.