CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

The context menu of an element should attempt to select it

Open SHsuperCM opened this issue 2 years ago • 4 comments

Currently when you dont have any selected code, the right click menu grays out the options that use selectedCode. Would be much nicer if when you open the context menu when over something like a method signature, a field, a class, etc.. it would attempt to put the whole element in selectedCode.

SHsuperCM avatar Mar 20 '23 07:03 SHsuperCM

Hi @SHsuperCM, sounds like a nice idea. I'll see what I can do.

Thank you

carlrobertoh avatar Mar 20 '23 20:03 carlrobertoh

@SHsuperCM I decided I needed to create something new, but this was just what I was hoping for😌

m-fire avatar Apr 10 '23 07:04 m-fire

@m-fire What do you mean by "creating something new"?

Atm, only the selected code options are grayed out if nothing is selected.

FYI: I'm considering adding a codex models and provide similar logic how GitHub Copilot works but that's another topic.

carlrobertoh avatar Apr 10 '23 07:04 carlrobertoh

@carlrobertoh No special meaning. I was thinking of making something similar to this plugin you made. I thought it would be nice to have a prompt input/predefined prompt feature in the context menu (Alt + insert). Will you make it? :)

m-fire avatar Apr 13 '23 15:04 m-fire