intellij-community
intellij-community copied to clipboard
IDEA-182029: Improve New Package dialog usability
Implements the requested functionality: https://youtrack.jetbrains.com/issue/IDEA-182029
The new package creation dialog for a single package looks like:

When you press the "+" button or a combination of Shift + Enter, a new input field is added:

Also includes: https://github.com/JetBrains/intellij-community/pull/1068
The dialog expands on its own when the package name reaches the edge of the input field. Also added an empty space in front of the right edge, so that the name does not hide behind the right edge. It was requested here: https://youtrack.jetbrains.com/issue/IDEA-209397
Just want to ask, how should I notify the user about the presence of a hot-key Shift + Enter, which adds a new input field?
I thought about adding it to the “+” button in the tooltip, but it would create the illusion that this combination is available from any part of the dialog, whereas it is available only when the window is focused on the input field.
Cool! For consistency, you could add the "generate/add new" shortcut that works basically anywhere there is an "add" bttton.
How does this a interact with multiple source/test roots?
For consistency, you could add the "generate/add new" shortcut that works basically anywhere there is an "add" bttton.
Did not quite understand what shortcut you mean?
How does this a interact with multiple source/test roots?
This dialog allows you to create packages at the same time only within the same root. It seems to me that the possibility of creating a few roots too much complicates the dialogue.
I meant Alt-Insert/Command-N:
See com.intellij.openapi.actionSystem.CommonShortcuts#getNew
On Fri, May 24, 2019 at 2:22 PM Kirill [email protected] wrote:
For consistency, you could add the "generate/add new" shortcut that works basically anywhere there is an "add" bttton.
Did not quite understand what shortcut you mean?
How does this a interact with multiple source/test roots?
This dialog allows you to create packages at the same time only within the same root. It seems to me that the possibility of creating a few roots too much complicates the dialogue.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JetBrains/intellij-community/pull/1144?email_source=notifications&email_token=AACVJVODC3DNBCIESBQSPDLPW7MZXA5CNFSM4HPFXKZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWFEQPQ#issuecomment-495601726, or mute the thread https://github.com/notifications/unsubscribe-auth/AACVJVL7Z5345QUI57HM4FTPW7MZXANCNFSM4HPFXKZA .