I want to add an option under Create New to create a file of particular type. For example I use Rnote to create notes,. They have .rnote extension.

Now I create a empty file (image, 3rd option from above) with extension as .rnote , but that file when opened in the application can't be written to, because it is not a proper .rnote file, it is empty file with that extension.

How do I quickly create a proper file for rnote or any application for example libreoffice?

I am on fedora 43, kde plasma.

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago* (last edited 1 year ago) (4 children)

Creating a .prototype file in ~/Templates didn't work for me on KDE Plasma version 5.27.5.

Because it's my own filetype I added it in "File Associations" known types in text category, to open with Kate, Gvim, etc, just in case, but didn't help.

Is something else required?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 year ago* (last edited 1 year ago) (3 children)

    It's not a dotfolder. It has to be "Templates" not ".Templates".

    Hence my follow-up on how to hide it.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago* (2 children)

    Sorry typo, it's indeed ~/Templates (even verified to be sure but even has a specific icon), was already there, I didn't create it. So unfortunately still does not work.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago* (last edited 1 year ago) (1 child)

    Looks like in plasma 5 you need to mess with .desktop files placed in ~/.local/share/templates/

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago* (last edited 1 year ago)

    Neat! Thanks I

    • created ~/.local/share/templates/
    • relied on examples from /usr/share/templates for .desktop files
    • linked back to the actual template file in ~/Templates and finally now getting :

    fixed icon

  • source
  • parent