We can use F10 shortcut to create a folder with Dolphin, but this shortcut
can not be used to create a folder on desktop.
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
I am developing it but i need a help.
At the moment i can see in systemsettings -> standard shortcut > Create Folder F10.
Now i should change the icon, translate the message (Create Folder) and i suppose associate a linux command ( mkdir ...)
Who can help me?
You don't want to be invoking linux commands...
Read the existing code for how the context menus work.
Both the context menus and shortcuts are both managed by "actions".
Read through how refresh works (which has a shortcut) and how other file actions are made, for example deleting a dir.
I have modified the following files:
I followed "deletefile" as example.
I runned ~/kde/build/plasma-workspace/login-sessions/install-sessions.sh
I Log in plasma-development.
I see a standard shortcut (Create Folder F10) in systemsettings but it isn't translated.
I go in desktop screen and if i press F10 it does nothing.
Obviously, missing some steps.
This is the second time that i try to resolve bug. Be patient please! ;)
There's no way of knowing without seeing your code. You could post it as a WIP patch on https://invent.kde.org, or ask for help in the kde-devel channel. See https://community.kde.org/Get_Involved/development#Communicate_with_the_team
Possible solution is gettable from these three merge request
Can I mark as solved this bug?
No because it's not solved yet. :) https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/136 hasn't been merged.
If this is merged, should I do it or do you?
It happens automatically as long as the final commit message has `BUG: 425191` in it somewhere. :)
Git commit 59dfa775049fd76c4f438df3b22e9d9bbd83d436 by David Edmundson, on behalf of Domenico Panella.
Committed on 09/09/2020 at 14:51.
Pushed by davidedmundson into branch 'master'.
[folderview] Allow folder creation on desktop via F10 shortcut
M +1 -1 containments/desktop/package/contents/ui/FolderViewLayer.qml
M +13 -2 containments/desktop/plugins/folder/foldermodel.cpp
M +1 -0 containments/desktop/plugins/folder/foldermodel.h