Really weird question about text files.

How do I create new .txt files with a right click in Bazzite? I'm strange in that I tend to write a lot, and traditionally my preferred program to write in was notepad. Not plus, not a .doc, not an .rtf, the original .txt notepad. Old-old school. Bazzite seems fine opening the files I already have, but I don't know how to make new ones.
Solution:
don't need the \ s if you use 's or "s (touch ~/Templates/'Empty text file.txt')
Jump to solution
26 Replies
Linus Xu
Linus Xu3w ago
Extensions aren’t real Just create any file and change the extension
AgentElrond
AgentElrond3w ago
If you're in the file manager, you can right click -> create new, text file And if you don't like kate then kwrite is even simpler (both are editors)
amel
amel3w ago
If you're on gnome, you have to create a template first in ~/Templates FYI. Just an empty file called "Empty.txt" is enough. After that you can create new Empty.txt files anywhere
AgentElrond
AgentElrond3w ago
ah sorry, I was talking about KDE with the Dolphin file manager
Michael_P_Giffin
Michael_P_GiffinOP3w ago
I'm in the gnome variant, yeah. When I right click on the desktop, and select 'new document' I get pic related. Would creating a new 'empty.txt' template work for creating a new empty text file?
No description
AgentElrond
AgentElrond3w ago
I think that's what amel is saying I am guessing in the terminal, you could run a command like touch ~/Templates/Empty.txt
amel
amel3w ago
Yep exactly
Michael_P_Giffin
Michael_P_GiffinOP3w ago
I will attempt to do so now. I'm a neophyte at linux, so if I don't say anything for ten minutes, I set my rig on fire.
amel
amel3w ago
Lol you can just open text editor And immediately save an empty file to the Templates folder; and then it will work :upswagold:
Michael_P_Giffin
Michael_P_GiffinOP3w ago
I don't know how to do that.
amel
amel3w ago
Example
No description
amel
amel3w ago
No description
No description
No description
No description
No description
Linus Xu
Linus Xu3w ago
Just touch ~/Templates/Empty\ Text\ File.txt in terminal
Solution
amel
amel3w ago
don't need the \ s if you use 's or "s (touch ~/Templates/'Empty text file.txt')
Michael_P_Giffin
Michael_P_GiffinOP3w ago
Que?
No description
amel
amel3w ago
need capital T for Templates
AgentElrond
AgentElrond3w ago
Capital letters matter on Linux, that's one difference compared to Windows
amel
amel3w ago
No description
Michael_P_Giffin
Michael_P_GiffinOP3w ago
It worked! Thank you!
AgentElrond
AgentElrond3w ago
@Michael_P_Giffin and if you're curious about learning Linux details a little more, you might think "what does the touch command do?" To find out, in a terminal you can run man touch. This means "show me the manual for the 'touch' command." When you are finished reading the manual, you can quit by pressing 'q' Long story short: The touch command can be used to create an empty file. It is useful in this case because you wanted to make a placeholder file in Templates.
Michael_P_Giffin
Michael_P_GiffinOP3w ago
Thank you, very much,.
AgentElrond
AgentElrond3w ago
From now on, you can right click and use the menu, no terminal magic required. 🙂
amel
amel3w ago
no prob :upswagold: you can create any template that way, it's very nifty
Linus Xu
Linus Xu3w ago
It’s a til moment for me as well
Michael_P_Giffin
Michael_P_GiffinOP3w ago
I believe it was Confucius who said 'a wise teacher learns as much from teaching as their students do'.
Linus Xu
Linus Xu3w ago
Indeed

Did you find this page helpful?