-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Labels
component: JabKit [cli]good first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)Assigned by assign-issue-action (or manually assigned)🔔 reminder-sent
Description
Currently, the generate-citation-keys command from JabKit doesn't allow for customization
Usage: jabkit generate-citation-keys [-dhp] --input=<inputFile>
[--output=<outputFile>]
Generate citation keys for entries in a .bib file.
-d, --debug Enable debug output
-h, --help display this help message
--input=<inputFile> Input BibTeX file
--output=<outputFile> The output .bib file.
-p, --porcelain Enable script-friendly output
However, JabRef allows for much customization: https://docs.jabref.org/setup/citationkeypatterns
This should also be offered in the CLI.
You can check the GUI for the options
Task:
- Offer each element of
CitationKeyPatternPreferencesas parameter in the CLI fororg.jabref.toolkit.commands.GenerateCitationKeys - Thereby, construct new
org.jabref.logic.citationkeypattern.CitationKeyPatternPreferencesbased on CLI options. If no option is provided for a parameter, use the values from user-configuredJabRefCliPreferences(argumentProcessor.cliPreferences).
Hints:
- You can use org.jabref.toolkit.converter.CaseInsensitiveEnumConverter to convert an enum (see usage of the class for how to do)
- Key patterns is a map, which can be implemented in PicoCLI using https://picocli.info/#_maps
Metadata
Metadata
Assignees
Labels
component: JabKit [cli]good first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)Assigned by assign-issue-action (or manually assigned)🔔 reminder-sent
Type
Projects
Status
In Progress