-
-
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
Implemented TagsField for the Keywords field #10910
Conversation
The code looks almost fine to me so far, yet you should always use our cell factory for the drop-down list. Otherwise there will be rendering errors. |
in addition to @calixtus comment, you can find example code for the field |
2743296
to
ef9bf12
Compare
Hi @Siedlerchr, @calixtus can you review the changes I made and let me know if there's anything else that needs to be done |
Hi, codewise it looks good to me, yet I'm not happy with the UI. The Combobox always seems to stay empty, only the dropdown list is used. Can you replace the box with just an icon button with some symbol representing content selectors and keep the dropdown menu? Or can the width of the buttonbox be reduced? |
While discussing the UI. We have some chip view on the Crossref field (if auto completion is on) Would it be possible to rewrite the editor for the keyword field to have the similar functionality, but using the provided terms in the dropdown. (Hint: SuggestionProvider; should also return something if NO letter is input. Then, the list should always be filled) |
Thanks, I'll rewrite the keywords field to use |
For understanding the AutoCompletion hierarchy, I recently explained this in another issue |
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.
src/main/java/org/jabref/gui/fieldeditors/KeywordsEditorViewModel.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.java
Outdated
Show resolved
Hide resolved
…del.java Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
I've fixed autocomplete issues. Now:
|
Regarding the
Additionally, there is a visual issue with |
Hi, we discussed the the exception of crossref autocomplete always enabled regardless of the preference option a few weeks ago internally and decided against it, since it could have heavy performance issues on large databases. Instead we decided, that we want to make the preferences more fine grained and enable autocomplete for crossref as default. But I would suggest to put this change into a new issue/pr to not widen the scope of this pr any further. |
For now your changes to the suggestion provider are fine. |
About the height change, maybe related to the automatic weight calculation in the entry editor? |
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.
Looks good! Very small comment...
Follow up proposals - filed as #10984
- On paste: If it is possible to add this keyword, directly add it without requiring the user to press Enter
- Double click on keyword: remove it and enter edit mode. Example:
double click on "Where"
leads to
- Reorder keywords by drag and drop
- Alphabetic ordering of keywords. In case the list is already alphabetically ordered, add the new keyword in alphabetical order. Otherwise, add it to the end
@LoayGhreeb Since you are in the context of keywords, may I ask if you could look into #8701 (comment)? |
Yes, I noticed this issue. It is related to GemsFX TagsField, you have to click exactly at the position where the text will be written in the text field, or I think click on the same line. |
About the clicking issue: Maybe the tagsfield itself is only one line high. I think the borders of the tags field are not shown, only the border of the surrounding editor. |
Maybe sthg like this works? keywordTagsField.getEditor().prefHeightProperty().bind(this.heightProperty()); |
If not, restore the styleclass and we'll merge. Codewise looks already good to me. |
It doesn't work correctly it expands while writing in the editor. |
The new tag system ignores hierarchical keywords. Only the parent keyword is shown. |
Closes #10560
TagsField
for the Keywords field.Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)