openwebwork/webwork2 — pull request #496 by Alex-Jordan (2014-10-06 06:19:30+00:00)
Title: swapped how Rename File and Copy File auto suggest new names

It has always irritated me how Rename and Copy in the File Manager make their auto-suggestions for new names, so I decided to do something about it with a super small pull request.

Currently, if I click to rename `foo.bar`, the auto-suggestion is for `foo.bar_1`. Usually, what I would want to do is rename it to something like `foo.lst`, and the `_1` is just extra stuff to backspace.

Meanwhile if I click to copy `foo.bar`, the auto-suggestion is for `foo.bar`. But that's never going to be OK since I need a new name for the new copy.

Swapping these make way more sense to me. I might even actually be happy with `foo.bar_1` as the name of the copy of `foo.bar`.