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

OPTION/CMD + ARROW LEFT/RIGHT or BACKSPACE not working as intended when Warp is in long-running command mode #807

Open
jonashojer opened this issue Mar 11, 2022 · 11 comments
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@jonashojer
Copy link

Describe the bug

Whenever I elevate my rights to root through SSH I cannot use either the OPTION or CMD with ARROW LEFT/RIGHT or  to either skip the whole word, skip to the end/start of the line or deleting the next/previous word or the whole line.

To Reproduce

Steps to reproduce:

  1. SSH to a RHEL based server(havn't tested on anything else) as normal user(needs wheel permissions)
  2. Execute sudo su - to elevate to root
  3. Write something like "asdf qwerty"
  4. Try to use 'CMD+ARROW-LEFT'
  5. You can also try to 'CMD+BACKSPACE'
  6. Also you can try to 'OPTION+ARROW-LEFT'
  7. You could also move the cursor to the start of the line and do the commands with ARROW-RIGHT or DELETEKEY

Expected behaviour

4. When having the cursor at the end of the line this should skip both words and get back to the start of the line
5. When having the cursor at the end of the line this should delete the whole line
6. When having the cursor at the end of the line this move the cursor to the first letter in the second word(in my example it should move the cursor in front of q)

Screenshots

No response

Operating System

MacOS

OS Version

12.2.1

Additional context

No response

@quinnj
Copy link

quinnj commented Mar 16, 2022

I also see this behavior when starting the Julia REPL; pushing CMD + ARROW_LEFT or right seem to just insert a \t or something?

@quinnj
Copy link

quinnj commented Mar 16, 2022

In fact, here's the exact unicode point that gets inserted:

julia> x = ""
"\uf703"

@zheng
Copy link
Contributor

zheng commented Mar 22, 2022

These shortcuts work when the Warp input area is showing.

When you're in a REPL or a subshell, you're interacting directly with the shell which doesn't have Warp's editor functionality.

Please upvote #64!

@zheng
Copy link
Contributor

zheng commented Mar 25, 2022

I am closing this because this is not a bug, and it's actually what the terminal experience is outside of Warp. In order to get the desired behavior, we want to allow support for subshells to also be bootstrapped with Warp's input editor. Please subscribe to #64.

@zheng zheng closed this as completed Mar 25, 2022
@jonashojer
Copy link
Author

jonashojer commented Mar 28, 2022

I am not sure why this is intended. Both the built-in Terminal app and iTerm2 do not behave like this and I could for sure find other terminal apps which do the same.

@zheng
Copy link
Contributor

zheng commented Mar 28, 2022

@jonashojer sorry about that - I was mistaken about the shell behavior without the warp input editor. reopening this!

@zheng zheng reopened this Mar 28, 2022
@zheng zheng changed the title OPTION/CMD + ARROW LEFT/RIGHT or BACKSPACE not working as intended when elevated to root OPTION/CMD + ARROW LEFT/RIGHT or BACKSPACE not working as intended when Warp is in long-running command mode Mar 28, 2022
@quinnj
Copy link

quinnj commented Mar 28, 2022

I brought this up w/ some friends and they mentioned this iTerm2 setting that is perhaps relevant
image
i.e. it also sends the correct escape sequence that subshells/repls are expecting.

@Ciebiada
Copy link

Ciebiada commented May 7, 2022

What's the status of this? Any workarounds? Until we get the subshell I would like to at least be able to use the basic keyboard shortcuts the same way I do in other terminals

@jonashojer
Copy link
Author

Any status on this?

@warpdotdev-devx warpdotdev-devx bot added the Bugs Bugs, Hangs, Crash, and Freezes label Jan 9, 2023
@yusufdonmez
Copy link

I am connecting "gcloud compute ssh"
and can not move next/previous word in WARP

normally mac os terminal and connected gcloud bash allow me to go next word by "option+right arrow"
in warp it doesnt work for "gcloud sql connect", too

@ops-jaeha
Copy link

Has this issue not been resolved yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes
Projects
None yet
Development

No branches or pull requests

6 participants