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

The cd command autocompletes local directories even on a remote ssh connection #14

Closed
william-matz opened this issue Oct 6, 2020 · 5 comments

Comments

@william-matz
Copy link

When I ssh into another machine and use the cd command, it autocompletes directories from my local machine, not the remote

@brendanfalk
Copy link
Member

Got it.

For the moment, we will turn off autocomplete when you're in a remote machine. But we are exploring ways to make it work.

SSH is encrypted, so understandably, tapping into a connection is hard!

Will leave the issue open for the moment and use this as the space to discuss our progress on making it work.

@dipakparmar
Copy link

@falky97 could be possible to do with ssh tunnelling? 🤔

@brendanfalk
Copy link
Member

@dipakparmar Agree. Pseudo terminals also a possibility. Ideally something that fits within the running process. Ideas welcome. This stack exchange post I did may shed some more light. https://unix.stackexchange.com/questions/614052/get-working-directory-inside-ssh-client-process-from-outside-process. Answer was a bit cryptic 😬

@brendanfalk
Copy link
Member

Some more things to investigate:

@brendanfalk
Copy link
Member

v1.0.27 (just pushed) has fixed this.

  1. When in SSH, we will now no longer show any suggestions for things that require a background process. e.g. file/folders, git remotes, heroku apps etc. We will still show subcommands normally.
  2. When in a process that's not SSH, Bash, Zsh, or Fish, Fig will not deliver suggestions (e.g. if you're in a python repl)

Genius work from @mattschrage to get this working.

@brendanfalk brendanfalk transferred this issue from withfig/autocomplete Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants