96
submitted 5 days ago* (last edited 5 days ago) by trulyrandomguy@lemmy.world to c/linux@lemmy.ml

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
[-] MentalEdge@sopuli.xyz 36 points 5 days ago* (last edited 5 days ago)

To add more file creation options, you use a Templates folder.

Just create a folder named "Templates" in your home directory. Then use rnote to save an empty rnote file in that directory.

Your right click menu to create new files should now get an option to "create" rnote files (which are really just copies of the file in the Templates folder).

You can add whatever types of files you want in Templates, and they don't have to be empty.

[-] trulyrandomguy@lemmy.world 8 points 5 days ago
[-] MentalEdge@sopuli.xyz 27 points 5 days ago* (last edited 5 days ago)

If you'd like to hide the Templates folder, you can create a file called ".hidden" in your home directory.

In it, simply write "Templates".

This way the folder becomes hidden, without changing its name to add a period.

You can add additional lines with more file and foldernames, so you can keep your home directory tidy for normal use, even if stuff relies on a file or folder there not having a period in the name.

[-] anytimesoon@piefed.social 3 points 4 days ago

I had no idea you could do that! Excellent tip, thank you

[-] arschflugkoerper@feddit.org 5 points 4 days ago

this is great, thanks for that hint

load more comments (7 replies)
this post was submitted on 02 Nov 2025
96 points (100.0% liked)

Linux

59418 readers
334 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS