Bug 410817 - Accept files as well as folders in KFileDialog's URL Navigator
Summary: Accept files as well as folders in KFileDialog's URL Navigator
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2019-08-11 15:39 UTC by Raphaël Jakse
Modified: 2021-04-26 21:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Jakse 2019-08-11 15:39:17 UTC
Hello,

I find myself often trying to start typing a file name in the address bar of the open / save dialog.

When doing this, nothing happens, and if the file name is completely typed and then the enter key is pressed, the dialog tries to open the file as a folder, and this obviously fails.

Conversely, typing an address / a folder name in the "Name" field of the dialog works (which, by the way, has by far the best behavior I could notice across the different file dialogs I was (un)lucky to come across).

I think the current behavior of trying to open a file entered in the address bar as a folder and fail is not intuitive.

I have two (contradictory) suggestions:

1) Either make the address bar act like the name field, with the optional difference that folders should be selected / suggested before files.
2) Or keep the current behavior of suggesting folders as they are typed, and then files. When enter is pressed:
    2.1) Either open the selected file
    2.2) Or show a dialog telling the user that this is a file (and not a folder). "Would you like to open this file (or) replace the existing file?".

In both cases, if (the prefix of) a file is entered / selected in the address bar, the file's icon should be shown instead of the folder icon in the address bar.
Comment 1 Nate Graham 2019-08-13 19:58:26 UTC
I have had the same experience myself. Putting two text fields that can accept paths in the same dialog is the source of this confusion.

I wonder if we could make the top text field accept files as well as folders as input when in "Open" mode, and when in "Save" mode, use the bottom text field just a filename field where you can type in the name. So in this case, that field wouldn't even be visible in the open dialog.
Comment 2 Ilya Bizyaev 2021-04-26 21:30:00 UTC
I regularly find myself pasting a complete file path into the URL navigator of a file open dialog, and it gets rejected as "Not a directory". I agree that this is not intuitive.