Open Mnaukal opened 4 months ago
Good idea, unfortunately, it will require quite a lot of rework on the service to be able to allow this. I am not sure when I will be able to implement this. If you have time to implement it please do a PR.
I just had the issue that the hyphen in the anonymization output breaks my source code. So for me, it would already be helpful to specify the string before [Line Number]. Maybe this is simpler to implement and it would already help in some instances.
It would be useful to be able to customize the anonymization output (
XXXX-[Line Number]
) per search term. The desired output should be set from the user interface when anonymizing a repo.For example, if I want to replace two terms:
Anonymous
andGitHub
, they currently get replaced withXXXX-1
andXXXX-2
, respectively. I would like to be able to set thatAnonymous
should be replaced withXXX
, andGitHub
should be replaced withABC
.This would be useful because it would make the alignment of the repo and the paper easier. If I want to use the same anonymized terms in the repo and the paper, I currently need to use
XXXX-[Line Number]
in both, which can be confusing and hard to read in the text of the paper. I would prefer something simpler, likeABC
andXYZ
in the text of the paper. Another disadvantage of the currentXXXX-[Line Number]
replacement output is that it contains a hyphen, which can break source code as the hyphen is usually not a valid character in a variable name.Thank you very much for considering this suggestion. Your tool is great and makes it easy to anonymize a repo.