Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: include highlighted text in 'Ask anything' context #28

Closed
coffenbacher opened this issue Dec 27, 2022 · 4 comments
Closed

Comments

@coffenbacher
Copy link

Awesome job on this extension, especially solving the authentication issues 🎉

My workflow for ChatGPT is to highlight a block of code and then ask it something usually very specific, either to make a change or to explain one very specific thing. So I only rarely use the default prompts.

Currently in this extension I have to paste the context into the 'Ask anything'. Ideally it would include highlighted code.

@gencay
Copy link
Owner

gencay commented Dec 27, 2022

Thank you @coffenbacher! Glad you liked it. Do you mean highlighting the code in the conversation window after the question is asked? The highlight only works if you preselected a code fragment with one of the default actions. Right now anything you paste/write into the Ask anything textbox will be treated as pure string. I'm trying to understand your scenario a bit.

Also do you tend to use the same question prefix with your code? Or does it vary per occasion?

@gencay
Copy link
Owner

gencay commented Dec 27, 2022

Hi @coffenbacher! I am adding a new feature to add custom prefixes to your code selection for prompting ChatGPT.

New ChatGPT: Ad-hoc prompt command will ask you to fill in your ad-hoc prefix and it will remember that for the duration of your session.

adhoc

Check out the next release
image

I will also update the Readme with the new feature. I think this should speed up your dev experience!

gencay added a commit that referenced this issue Dec 27, 2022
…fix for the selected code via context menu
@gencay
Copy link
Owner

gencay commented Dec 27, 2022

@coffenbacher please update to v2.3.0 to use this new feature. I will close this issue for now, let me know if you have any concerns!

@gencay gencay closed this as completed Dec 27, 2022
@coffenbacher
Copy link
Author

Works amazing!! Thank you. Impressive turnaround time 🦾

gencay added a commit that referenced this issue Jan 8, 2023
…fix for the selected code via context menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants