-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Special field editor for fields with entry keys #1637
Conversation
Some comments:
|
b2e1923
to
99e17cc
Compare
@JabRef/developers : This can be tested at http://builds.jabref.org/entryfield/ now as it works quite well. Make sure that you show the |
I'm having some problems getting a bibtex key auto completer to work in the table. Has anyone worked with the auto completer and knows how it works? |
Can we first do something without autocompleter? I worked with the auto completer ~5 years ago, but I have nearly forgotten anything. And it was a mess. |
Is the current state that we "only" have to test and then this is good to be reviewed? |
Yes, I think that it is good to try out. Apart from the auto completer and drag-and-drop (which seems quite hard to get right since the entry editor is updated when selecting fields) this should be OK. |
@@ -129,4 +129,20 @@ public void testNoPeriod() { | |||
Assert.assertEquals("B C Bruce, C K von Manson and J Jumper", | |||
a.format("Bruce, Bob Croydon and Charles Kermit von Manson and Jumper, Jolly")); | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to come from another issue, but we can merge it nevertheless.
…ssRef is now treated differently
Do you have time to work on the functionality a bit?
|
Autocompletion: @stefan-kolb might know something (because of #1136), but this might be too far away. @stefan-kolb We would "just" need to have an AutoCompleter for all existing bibtex keys. If this is easy possible, that would be fine. |
# Conflicts: # src/main/java/net/sf/jabref/gui/entryeditor/EntryEditor.java # src/main/java/net/sf/jabref/model/entry/InternalBibtexFields.java # src/test/java/net/sf/jabref/logic/layout/format/AuthorsTest.java
Yes, the auto completer is there. I just cannot get it to work in a table cell... |
@@ -11,7 +11,7 @@ | |||
|
|||
import net.sf.jabref.model.entry.BibEntry; | |||
|
|||
class TransferableEntrySelection implements Transferable { | |||
public class TransferableEntrySelection implements Transferable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a heritage from when I tried to implement drag and drop. currently it is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for me to move forward here. I wish the nasty UI issues of #1637 (comment) can be solved.
I removed more unused code. Added double click (and a place holder for focusing on the bibtex key field, which I do not know how to do). I couldn't trigger the error you mentioned, but noted that the last edit is not always saved properly. For example, if one selects a new entry. I do not think this happened earlier, but not sure. |
Related to JabRef#14 among others.
There are some fundamental issues with drag and drop, such as the entry in the entry editor keeps changing when selecting other entries to drag. Also, I do not really get the table to update very nicely, even though the code is to a large extent a copy of the file link editor.
One can see this as a proof of concept and maybe something to build further upon. If it wasn't for the weird behaviour of the table, I would be more positive.
Ideally we should specify one or more fields that can be used to relate entries, such as "cites" and "similar" (or something).