Limiting it to a dash is just because that’s all Kicad generates. The user could indeed use anything.
So should we rename any file that starts with the old project name? I did have a version that did that, but it seemed too aggressive to me. > On 11 Nov 2019, at 20:56, Eeli Kaikkonen <eeli.kaikko...@gmail.com> wrote: > > > > ma 11. marrask. 2019 klo 22.41 Jeff Young (j...@rokeby.ie > <mailto:j...@rokeby.ie>) kirjoitti: > Yes, the current algorithm renames files that either match the project name > (with any extension), or start with the project name followed by a dash. > > Limiting the following character to dash seems arbitrary. Underscore is used > often, and why it should be limited at all? > > Here's one more possible solution. The current file dialog is kept, but if > any generated or unknown files which begin with the project name are found, a > new dialog asks if the user wants to rename and copy them or not to copy them > at all, or maybe copy them as is. > > On the other hand, what to do with other files which don't begin with the > project name? Should they be confirmed and copied (as is), too? > > What about the backup files? > > I can see two use cases: rename the project (replace the old one); and copy > the project to be a base for a new one. In the former case renaming and > keeping about everything could be desired. In the latter case all but the > basic project files would probably be ditched. > > In the case of renaming I'm also interested in knowing how it affects version > control, for example git, if the project is a repository. That must be > tested, I think. > > Eeli Kaikkonen > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp