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

Replacing the separating space between message and input #1169

Open
jareware opened this issue Sep 28, 2022 · 2 comments
Open

Replacing the separating space between message and input #1169

jareware opened this issue Sep 28, 2022 · 2 comments

Comments

@jareware
Copy link

Really cool lib, love it!

return [`${prefix} ${message}${defaultStr} ${formattedValue}`, error];

Would it be somehow possible to customize the separator " " between defaultStr and formattedValue here? ☝️

I would like to format my prompts so that the result shows in the console as:

key=<value>

without any space between, but currently one can only achieve this:

key= <value>

with suffix: '='.

Thoughts?

@jareware jareware changed the title Replacing the separating Replacing the separating space between message and input Sep 28, 2022
@SBoudrias
Copy link
Owner

I'd like to get better theming support down the line; but I'm not sure what a good interface for this would be across prompts yet.

@jareware
Copy link
Author

Would it make sense to have a separator prop, defaulting to " " to keep backwards compat, and support it wherever suffix is supported? Might be quite easy? 🤔

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