Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I save a duplicate file in chromium, the name gets set to "<filename> (<num>)". Is it possible to change this to "<filename>_<num>" somehow?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

From the Chromium source code, looks like the bit that puts parenthesis around the dup number is at line 516, of chromium/src/chrome/browser/resources/file_manager/js/util.js:

    trialPath = prefix + ' (' + copyNumber + ')' + ext;

Soooo, unless you wish to recompile your browser, I'd say no.

BUT, if you were handy with a hex-editor (remember those?), you could change the strings ' (' and ')' to the appropriate values to create your _ filename.

I looked, there's many (many!) instances of ' (', ')' groups in the 94 meg chrome app on my linux box. I won't be teasing you with a list of offsets. Apologies.

Y'know, there might be an extension or app that could do that though, like a post-download filename fixer or something. Or you could write one.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.