Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customising license inside application #9

Open
erazemk opened this issue Mar 19, 2020 · 1 comment
Open

Allow customising license inside application #9

erazemk opened this issue Mar 19, 2020 · 1 comment
Labels
enhancement New feature or request Todo

Comments

@erazemk
Copy link

erazemk commented Mar 19, 2020

While this application helpfully allows copying of licenses, it would be useful to allow the user to input their name and/or their project's name into the license which could then be copied wherever.

It would also be fairly trivial to automatically fill in the year or add a field for modifying the year in some licenses.

Both of these features could be added by using a bit of regex to replace <year> and <name of author> inside licenses that have those fields (GNU AGPLv3 and GNU GPLv3).

The Apache 2.0 license has similar fields ([yyyy] and [name of copyright owner]).

The MIT license uses <year> and <copyright holders>.

The year could either be automatically filled in with the current year or the user could input a year or range (e.g. 2015-2020), which could be inserted into the license.

Both the name and year should not be saved across exits to prevent wrong licence texts from being copied and implementing this is fairly easy since no change will be necessary since the license templates are retrieved on every opening already.

@mirkobrombin
Copy link
Member

Is an excellent idea. At the moment I am busy with the development of another project but you are free to send pull requests

@mirkobrombin mirkobrombin added enhancement New feature or request Todo labels Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Todo
Projects
None yet
Development

No branches or pull requests

2 participants