Skip to content
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

Double key binding for inserting new TechReport and pulling changes from shared database #6867

Closed
1 task done
m-mauersberger opened this issue Sep 4, 2020 · 11 comments · Fixed by #6960
Closed
1 task done
Labels
component: keybinding good first issue An issue intended for project-newcomers. Varies in difficulty. [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs

Comments

@m-mauersberger
Copy link
Contributor

m-mauersberger commented Sep 4, 2020

JabRef version 5.2 on openSUSE Leap 15.1

Steps to reproduce the behavior:

  1. Open a shared database.
  2. Press "Ctrl+Shift+R".
  3. Changes from shared database are pulled and a new TechReport is inserted.

Maybe this is quickly done... ;)

@tobiasdiez tobiasdiez added good first issue An issue intended for project-newcomers. Varies in difficulty. component: keybinding [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs labels Sep 4, 2020
@Gena928
Copy link
Contributor

Gena928 commented Sep 25, 2020

Just realised this bug does not depend on Shared Database.
I.e. you can open any library, press "Ctrl+Shift+R" and a new TechReport will be inserted.

I'll try to fix that.

@Gena928
Copy link
Contributor

Gena928 commented Sep 28, 2020

@tobiasdiez
need an advice. ))) Looks like there are 2 actions on "ctrl+shift+R" key combination:

  • pull changes from shared database;
  • create new technical report;

I see it in KeyBinding.java file. Which one is better to change?
I propose to change keybinding for NEW_TECHREPORT constant from ctrl+shift+R to ctrl+alt+R.

@m-mauersberger
Copy link
Contributor Author

m-mauersberger commented Sep 28, 2020

I would do it the other way because there are a lot of 'New' key bindings on ctrl+shift+... (e.g. New Book, New Proceedings,...).

@Gena928
Copy link
Contributor

Gena928 commented Sep 28, 2020

OK, the followed combinations are already assigned:
ctrl+shift+(A, C, D, E, I, K, L, M, N, O, P, R, S, T, U)

ctrl+shift+W?
ctrl+shift+J?

@tobiasdiez
Copy link
Member

Personally, I would remove the default keybinding for "new techreport". I don't think that many people use that regularly to justify having a keybinding for it (but keep it as an option for people to set it later).

It may be a good idea to revise the keybindings in general, and come up with a consistent layout. Most of the current bindings are a result of step-by-step additions, instead of having a general idea. Some pointers for best practices: https://docs.microsoft.com/en-us/previous-versions/windows/desktop/dnacc/guidelines-for-keyboard-user-interface-design#assigning-shortcut-keys

@Gena928
Copy link
Contributor

Gena928 commented Sep 28, 2020

OK, I'll look into Microsoft guidelines.
Meanwhile, @m-mauersberger what do you think about removing hotkey for "Pull changes from shared database" ?

@Siedlerchr
Copy link
Member

I think the hotkey for pulling changes is important for Databases that do not support pushing

@m-mauersberger
Copy link
Contributor Author

m-mauersberger commented Sep 28, 2020

For me the same, I would keep it. Mh, what about strg+alt+R or alt+shift+R for pull changes?

@Gena928
Copy link
Contributor

Gena928 commented Sep 28, 2020

Looks like alt+shift+R can be used.
I'll test it tomorrow on Mac & Windows.

@Gena928
Copy link
Contributor

Gena928 commented Sep 29, 2020

Seems like alt+shift+R is OK.
In case if no more comments, I'll create a pull request.

@Gena928
Copy link
Contributor

Gena928 commented Sep 29, 2020

Ouch ))
I've created a pull request and it shows 56 commits and 2 files change. Looks like this is because I created the branch from my Master, but it should be created from JabRef/Master.

Is that a problem? If yes, I will create a new commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: keybinding good first issue An issue intended for project-newcomers. Varies in difficulty. [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs
Projects
Archived in project
4 participants