-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Copy cite command should respect preferences #10615
Copy link
Copy link
Closed
Labels
[outdated] type: bugConfirmed bugs or reports that are very likely to be bugsConfirmed bugs or reports that are very likely to be bugscomponent: preferencesgood first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.
Milestone
Metadata
Metadata
Assignees
Labels
[outdated] type: bugConfirmed bugs or reports that are very likely to be bugsConfirmed bugs or reports that are very likely to be bugscomponent: preferencesgood first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
StatusShow more project fields
Done
#10303 introduced a new cite command:
It is parsed at
org.jabref.gui.push.AbstractPushToApplication#dissectCiteCommand.However, in
org.jabref.gui.edit.CopyMoreAction#copyCiteKey, this pattern is not used.This leads to
\cite{key1,key2}{Khalaf2007}for keyKhalaf2007.Implementation
org.jabref.logic.citationkeypattern.CitationKeyPatternPreferencestoCitationKeyGenerationPreferences.org.jabref.preferences.ExternalApplicationsPreferences#getCiteCommandto return arecordhavingprefix, delimiter, suffixas string. There, the value is constructed based on the code at org.jabref.gui.push.AbstractPushToApplication#dissectCiteCommand. - No need to introduce caching there. That could be done as next step. (This code does not run for a long time, so no performance issues expected). Name therecordCitationCommandStringPreferences.\cite. It should work nevertheless. It should use,as delimiter and{as prefix, and}as suffix (as fallback if nothing was provided). Adapt the code ofCitationKeyGenerationPreferencesaccordingly. If this is successfully done, The command "Push entries to external application" adds a "null" prefix and suffix to an existing Citationkey in LaTeX. #10568 is fixed.getCitePrefix(),getDelimiter(), andgetCiteSuffix()to use the introducedCitationStringPreferences.org.jabref.gui.push.AbstractPushToApplication#dissectCiteCommand.Removeorg.jabref.gui.push.PushToApplication#getDelimiterChange parameter at org.jabref.gui.push.PushToApplicationCommand#pushEntries to useThis is wrong; since application's delimiter has higher precedence than the one of the citaton command.CitationCommandStringPreferencess delimiterorg.jabref.gui.edit.CopyMoreAction#copyCiteKeyto use the new preference