auto open output file and hide some input files with gitignore