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

Placeholders in Prompts #146

Open
schucan opened this issue Oct 1, 2024 · 0 comments
Open

Placeholders in Prompts #146

schucan opened this issue Oct 1, 2024 · 0 comments

Comments

@schucan
Copy link

schucan commented Oct 1, 2024

Is your feature request related to a problem? Please describe.

Currently, the "selected text" is just appended to the prompt.

There are two distinct situations where this is inconvenient:

  1. Some prompts would be better if the selected text would be inside the prompt instead of at the end.
    • example: "This is a support request I received: %t /// Please write a polite answer with many more questions to discourage followups", where %t would be replaced by the selected text.
  2. When the "Ask for additional text" option is used, it would be just as great to have the cursor placed in that exact location.
    • example: "This is an email I received: %t /// Please write a polite and complete answer email expressing %c. Make it polite and funny.", where %t would be replaced by the selected text and the cursor would be blinking where the %c is.

Describe the solution you'd like

See above:

  • %t would be replaced with selected text.
  • cursor would be placed where %c is in prompt.

Additional context

This is somehow implemented in AI Anywhere Add-On (but it otherwise has a lot less features...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants