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

Enhancement: Add default ignore file to mode file #108

Open
alex-ip opened this issue Dec 6, 2023 · 0 comments
Open

Enhancement: Add default ignore file to mode file #108

alex-ip opened this issue Dec 6, 2023 · 0 comments

Comments

@alex-ip
Copy link

alex-ip commented Dec 6, 2023

We need to specify an ignore file to filter the files that are read in. This ignore file is likely to vary with the RO-crate profile chosen, so we could specify it in the Crate-O mode file.

For example, we could associate the .gitignore file with the Software Source Code RO-Crate Profile in the mode file for this profile. This would be used to filter the file list when the user selects "Load Files". The ignore settings could be applied unconditionally at first, and we could consider allowing the user to override or disable the entries later.

We may also wish to ignore a standard selection of file globs (e.g. "." and "~") - we might want to read these from a configuration file.

Could we use a section in the mode file as follows?

	"ignore": {
		"ignoreFiles": [
			".gitignore"
		],
		"ignoreGlobs": [
			".*",
			"~*",
			"*.tmp"
		]
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant