Version: (using KDE Devel)
Installed from: Compiled sources
Especially when saving it would be convenient if only the base name of the file would be selected in the location edit.
When overwriting by inserting this way one does not need to retype the extension. (some motivation: GNOME has it, at least for nautilus ;)
possible starting point for a solution:
In function "setLocationText(...)" in "kfiledialog.cpp" add code to reduce
the selection to the base name.
Needs a new function "baseNameEnd(const QString &)"
void KFileDialog::setLocationText( const QString& text )
// not multiselection?
if( !(ops->mode() & KFile::Files) )
locationEdit->lineEdit()->setSelection( 0, baseNameEnd(text) );
I think I saw a binner commit last week that did this but I haven't compiled KDE for months now...
Moving from "kio/kfile" component to "kfile" product, helps sorting out duplicates.
Friedrich: Not sure I understood your request correctly, but this might have been fixed a long time ago. Testing "Save As" in Kate and Okular, for me the extension is not selected. Could you check if this is good enough for you?
Yes, seems KFileWidgetPrivate::setNonExtSelection() does now what I asked for at that time, and also is used e.g. for dialogs in save mode via Plasma QPA's KDEPlatformFileDialog.
So can confirm things behave as desired, time to move this one to the attic.