Adds the ability to specify [camelN] as a title-related field marker for citation key generation#10772
Conversation
Add the ability to set a citation key marker `camelShort` that is identical to the `camel` marker but with a maximum of 7 words.
change name to `shortcamel` to match current naming scheme
|
Thank you very much for your contribution, I like the idea, but however, I think instead of arbitrarily limiting it to 7 words, it may be useful to specify a parameter with the number of characters, e.g. how it's done by PS: For general development check out https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/ |
|
@mkdjr It would be really nice if you could continue workin on this feature. Is there anything we can help you with? |
|
I will let you know! Things have been busy this week -- I'd like to keep working on it this weekend. |
… from camelCase title. Not functional yet.
… function can be used for camelN
|
Finally got around to finishing this request! I set up the dev environment with IntelliJ per the contributing docs. I liked your suggestion of having the pattern work like |
|
Thanks, that already looks good so far. I will take a closer look later. +1 for adding a test! |
* upstream/main: (22 commits) Bump com.github.andygoossens.modernizer from 1.9.0 to 1.9.2 (JabRef#10922) Bump com.dlsc.gemsfx:gemsfx from 1.97.0 to 2.0.3 (JabRef#10923) Bump org.apache.logging.log4j:log4j-to-slf4j from 2.22.1 to 2.23.0 (JabRef#10921) Added missing changelog entry for JabRef#10912 Change the popup to enter types to the combo box for custom entry types (JabRef#10912) Add JDK EA build (JabRef#10904) Fix Broken Links (JabRef#10899) Add HTML2MD conversion to abstract and comment fields (JabRef#10896) docs: Fixed URLs and corrected typos (JabRef#10900) Add refresh button for LaTeX citations. (JabRef#10901) Farewell btut 👋 (JabRef#10905) Fix: About OOError, Alternatives section not visible (JabRef#10902) Update code-quality.md Fix documentation issues: Sourcegraph URL and method name (JabRef#10898) Removed mainapplication layer (JabRef#10895) Update check-links.yml (JabRef#10897) [WIP] Adds the ability to specify [camelN] as a title-related field marker for citation key generation (JabRef#10772) Bump com.dlsc.gemsfx:gemsfx from 1.92.0 to 1.97.0 (JabRef#10894) Bump org.openrewrite.recipe:rewrite-recipe-bom from 2.6.3 to 2.6.4 (JabRef#10892) Bump org.junit.platform:junit-platform-launcher from 1.10.1 to 1.10.2 (JabRef#10893) ... # Conflicts: # src/main/java/org/jabref/gui/desktop/os/NativeDesktop.java
Adds the ability to specify
[camelN]as a title-related field marker for citation key generation. This is identical to[camel]but with a maximum of N words.Related documentation pull request: JabRef/user-documentation#481 (was JabRef/user-documentation#478 but I changed the fork's branch name).
This is my first time making a pull request that is not just a typo fix, so any feedback is welcomed. : )
Mandatory checks
CHANGELOG.mddescribed in a way that is understandable for the average user (if applicable)