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

Unable to type in "OC" or "OD" into commands #4889

Closed
1 task done
DavidTanner opened this issue May 7, 2024 · 2 comments
Closed
1 task done

Unable to type in "OC" or "OD" into commands #4889

DavidTanner opened this issue May 7, 2024 · 2 comments
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@DavidTanner
Copy link

DavidTanner commented May 7, 2024

Dupe Check

Describe the bug

When trying to navigate to a folder that starts with OC the terminal removes the O, and this doesn't appear to matter where in the string OC shows up. This also happens with OD, but not any other characters.

oh-my-zsh master (22bbc23)

To reproduce

Running zshell on MacOS execute the command

echo 'OC'
echo 'OD'

Output then looks like

echo 'C'
C
echo 'D'
D

Expected behavior

echo 'OC'
OC
echo 'OD'
OD

Screenshots

Screenshot 2024-05-07 at 5 10 48 PM
Screenshot 2024-05-07 at 5 11 00 PM

My screenshots are for SOC because that is how I found it, but it doesn't need the S to happen.

Operating system

MacOS

Operating system and version

MacOS 14.4.1 (23E224)

Shell Version

zsh 5.9 (x86_64-apple-darwin23.0)

Current Warp version

v0.2024.04.30.08.02.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

I cannot reproduce the issue if I don't run Warpify subshell

Does this block you from using Warp daily?

No

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

@DavidTanner DavidTanner added the Bugs Bugs, Hangs, Crash, and Freezes label May 7, 2024
@DavidTanner DavidTanner changed the title Unable to type in "SOC" or "SOD" into commands Unable to type in "OC" or "OD" into commands May 7, 2024
@dannyneira
Copy link
Member

dannyneira commented May 8, 2024

Hey @DavidTanner i'm not seeing the issue in a Warpified zsh subshell or native zsh in Warp.

CleanShot 2024-05-08 at 17 11 57

My guess is that you may have a custom prompt, theme, or bash/zsh/fish plugin and Warp is unable to parse it.
You can disable parts of your dotfiles just for Warp by using this conditional statement:

# Bash and Zsh
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
# > What you want to disable here <
fi

We have a list of incompatible tools here: https://docs.warp.dev/help/known-issues#list-of-incompatible-tools
And more info on custom prompts here: https://docs.warp.dev/features/prompt

let me know if that helped or if the issue persist, please provide screenshot and your logs. https://docs.warp.dev/help/sending-us-feedback#gathering-warp-logs

@DavidTanner
Copy link
Author

@dannyneira Thank you for those links! I think I found the source of my problems. I had added some bindkey commands to handle beginning/end of line. After commenting the lines, I no longer have an issue. Thanks!

bindkey 'OD' beginning-of-line      # cmd+←
bindkey 'OC' end-of-line            # cmd+→

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

2 participants