Score:0

auto-rename format

cn flag

I'm wondering if the was a way to change the format used for auto-renaming files in case the file name exists already.

The current format is:

file.txt
file (1).txt
file (2).txt
...
file (999).txt

I find this very ugly, the brackets make regex uglier, and the added whitespace breaks my file naming style.

I would like to change this to a much handier (for me) format something like:

file.txt
file_1.txt
file_2.txt
...
file_999.txt

Where the separator is configurable/arbitrary e.g. _, __, ., etc.

NOTE: I know I can run a script to rename them, but I'm hoping for a solution to change this behavior rather than a post-fix.

Thanks!

pLumo avatar
in flag
The behavior depends on the program that creates these files.
Gergely M avatar
cn flag
Thanks, I thought so. I assume the downloaded files are handled by Nautilus? Not sure. I need to dig in deeper I assume. (Ubuntu 22.04 + Gnome 42.5)
pLumo avatar
in flag
Which downloaded files? firefox, [see also](https://askubuntu.com/questions/1419439/how-change-duplicate-file-name-pattern-in-firefox)?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.