intellij-community icon indicating copy to clipboard operation
intellij-community copied to clipboard

IDEA-182029: Improve New Package dialog usability

Open kirpichik opened this issue 6 years ago • 4 comments

Implements the requested functionality: https://youtrack.jetbrains.com/issue/IDEA-182029

The new package creation dialog for a single package looks like:

Снимок экрана 2019-05-22 в 19 52 24

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

Снимок экрана 2019-05-22 в 19 44 21

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

kirpichik avatar May 23 '19 14:05 kirpichik

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.

kirpichik avatar May 23 '19 14:05 kirpichik

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?

alshain avatar May 24 '19 09:05 alshain

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.

kirpichik avatar May 24 '19 12:05 kirpichik

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 .

alshain avatar May 24 '19 12:05 alshain