jdx / jdx/usage

Shell completion after unexpected word messes up the prompt

Open
#596 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1k
Forks
59
Avg merge
5h 58m
Merged PRs (30d)
362

Description

When I attempt to perform shell completion after an unexpected word in an argument with `mise`, the verbose error message from usage messes up the shell prompt.

For example:

```sh
$ mise help Error: × unexpected word: help

mise
```

After pressing typing `mise help` and pressing tab, a multi-row error message is printed, and the prompt, including the current input, becomes garbled and overwritten. This makes it really hard to figure out what's already typed and what's new.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.