From ad491f14a08ab61a89782673ecca6a5d13553a55 Mon Sep 17 00:00:00 2001 From: suftware <76719417+suftware@users.noreply.github.com> Date: Fri, 25 Oct 2024 18:36:41 +1100 Subject: [PATCH] Add CitationKey as a default column (#10510) (#12080) * Add CitationKey to entry table default columns Part of #10510 * Add note regarding #10510, default addition of CitationKey column Part of #10510 --- CHANGELOG.md | 1 + .../java/org/jabref/gui/preferences/JabRefGuiPreferences.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcb3048f7e7..e957d5cc76a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We added a new CSS style class `main-table` for the main table. [#11881](https://github.com/JabRef/jabref/pull/11881) - When renaming a file, the old extension is now used if there is none provided in the new name. [#11903](https://github.com/JabRef/jabref/issues/11903) - We changed the name of the library-based file directory from 'General File Directory' to 'Library-specific File Directory' per issue [#571](https://github.com/koppor/jabref/issues/571) +- The CitationKey column is now a default shown column for the entry table. [#10510](https://github.com/JabRef/jabref/issues/10510) ### Fixed diff --git a/src/main/java/org/jabref/gui/preferences/JabRefGuiPreferences.java b/src/main/java/org/jabref/gui/preferences/JabRefGuiPreferences.java index fac88f00239..07bb423173b 100644 --- a/src/main/java/org/jabref/gui/preferences/JabRefGuiPreferences.java +++ b/src/main/java/org/jabref/gui/preferences/JabRefGuiPreferences.java @@ -373,8 +373,8 @@ private JabRefGuiPreferences() { // region: Main table, main table column, and search dialog column preferences defaults.put(EXTRA_FILE_COLUMNS, Boolean.FALSE); - defaults.put(COLUMN_NAMES, "groups;group_icons;files;linked_id;field:entrytype;field:author/editor;field:title;field:year;field:journal/booktitle;special:ranking;special:readstatus;special:priority"); - defaults.put(COLUMN_WIDTHS, "28;40;28;28;75;300;470;60;130;50;50;50"); + defaults.put(COLUMN_NAMES, "groups;group_icons;files;linked_id;field:citationkey;field:entrytype;field:author/editor;field:title;field:year;field:journal/booktitle;special:ranking;special:readstatus;special:priority"); + defaults.put(COLUMN_WIDTHS, "28;40;28;28;100;75;300;470;60;130;50;50;50"); defaults.put(SIDE_PANE_COMPONENT_NAMES, ""); defaults.put(SIDE_PANE_COMPONENT_PREFERRED_POSITIONS, "");