Skip to content
#

prompt

Here are 509 public repositories matching this topic...

pensierinmusica
pensierinmusica commented Feb 27, 2020

Hi,

The docs say that:

validate: (Function) Receive the user input and answers hash. Should return true if the value is valid, and an error message (String) otherwise. If false is returned, a default error message is provided.

But when my validate function returns false, no default error message is shown on screen.

If the validate function returns a string instead, the custom error m

salmanulfarzy
salmanulfarzy commented Dec 2, 2018

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

Check for Zsh version for compatibility with prompt.

Describe the solution you'd like

autoload -Uz is-at-least && if ! is-at-least 5.2; then
  print "ERROR: You're using zsh version ${ZSH_VERSION}, and versions < 5.2 are not supported. Update your zsh." >&2
  return 1
fi
mirabilos
mirabilos commented Jun 5, 2019

Neither here nor powerline/fonts has any documentation of what codepoints are supposed to be provided with which glyphs by fonts. This makes it virtually impossible for font authors to add support.

Also, I’ve seen you use the PUA. Please register your codepoints with http://www.evertype.com/standards/csur/ so they don’t overlap with any other CSUR PUA assignments. (It’s easy, I got a couple ass

Vistaus
Vistaus commented Nov 10, 2019

I installed the lambda theme, but it keeps spawning:

╭─vistaus at ThinkArch in ⌁/Downloads/oh-my-fish (master ✔)
╰─λ lsd                                                                                                                                             0 < 00:00:00 < 14:09:26
  AUTHORS    CHANGELOG.md    CONTRIBUTING.md    docs         lib        pkg          repositories 
prompts
simonhaenisch
simonhaenisch commented Aug 20, 2019

Describe the bug

There is no documentation about how to mark a choice as pre-selected in a multiselect. It works to set selected: true in the choice, however @types/prompts doesn't know about it and neither does any of the documentation.

Expected behavior

The docs as well as the types should help to figure out how to do this.

System

  • OS: macOS
  • Terminal: iTerm
318097
318097 commented Apr 16, 2019
  • The first example can have few more chained prompts (It shows the power of enquirer in a few seconds)
  • Todo can be moved to the bottom & can be a section (Below Contribution section)
  • The 'Related prompts' section can be moved below 'Example Usage'. After the gif, the code should be shown (It is correct for Input prompt)
  • The example should be complete. It should match exac
posh-git
go-prompt
tredoe
tredoe commented Mar 17, 2020

Feature Request

Could add an example to suggest a sub-command?

i.e.

optsCmd = []prompt.Suggest{
	{"list", Description: "some listing"},
	{"print", Description: "print info"},
}

// Sub-commands for "print"
optsCmdPrint = []prompt.Suggest{
	{"system", Description: "print system info."},
	{"dir", Description: "print directory"},
}

So, when you write "print", then could b

Improve this page

Add a description, image, and links to the prompt topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the prompt topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.