-
Notifications
You must be signed in to change notification settings - Fork 373
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
Unable to move cursor back to second line after latest update (using Starship) #5052
Comments
Hey @onecrayon Thanks for reporting this! So, first off - to address how to return to the prior state:
With respect to Warp's updating behavior:
Why did we not offer an option within the app to revert the behavior? This was a major refactor of core Warp code to support this feature. At a high-level, there'd be a lot of product and tech debt for us to maintain a setting like this within Warp. At the end of the day, the existing PS1 experience within Warp was broken, and this is what it should've been from the start. We do realize the friction it causes folks that want to have the legacy experience, hence our efforts to alleviate this. Also note that we have not changed default Warp prompt (non-PS1) behavior. It still uses 2 lines by default (opt-in experience into same line prompt). That being said, we really appreciate your feedback here - please keep it coming! |
@Advait-M The vast majority of my [line_break]
disabled = true
add_newline = true
format = "$all$line_break"
[line_break]
disabled = false But this also made no difference. I can verify that the other elements in my TOML file are not interferring, because when I comment them all out and just leave the above options the behavior is identical (the specific prompt contents just change a little bit). |
Thanks for the info! Got it - agreed re Default state - just
I believe the top version is what you desire for a 2 line prompt? Let me know if I'm wrong here (with regards to the goal state) or I missed something! |
@Advait-M Found it! Apparently if you disable the |
Ooh interesting - yeah that does sound weird, I wouldn't expect those two to be interconnected 🤔 . Gotcha - agreed! Thanks for digging into this! And again, thanks for raising this! I'll explore how to make the onboarding block that we show to Warp users better for Starship users on Bash too - want to make sure we can make it as easy as possible to go back to the previous experience, if users would like to! 😄 |
^ We're gonna try to improve the SLP onboarding block to specifically detect/target plugins such as Starship and p10k (with specific instructions) hence the re-open above! 😄 |
Hmm, the solution of Below a condensed version of my Starship config. Can someone who has the old 2-line prompt behaviour working help me understand what I need to be configuring. Thanks! command_timeout = 5000
format = """\
[](bg:#282A36 fg:#7DF9AA)\
[$jobs](bg:#7DF9AA fg:#282A36)\
[](fg:#7DF9AA bg:#1C3A5E)\
$time\
[](fg:#1C3A5E bg:#3B76F0)\
$directory\
[](fg:#3B76F0 bg:#FCF392)\
$git_branch\
[](fg:#FCF392 bg:#f0af22)\
$git_status\
$git_metrics\
[](fg:#f0af22 bg:#bd4024)\
$custom\
[](fg:#bd4024 bg:#ff8a9f)\
$golang\
$lua\
$nodejs\
$perl\
$php\
$python\
$ruby\
$rust\
$shell\
$terraform\
$zig\
[](fg:#ff8a9f bg:#282A36)\
$character\
$cmd_duration\
$line_break\
"""
add_newline = true
[line_break]
disabled = false
[character]
success_symbol = '[ ➜](bold green) '
error_symbol = '[ ✗](#E84D44) ' |
@Integralist hmm, that's weird yep; I would've expected that config to show up with a 2-line prompt 🤔 (was messing around with this myself) To check - are you on Zsh or Bash or Fish? On Zsh/Fish, you can also add a newline at the rcfile level (as opposed to the Starship toml level). Though, I'm guessing this is likely Bash? |
I'm using Zsh actually how do you do this at the RC level? |
Oh nice - could you try adding this to the end of your rcfile: |
Any idea how to fix this with fish? The |
For fish, you should be able to use the following (add it to end of
|
No luck. Also tried swapping out |
Hmm... could you also provide your |
By the way @Integralist and @jhegele - did the both of you try the command you got when updating Warp to the latest version in the SLP onboarding block? Wanted to confirm the triggering logic is working correctly for folks For Zsh: For Fish: |
Apologies I've not been able to check yet. Will do so on Monday and report back either way. Thanks again |
@Advait-M starship.toml is below, nothing particularly weird in there as far as I'm aware. I didn't notice the prompt to run that command when I updated Warp. 🤦 format = """
$directory\
$git_branch\
$git_status\
$fill\
$python\
$c\
$elixir\
$elm\
$golang\
$haskell\
$java\
$julia\
$nodejs\
$nim\
$rust\
$scala\
$docker_context\
"""
# Disable the blank line at the start of the prompt
# add_newline = false
# Set longer command timeout for nodenv
command_timeout = 1000
add_newline = true
# You can also replace your username with a neat symbol like to save some space
[fill]
symbol = " "
[directory]
# style = "fg:#DA627D"
style = "cyan bold"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"
[python]
pyenv_version_name = true
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[c]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[docker_context]
symbol = " "
style = "fg:#06969A"
format = '[ $symbol $context ]($style) $path'
[elixir]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[git_branch]
symbol = ""
style = "fg:#FCA17D"
format = '[ $symbol $branch ]($style)'
[git_status]
style = "fg:#FCA17D"
format = '[$all_status$ahead_behind ]($style)'
[golang]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[haskell]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[nodejs]
symbol = ""
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[nim]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[rust]
symbol = ""
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "fg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "fg:#33658A"
format = '[ $time ]($style)'
[line_break]
disabled = false
|
Turns out, the issue here is that I am an idiot and was editing the wrong config.fish file. Once I fixed that error, I'm back to a two line terminal. Thanks again for your help @Advait-M! |
Awesome haha, no worries - glad to hear we could fix it! |
👋🏻 @Advait-M Just to confirm this worked for me (double line break gives me a nicer spacing)... PROMPT="${PROMPT}"$'\n\n' Thanks for your help! 🙂 🥳 |
Glad to hear! I'm going to close out this issue for now - we can re-open a new one if needed for any folks! |
Dupe Check
Describe the bug
The latest update introduced cursors on the same line as the prompt, which I hate. I'm using a custom cursor, though, so I figured I would just follow the recommended way to adjust to a second line, but it doesn't work.
To reproduce
~/.bash_profile
:Expected behavior
There should be a single setting for Warp-provided prompts for same-line cursors that also applies to custom prompts. Maybe Starship is doing something funky, but it's bizarre to me that before Warp just always stuck the cursor on a new line and now it always sticks it on the same line without being able to adjust the behavior in the app.
Screenshots
No response
Operating system
MacOS
Operating system and version
14.2
Shell Version
bash 5.2.15(1)
Current Warp version
v0.2024.06.18.08.02.stable_03
Regression
Yes, this bug started recently or with an X Warp version
Recent working Warp date
No response
Additional context
No response
Does this block you from using Warp daily?
Yes, this issue prevents me from using Warp daily.
Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)
Yes, this I confirmed this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
The text was updated successfully, but these errors were encountered: