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

[Feature Request] add NOP completer #177

Open
XSAM opened this issue Jun 9, 2020 · 0 comments · May be fixed by #178
Open

[Feature Request] add NOP completer #177

XSAM opened this issue Jun 9, 2020 · 0 comments · May be fixed by #178

Comments

@XSAM
Copy link

XSAM commented Jun 9, 2020

Feature Request

Add NoopCompleter to always return a nil []prompt.Suggest.

func NoopCompleter(d prompt.Document) []prompt.Suggest {
	return nil
}

Somethings I just want to use this lib to receive a simple input, no suggestions at all, but every time I have to write a noop completer to achieve this.

So I wonder whether we can add a NoopCompleter to do this.

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

Successfully merging a pull request may close this issue.

1 participant