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

Autosuggested fix for cd ~/something path creates a mess #5654

Open
1 task done
joemcmahon opened this issue Jan 7, 2025 · 0 comments
Open
1 task done

Autosuggested fix for cd ~/something path creates a mess #5654

joemcmahon opened this issue Jan 7, 2025 · 0 comments
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@joemcmahon
Copy link

joemcmahon commented Jan 7, 2025

Dupe Check

Describe the bug

If you're in a directory (say ~/foo, and try to cd to a nonexistent tilde path, like cd ~/bar, Warp's generated suggestion single-quotes the path and generates an actual directory named ~.

Example:

I am in ~/Code/ACRadioPlayer/Example and type a cd to a non-existent directory:

cd ~/Code/azuracast-notifier
cd: no such file or directory: /Users/joemcmahon/Code/azuracast-notifier

The suggestion is

mkdir -p '~/Code/azuracast-notifier' && cd '~/Code/azuracast-notifier'

If this is executed, the result is the creation of and cd to ~/Code/ACRadioPlayer/Example/~/Code/azuracast-notifier, which is definitely wrong and a pain in the butt to clean up.

To reproduce

mkdir ~/foo
cd ~/bar

Accept the suggestion, and end up in

~/foo/~/bar

Expected behavior

The generated command should be

mkdir -p ~/bar && cd ~/bar

with no quotes around the path.

Screenshots

https://imgur.com/a/QJBH7rs

Operating system

MacOS

Operating system and version

Sequoia 15.2

Shell Version

zsh 5.9 (arm64-apple-darwin24.0)

Current Warp version

v0.2024.12.18.08.02.stable_05

Regression

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

Recent working Warp date

Unsure

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

@joemcmahon joemcmahon added the Bugs Bugs, Hangs, Crash, and Freezes label Jan 7, 2025
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

1 participant