iguissouma / nx-console-idea-plugin

Apache License 2.0
39 stars 9 forks source link

Nx Generate (Ui): use current folder #11

Open nidomiro opened 3 years ago

nidomiro commented 3 years ago

If I start the Nx Generate (Ui) [@nrwl/nest:service] from a subfolder in my app, eg. app/user-backend/src/app/user the files are generated to app/user-backend/src/<name>/<name>.service(.spec).ts.

Is it possible to autofill the directory field according the the context from which the Nx Generate (Ui) was started? In this case app/user would be the right value with flat checked.

iguissouma commented 3 years ago

I auto fill path and project fields according to the context from which the Nx Generate (Ui)

Screenshot 2021-01-01 at 22 46 07

it's the same behaviour that we have for the vscode extension.

Screenshot 2021-01-01 at 22 48 14

Do you have an empty path? why the app/user is the right value and not apps/api/src/app/user?