On 6/26/23 21:37, King Beowulf wrote:
On 6/26/23 16:13, Dick Steffens wrote:
Here's another one that I don't know what to call it. In Xubuntu 20.04,
when I create a file with Right-click - file type, I would get a text
box where, for example, a new text file would show up with something
like "Plain Text" highlighted and .txt not highlighted. I could then
just type the name I want the file to have without having to type .txt.
That is not what I'm getting with Xubuntu 22.04. The text box has
everything highlighted, so I have to remember to add the .txt.

Is this a feature, or the loss of a feature? And if it's a feature, how
to I set it to act like it did in 20.04?

Dick,

Linux does not rely or use extensions as heavily as Windows - a legacy
of various DOS, whether IBM, MS, CP/M etc.  They are not necessary and
usage will vary between DEs and DE versios (KDE, Xfce, etc), what
program or file manager generates the file, and not the particular Linux
distro installed. Syslogs for example historically end in .log for
convenience instead of .txt or nothing.

Interesting article to learn about Linux file types:

https://www.baeldung.com/linux/file-extensions-meaning

Yes. Confirms stuff I've known for some years.

Being an old fossil myself from the CP/M and [MS,IBM]DOS days, I tend to
explicitly give my files the old timey extensions, disregarding whatever
the default (unless mandated by the program), so I can easily tell who
is what in a file listing.

Me, too.

In my distro, I've used Xfce for many an age, and it is the unmodified
upstream source.  Right-click on desktop or in Thunar just presents
Create Document -> Empty File -> file name dialog.  The created file is
always text regardless of extension provided.
I'm using Xfce, too, and yes, it does that.

TL;DR:

Xubuntu may have added or modified the right-click with Thunar custom
actions and/or file templates.  Look for a $HOME/Templates or
/etc/Templates, for example. If you create an empty "new file.txt" in
$HOME/Templates, it will show up as a choice in Thunar and Xfce desktop
right-click->create document.

$HOME/Templates has seven template files in it:
OpenDocumentSpreadsheet.ods
OpenDocumentText.odt
Plain Text.txt
Word.doc
Word-x.docx
xls spreadsheet.xls
slx-x spareadsheet.xlsx

Right clicking on the desktop gives me the option to create any of those files.

What's different is that in 20.04 the extension is not highlighted when I create a new document, but in 22.04 it is. What I want to learn how to do is make 22.04 act the same way as 20.04. Is there an option somewhere to set that feature?

Thanks for all your responses.

--
Regards,

Dick Steffens

Reply via email to