carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.08k stars 225 forks source link

Position in the right-click menu #21

Closed rangzen closed 1 year ago

rangzen commented 1 year ago

Hello,

Is it possible to have a more "humble" position on the menu? All extensions place themselves at the top position, can we go to something more realistic with real day-to-day usage? Not higher than copy/paste or the context action for example? Please...

In all cases, thank you for this plugin!

carlrobertoh commented 1 year ago

Hi @rangzen

Yes we can, I will add this change to the next release.

Best regards

carlrobertoh commented 1 year ago

I hope this is more "humble" now 🙂

Screen Shot 2023-03-07 at 11 10 30

If you have good ideas for better wording then I'm all ears.

rangzen commented 1 year ago

:rofl: Yeah, sorry, I didn't find another way to say it in English :D Thank you so much for this. It was fast! I think it is important and can give a sense of quality. I tested all Open AI plugins and they all push this menu to the top. IMHO, it makes the plugin appears as a toy or a POC. I think yours is the most interesting plugin, so that is why I asked that here... I think String Manipulation plugin is a good example. It has a huge list of possibilities but keep it at one place. See: image

If you are open to suggestion, I will start looking your code :+1:

The actual entire rewrite of the UI starts hiding or declutter the UI. Put everything a one place and keep the last operation on top seems the right path for me. Since you have a window tool also, I would suggest to get ride of the "Ask ChatGPT" option since you will anyway go to the window tool to interact and probably use the window part. I will use one left click on the right instead of one right click, then a selection and then go on the right anyway to interact with the window...

By the way, with the new UI (beta), with a dark theme, the icon is strange:

image

Thanks again for the speed and the mind-openess (or something like that in English :) )

carlrobertoh commented 1 year ago

Hi

Thank you for the feedback and thinking along.

I totally agree with your statements, the actions menu and its position was just something that was left behind and didn't got much attention(until now). Also, I really like the UX/UI of the String Manipulation plugin's menu, so I'm thinking of doing something similar.

What do you think about this(perhaps with some "fancy" icons)?

Screen Shot 2023-03-07 at 14 34 19

If you have some better wording for these actions then I'd love to hear about it 🙂

I would suggest to get ride of the "Ask ChatGPT" option since you will anyway go to the window tool.

Makes sense, however since the plugin lacks a proper way of clearing the current chat session, I've been using it as a workaround for now.

By the way, with the new UI (beta), with a dark theme, the icon is strange:

I've been receiving some console errors related to icon size being bigger than required(512x512 vs 12x12), might be related, will check it out. Also in which IDE are you experiencing that?

Thanks again for the recommendations.

Best regards

rangzen commented 1 year ago

Very nice! I will try to think about it... I would probably get rid of the sub-menu Predefined Prompts, add a separator, and put everything under. Until you have 20 of these, I think it is ok. Then you will probably need a submenu. It is a bit like for files and directory, or subjects in forums (for old folks), it is often better to wait a bit and do the ordering with a new level only when it is needed.

I am using Goland with the new UI image

carlrobertoh commented 1 year ago

Makes sense, thank you!