Bug 510166 - Make "Create new Folder" via shortcut configurable with regards to selected
Summary: Make "Create new Folder" via shortcut configurable with regards to selected
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.1
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-02 12:06 UTC by hasezoey
Modified: 2025-10-02 19:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hasezoey 2025-10-02 12:06:13 UTC
SUMMARY
Recently i had upgraded to dolphin 25.08.1 and noticed weird new behavior where a newly created folder didnt show up, turns out it was created in the selected folder (which did not happen in 25.04.X).
After a bisection it came out that https://invent.kde.org/system/dolphin/-/commit/65bb95f50ed591c8e5c7b07b9ef6072dfcecf89e was the issue and had https://bugs.kde.org/show_bug.cgi?id=508196, where it turned out to be fully intentional.

As i dont like the new behavior and some others seemingly also dont like it (or at least find it confusing to be now happening), could it be made into a option?

STEPS TO REPRODUCE
1. Open dolphin
2. Create a new folder
3. Select that new folder
4. press CTRL+SHIFT+N (or whatever configured shortcut) to create a new folder
5. observe the dialog including the newly created folder in its path
6. create the folder
7. observe it actually being created in the selected folder

OBSERVED RESULT
If a folder is selected and the "create new folder" shortcut is pressed, the new folder is created *inside* the selected folder

EXPECTED RESULT
To be created in the current location (as shown in the address-bar)

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.12.48-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUS

ADDITIONAL INFORMATION
re: https://www.reddit.com/r/kde/comments/1nv7bat/dolphin_how_do_i_disable_creating_new_folder_in/
re: https://bugs.kde.org/show_bug.cgi?id=508196#add_comment

This is especially annoying as my workflow is moving around with the arrow keys and/or renaming files&folders, which keeps the selected, now requiring a extra ESC to de-select it.
Comment 1 hasezoey 2025-10-02 12:11:56 UTC
Alternatively, i would also be happy with a new shortcut that is for creating a new directory *in the current* directory, regardless if something is selected or not.
Comment 2 Brandon Beaumia 2025-10-02 19:53:33 UTC
I feel this pain as well. In my opinion, a right-click of a folder to create a new folder inside that directory does make at least some sense. At the exact moment of right-clicking, the context is "the thing I just right-clicked." But when using a keyboard shortcut, it feels like the most appropriate context is the window (and therefore the current directory you are looking at, not whatever is selected). If my knowledge includes "Ctrl+Shift+N" makes a new folder inside what is selected, what am I to assume will happen when I have multiple folders selected? It is not immediately clear.

Where I think this design could go either way, though, is in the Details view. If I'm using arrows to navigate around a couple layers deep, what should Ctrl+Shift+N do? Is the context A) the root address that is in the address bar at the top, or B) the directory where my selection resides? I would lean towards option B because it gives more functionality. But then, if the goal was consistency, that would conflict with what feels more appropriate in the first paragraph of this comment.

We can get close to consistency in all views by placing the new folder either in the current directory with no selection or in the same directory as your current selection (but not within it). In Icons view, there would be no difference between the two. In Details view, this would allow you to place new folders some levels deep, but you would not be able to create a new folder inside an empty folder because there are no selections to put you within that directory first.

The only other solution I can come up with is to expose the options after pressing the shortcut, somewhere within the New Folder popup. If a folder is selected, perhaps prefill the path with the name of that folder with only the name of the new directory highlighted, so that 1) what is going to happen is presented immediately, in case you were not aware of a selection, and 2) you can change/fix it even before creating the folder. With a Dolphin window open to the directory "Receipts" and "October" highlighted, the new folder popup would show "October/New Folder" with just New Folder being highlighted. At this point if you realize that you didn't intend to create the new directory within your selection, you can Ctrl+A to highlight all and start typing to put your folder directly in Receipts. In the Details view, this path could be qualified all the way from the Window context to the new folder. "Work/Finances/Receipts/October/New Folder"

This is all a lot more work than a checkbox though. If the preference suggested by hasezoey is created, it should act on all methods of creation, whether right-clicking or keyboard shortcuts. "Ignore highlights/selections and place new folders in current directory" would be wonderful.