Skip to content

Save picker: selecting an existing file should put its name into the Filename field #337

Closed

Description

@vitonique

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.

Activity

  1. thisisgm commented on Nov 3, 2026

    @thisisgm
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions