Bug 472740 - Press F10 to make a folder will make the folder in the upper level.
Summary: Press F10 to make a folder will make the folder in the upper level.
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: folders (show other bugs)
Version: 23.04.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-28 11:44 UTC by jano
Modified: 2023-10-24 06:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
picture explaining the problem (55.74 KB, image/png)
2023-07-28 11:44 UTC, jano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jano 2023-07-28 11:44:06 UTC
Created attachment 160582 [details]
picture explaining the problem

SUMMARY
In tree view, select a folder under which you want to make a new folder, press F10, name your new folder --> the folder will be created under the top level folder.



STEPS TO REPRODUCE
Explained above.

OBSERVED RESULT
folder is created in the top level

EXPECTED RESULT
folder to be created under the folder I was selecting

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.27.6
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Amol Godbole 2023-10-08 21:40:52 UTC
The keyboard shortcut F10 is supposed to create a folder under the top level folder. A new folder can be created under a sub-folder only through the Create New->Folder option in the context menu obtained by right-clicking the particular sub-folder. This behavior is consistent across all view modes of Dolphin (Icons/Compact/Details) and also across other KDE/kio components, like 'Save As' dialogs etc.
Comment 2 Bug Janitor Service 2023-10-23 03:45:20 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 jano 2023-10-23 18:07:29 UTC
(In reply to Amol Godbole from comment #1)
> The keyboard shortcut F10 is supposed to create a folder under the top level
> folder. A new folder can be created under a sub-folder only through the
> Create New->Folder option in the context menu obtained by right-clicking the
> particular sub-folder. This behavior is consistent across all view modes of
> Dolphin (Icons/Compact/Details) and also across other KDE/kio components,
> like 'Save As' dialogs etc.

I disagree, the option right click -> Create New-> Folder  has the indication of F10 next to it (I cannot make a screenshot of that), and that dialog, as you pointed before, makes a new folder under the selected folder. Then hitting F10 after selecting any folder should make a new folder under the first and not under the parent.
Also I think that is more logical (F10 folder under the folder currently selected and not under the parent), shortcuts exist to save time.
Comment 4 Amol Godbole 2023-10-23 23:15:42 UTC
(In reply to jano from comment #3)
> (In reply to Amol Godbole from comment #1)
> > The keyboard shortcut F10 is supposed to create a folder under the top level
> > folder. A new folder can be created under a sub-folder only through the
> > Create New->Folder option in the context menu obtained by right-clicking the
> > particular sub-folder. This behavior is consistent across all view modes of
> > Dolphin (Icons/Compact/Details) and also across other KDE/kio components,
> > like 'Save As' dialogs etc.
> 
> I disagree, the option right click -> Create New-> Folder  has the
> indication of F10 next to it (I cannot make a screenshot of that), and that
> dialog, as you pointed before, makes a new folder under the selected folder.
> Then hitting F10 after selecting any folder should make a new folder under
> the first and not under the parent.
> Also I think that is more logical (F10 folder under the folder currently
> selected and not under the parent), shortcuts exist to save time.

I think the keyboard shortcut F10 displayed in Dolphin's context menu for the 'Create New Folder' entry is misleading and should be removed. Other widgets like the 'Save As' dialog do not display this keyboard shortcut. IMO, this can be the bug here.

If F10 shortcut's behavior is changed to what this bug report asks, then users will have to ensure no folder has been selected when trying to create a new folder under the top-level folder. This is inconvenient and can lead to mistakes. Also, if multiple folders have been selected, under which folder should the new folder be created?

It makes sense to restrict the ability to create a new folder under the selected folder to the context menu. The keyboard shortcut, on the other hand, acts in a global sense.
Comment 5 jano 2023-10-24 06:28:51 UTC
I see your point, it may lead to other type of confusion.
But I still find practical to have a shortcut to create a folder under the selected one, it may be restricted to the moment when only one folder has been selected. It could be implemented in a dual way even, like a second option for example: 
Right click->Create New->Folder under selected (whateverkeyshorcut)
                                          ∟>Folder under parent (F10)

Selecting several folders and try to create -> no function ->RTFM
And that will be clear :)