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.97k stars 359 forks source link

Autocomplete w/ tab is not working anymore in ssh session #3085

Open LeonardoAlchieri opened 1 year ago

LeonardoAlchieri commented 1 year ago

Discord username (optional)

No response

Describe the bug

With the latest update, when I am in an ssh session and I press tab to reveal possible actions, it is not working.

To Reproduce

  1. Start warp
  2. Start an ssh session. I use one with an alias from ssh_config, so like ssh my_ssh_alias.
  3. I enter a folder (here tab is working). So cd my_folder.
  4. I try to enter other folder, and here tab is not autocompleting. I tried using the MacOS terminal application, and it does work there.

Expected behavior

No response

Screenshots

No response

Operating System

MacOS

Operating System and Version

13.2.1

Shell Version

zsh 5.8.1 (x86_64-apple-darwin22.0)

Warp Version

v0.2023.05.09.08.03.stable_01

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:b8107fdf-ba31-488d-b103-d271c89cac3e

None

dannyneira commented 1 year ago

Hey @LeonardoAlchieri Thanks for letting us know, the SSH autocompletion is populated by ~/.ssh/config and ~/.ssh/known_hosts as well. Once an entry is added to those files, and you start a new Warp session ( open a new window/tab/pane), they should be available in the Tab completions menu.

Try opening a new session after adding an ssh server to your config, and enable "Open completions as you type", then try again and let us know if the issue persists with a video of the issue.

acarl005 commented 1 year ago

Hi @LeonardoAlchieri thanks for reaching out. Can you tell me the OS and the shell of the server you SSH'd into? Can you also tell me specifically which commands you tried autocompleting which didn't work, e.g. ls, or maybe ls prefix_ where there is a valid files(s) that actually start with the prefix_?

willemo commented 1 year ago

I'm having the exact same issue. I connect to one of our servers though ssh (either by using one of my hosts defined in ssh_config or by typing out the ssh command completely) and for example perform the following commands:

wget https://example.org/path/to/download.tar.gz
tar -xvf d[tab]

When pressing tab on the second command, it doesn't complete the filename.

The OS of the server is Ubuntu and the shell is Bash. My local OS is MacOS and local shell is ZSH.

nicolaromano commented 4 months ago

Hi, any update on this? I have the same issue in Fedora 39, connecting to a Fedora 37 server via SSH (Bash shell).

latsygin commented 3 months ago

Hi, any update on this?

nicolaromano commented 3 months ago

Hey @LeonardoAlchieri Thanks for letting us know, the SSH autocompletion is populated by ~/.ssh/config and ~/.ssh/known_hosts as well. Once an entry is added to those files, and you start a new Warp session ( open a new window/tab/pane), they should be available in the Tab completions menu.

Try opening a new session after adding an ssh server to your config, and enable "Open completions as you type", then try again and let us know if the issue persists with a video of the issue.

Just re-reading this, and wanted to clarify that the issue is not autocompleting of the host names. Rather, once connecting to a server, getting autocomplete of the servers directories.

So:

ssh user@server <- this gets completed fine

Then on the server

cd somedir <- no autocomplete here

f0x1777 commented 3 months ago

Having the same issue , comented as above, running mac os 14.5 and warp v0.2024.06.04.08.02.stable_04

stodoran commented 1 month ago

Having the same issue with MacOS Sonoma 14.6 and Warp v0.2024.07.30.08.02.stable_01. Instead of autocompleting file or folder names, tab just literally inputs a tab space...