Version: 1.2.1 (using 4.2.2 (KDE 4.2.2), Kubuntu packages) Compiler: cc OS: Linux (x86_64) release 2.6.28-11-generic I wanted to modify Create New... There's no documentation for this (I filed bug 191630). If the thread http://forum.kde.org/customizing-create-new-menu-t-36907.html is right, you have to create a file in an XDG template directory and create a complicated .desktop file for it. There should be a friendlier front-end to this. In Kubuntu 9.04 I have an empty ~/Templates directory. Maybe Dolphin could automatically append files in this to Create New... The Folder View plasmoid also has a Create New... menu, I'm not sure if this uses the same code as Dolphin.
*** Bug 257062 has been marked as a duplicate of this bug. ***
Resetting assignee to default as per bug #305719
*** Bug 351896 has been marked as a duplicate of this bug. ***
Git commit de5ab5e74b4c5a6ce482af8ded7b7b60966d20bb by Elvis Angelaccio, on behalf of Marijo Mustac. Committed on 21/06/2018 at 20:53. Pushed by elvisangelaccio into branch 'master'. [KIO] Add support for XDG_TEMPLATES_DIR in KNewFileMenu Summary: This patch adds the support for templates in the XDG_TEMPLATES_DIR location which points in default to: [en] /home/user/templates [de] /home/user/Vorlagen As is all templates have to be a .desktop file maybe a second patch will follow changing this but it seems to be tricky without breaking something. Test Plan: Add new valid .desktop file to your template folder -> shows up in the menu Reviewers: #frameworks, dfaure Reviewed By: dfaure Subscribers: kde-frameworks-devel, broulik, ngraham Tags: #frameworks Differential Revision: https://phabricator.kde.org/D10363 M +33 -4 src/filewidgets/knewfilemenu.cpp https://commits.kde.org/kio/de5ab5e74b4c5a6ce482af8ded7b7b60966d20bb
Anything left to do for this ticket?
Yeah, you should be able to add templates by just adding files themselves into XDG_TEMPLATES_DIR without the need to manually create a .desktop file for them.
Creating templates by simply adding files to $HOME/templates without creating .desktop files would be a great addition. Tell me if I can help in implementing it
This would be really useful (along with KDE already shows on the "Create New" menu). The default file managers of most Linux desktop environments do this, except for KDE.
The comments on phabricator linked above seem to indicate this was mostly complete, could someone possibly review please, or is there a reason it's not been merged and closed thus far? Thanks!
*** Bug 400263 has been marked as a duplicate of this bug. ***
*** Bug 412657 has been marked as a duplicate of this bug. ***
I too would like to express my desire to have easy to create templates in the ~/Templates folder. Keep ~/.local/share/templates and /usr/share/templates as they are (as in they require a .desktop file) if changing that would break things and make the ~/Templates folder be as easy as it is on XFCE. Similar to this video: https://www.youtube.com/watch?v=967yhGf1JbQ
I came here after much research. I would also like to see that implemented. I don't know how difficult it is, since I am not a coder. Judging by the ages that have passed without a solution, it has to be very difficult
Further comment on the usability of the templates folder. It probably should allow for creating template folders as well. As in the function that searches the ~/Templates folder for menu entries shouldn't do it recursively. Instead it lists each top level folder as a folder structure template that you can deploy anywhere. This could be useful for initializing custom project folder structures.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1688
Git commit a72c50527f6d38d49050b97e026e4c44bb550c9e by Méven Car, on behalf of Antti Savolainen. Committed on 07/09/2024 at 10:52. Pushed by meven into branch 'master'. knewfilemenu: Make ~/Templates work by simply placing files and folders there Adds functionality so that placing any file in `~/Templates` creates the same file in the context menu as a template. This also works for directories so you are able to create project skeletons. I think I accidentally made it so that if you already have a `.desktop` file in `~/.local/share/templates` that points to `~/Templates`, the `.desktop` file will take priority and there is no duplication. M +12 -5 autotests/knewfilemenutest.cpp M +39 -32 src/filewidgets/knewfilemenu.cpp https://invent.kde.org/frameworks/kio/-/commit/a72c50527f6d38d49050b97e026e4c44bb550c9e