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

Why some extra tramp connection schema prefix not in completion candidates? #1733

Closed
stardiviner opened this issue Aug 28, 2018 · 8 comments
Closed

Comments

@stardiviner
Copy link

@stardiviner stardiviner commented Aug 28, 2018

https://emacs.stackexchange.com/questions/44290/why-some-extra-tramp-related-packages-does-not-show-url-schema-prefix/44330#44330

When I press [C-x C-f] , I got some TRAMP methods shown like ssh: , sshx:. But not get docker: when I installed package docker-tramp. Does docker-tramp.el provide this? If yes, then how to configure it? If no, then is it possible to add it? There are many other tramp related packages like kubernetes-tramp and vagrant-tramp and adb: for Android etc.

After (require 'docker-tramp), and disable ivy-mode and counsel-mode. I can complete /docker: in minibuffer now. I guess this is a bug in Ivy. I also tested ido-mode and helm-mode. Seems happens on them too.

@jyp
Copy link
Contributor

@jyp jyp commented Aug 30, 2018

This type of behaviour happened to me after moving to emacs 26. But then I am not getting any tramp connection method in avy.

@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Sep 7, 2018

I also tested ido-mode and helm-mode. Seems happens on them too.

You mean completion works for them, or doesn't work for them?

@stardiviner
Copy link
Author

@stardiviner stardiviner commented Sep 8, 2018

I mean doesn't work for them neither.

@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Sep 11, 2018

This type of behaviour happened to me after moving to emacs 26. But then I am not getting any tramp connection method in avy.

@jyp thanks for the info. I can confirm this as well.

@abo-abo abo-abo closed this in 41bd248 Sep 11, 2018
@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Sep 11, 2018

@jyp The issue on Emacs26 should be fixed now - when you're in the root folder, you'll get completion for tramp methods if you loaded tramp beforehand. I moved the methods below the folders and the files though.

@stardiviner There's completion for the docker: method. When I tried it, it did offer me a running container id for completion. However, after selecting it some error happened and I got no dired buffer. Let me know if it works for you.

@stardiviner
Copy link
Author

@stardiviner stardiviner commented Sep 12, 2018

It works for me. I keep pressing TAB, it gives me /docker:<running_docker>:/path_or_file. Then I select it. It does open it in a Dired or a file buffer. @abo-abo

@stardiviner
Copy link
Author

@stardiviner stardiviner commented Oct 7, 2018

@abo-abo Sorry for comment on old issue. But it's related to this issue (I guess).
I found ivy (or counsel) will prefix "@" for TRAMP remote host. For example:
when I completing docker container names after /docker:, It will complete with candidates:

my host name
@container_name

I guess this works for remote SSH machine. But should not on other TRAMP schema. This could be manually inserted if can't be stick on SSH only.

@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Oct 7, 2018

@stardiviner Please open a new issue with detailed steps to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants