8000 Add the ability to provide a "hint text" by luanpotter · Pull Request #6 · thosakwe/prompts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Add the ability to provide a "hint text" #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luanpotter
Copy link

So while using this great library I thought it would be cool to be able to add a more in-depth description of the field. I thought with some bash hackery I could add a line below the prompt with some sort of hint/description/alt of the field, and I thought it looked pretty cool. I did this on my project by wrapping your library calls but I thought you might want to consider it an interesting addition.

I am not sure though; it is a bit hacky using some escape sequences (not too much, I imagine you use that in other parts), and it might be too specific to my use case. But nonetheless, I leave it as a suggestion.

Here's a video of what it looks like:

asciicast

@thosakwe
Copy link
Owner
thosakwe commented Jun 1, 2021

Sorry, didn't see this PR until today. Once #7 is in, I'll look into merging #5 and #6.

@thosakwe
Copy link
Owner
thosakwe commented Jun 5, 2021

@luanpotter Have you tested this on Windows?

@luanpotter
Copy link
Author

#5 was already bundled on #7, so I closed that.

As for this, I first need to test with null safety, I might need to do a couple small tweaks.

And as for windows, no, I haven't, but if it's bash compliant it should work. I can test on linux & macos after I fix any NS changes.

@thosakwe
Copy link
Owner
thosakwe commented Jun 16, 2021

I have a Windows machine available. I can test this PR out some time this week.

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

Successfully merging this pull request may close these issues.

2 participants
0