When the user presses F7, the window is filled with the current item's name
diff --git a/krusader/Panel/panelfunc.cpp b/krusader/Panel/panelfunc.cpp index ba1b069..62ee3ab 100644 --- a/krusader/Panel/panelfunc.cpp +++ b/krusader/Panel/panelfunc.cpp @@ -712,7 +712,7 @@ void ListPanelFunc::rename(const QString &oldname, const QString &newname) void ListPanelFunc::mkdir() { // ask the new dir name.. - QString dirName = QInputDialog::getText(krMainWindow, i18n("New directory"), i18n("Directory's name:")); + QString dirName = QInputDialog::getText(krMainWindow, i18n("New directory"), i18n("Directory's name:"), QLineEdit::Normal, panel->getCurrentName()); // if the user canceled - quit if (dirName.isEmpty())
the text is already selected, so if the user doesn't want this hint, he can just start typing. The patch just uses panel->getCurrentName() but we could remove the extension for files (like in TC) - QFileInfo(panel->getCurrentName()).completeBaseName() - or totally disable it for directories.