wrdv / testme-idea

TestMe IntelliJ IDEA Plugin - Auto generates Unit Test code
http://weirddev.com/testme
Other
170 stars 63 forks source link

Prioritize Custom Templates in Template Selection #35

Closed karlmatti closed 5 months ago

karlmatti commented 5 months ago

I propose prioritizing custom templates over default ones in the template selection process within the plugin. Currently, when creating a test for a .java class, the available templates are listed with default ones appearing first, followed by custom templates. This arrangement necessitates an additional step to select frequently used custom templates from the bottom of the list.

By reordering the sorting so that custom templates appear first, users can quickly access their preferred templates without the need for extra navigation. This adjustment would streamline the template selection process and enhance user efficiency.

I am prepared to implement this change and submit a pull request upon approval.

yaronyam commented 5 months ago

ok. I think it would be good to introduce sorting controls ⬆️ ⬇️ in template setting to set the order . If that's too much of an effort, then yes, defaulting the custom templates first sounds good for now.

BTW, the test template selection popup supports search as you type. I usually type 1 - 3 letters to locate the relevant template and hit enter. Thanks for raising this issue with the willingness to contribute!

karlmatti commented 5 months ago

Adding sorting controls sounds like a good idea. Currently, sorting seems effective. Searching for a template requires about the same effort as selecting from the end of the list when there's only one template. I'm not sure how most users utilize the plugin, but reordering would already improve efficiency for me. I'll consider adding sorting controls but will not make any promises yet.

Can I get contribution rights so I could raise a pull request?

yaronyam commented 5 months ago

@karlmatti cool 👍 any github user should be able to raise a PR. please let me know if you bump into issues. thanks

yaronyam commented 5 months ago

Closed by #36 released in V6.4.1 Thanks for contributing