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

feat(Command): added boolean & list autocomplete #5478

Merged
merged 5 commits into from
Jan 28, 2025

Conversation

EclipsesDev
Copy link
Contributor

I'm quite unsure if this is a good implementation but here.

Example:
image
image

Comment on lines 86 to 89
.asSequence()
.map { it.choiceName }
.filter { it.startsWith(begin, true) }
.toList()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.mapNotNull { it.choiceName.takeIf { n -> n.startsWith(begin, true) } }

.toList()
is Value -> {
if (value.getValue() is Boolean) {
listOf("true", "false").filter { it.startsWith(begin, true) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arrayOf

@1zun4 1zun4 added this to the 0.25.1 milestone Jan 28, 2025
@1zun4 1zun4 merged commit 26212d3 into CCBlueX:nextgen Jan 28, 2025
3 checks 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.

3 participants