-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Strange behavior with multi-line prompts #8911
Comments
@sholderbach Can I work on it ? |
anyone is welcome to contribute, i'm sure @sholderbach would say "please do so" 😉 |
Oh! I forgot to mention that I'd already tried moving the newline into
… but that newline seemed to get lost (trimmed?). It might be worth checking if whatever is going on with PROMPT_INDICATOR is also happening with the other |
It seems each nushell/crates/nu-cli/src/prompt_update.rs Lines 80 to 89 in a5087c4
|
seems to be the same problem described in nushell/reedline#707 i think this can just be reproduced in reedline, so the issue is probably there somewhere |
Describe the bug
From a conversation in Discord:
How to reproduce
let-env PROMPT_INDICATOR = {|| "\n> " }
Notice that you get a prompt w/ a newline, but no
>
.Expected behavior
I expected to have a prompt of
"> "
on a line by itself. (I prefer my prompts always start at the same indentation, regardless of how deep I am into a random file path.)Or, if there's some additional behavior going on for the various prompts (ex: if some trimming is going on, or multi-line prompts aren't supported), I'd expect to see that in docs. 😊
Screenshots
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: