warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.78k stars 348 forks source link

Tab autocomplete broken for folders with long names or special characters #4689

Open uncapped1599 opened 4 months ago

uncapped1599 commented 4 months ago

Discord username (optional)

No response

Describe the bug

I want to cd into one of many of my media folders in a directory. When trying tab, it fails to list anything in the directory other than a non-existent "snap" folder. Only way to successfully change directory into a sub folder is to first list all of them and copy the whole folder name verbatim.

To reproduce

Go to a folder containing multiple folders with special characters such as spaces or curly braces. Try TAB to autocomplete folders after 'cd'.

Expected behavior

TAB after cd command should list all directories in the folder. Instead lists nothing but a made up snap directory.

Screenshots

Screenshot 2024-04-04 at 09 19 05

Operating system

Linux

Operating system and version

Ubuntu 22.04.2

Shell Version

GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)

Current Warp version

v0.2024.03.26.08.02.stable_02

Regression

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

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

dannyneira commented 4 months ago

Hey @uncapped1599 sorry about this, Its not clear which of the characters may be breaking the completions, I suspect it may be the curly brackets {}. The workaround for now would be to run a subshell like bash to fallback to shell completions when working in those folders.