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

Allow Users to Edit Prompt Variables via Input Fields #840

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Conversation

tscburak
Copy link
Contributor

#Adding new Feature

Background:
While using pre-defined prompts, it is easy to forget which parts need to be filled out by the user. This can lead to incomplete or incorrect prompts. By replacing variables with editable input fields, users will have a clearer and more intuitive way to modify the necessary values without missing any placeholders.

Description:
Currently, prompt variables are defined using the format ${Variable Name: Default Value}. These placeholders should be replaced with editable input fields, allowing users to modify values dynamically instead of manually editing the text.

Proposed Solution:
Parse the prompt text to detect variables in the ${Variable Name: Default Value} format.
Replace each detected variable with an input field, pre-filled with the default value.
Ensure real-time updates so that changes reflect instantly in the final prompt preview.

@f
Copy link
Owner

f commented Feb 11, 2025

This is a piece of art! <3

@f f merged commit 3682225 into f:main Feb 11, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants