With ivy mode on, typing in /ssh: in dired mode followed by C-j will return irrelevant completion entries. For example, it returns the local hostname; it also returns a nil entry.
After looking at tramp.el, I figured the following possible fix. In the function tramp-completion-handle-file-name-all-completions which tramp.el uses to handle completion, variables tramp-default-usertramp-default-user-alisttramp-default-hosttramp-default-host-alist are set to nil within the function so that tramp-get-completion-function won't output things like local hostname. As for the nil entry, it can be removed manually.
With
ivy
mode on, typing in/ssh:
indired
mode followed byC-j
will return irrelevant completion entries. For example, it returns the local hostname; it also returns anil
entry.After looking at
tramp.el
, I figured the following possible fix. In the functiontramp-completion-handle-file-name-all-completions
whichtramp.el
uses to handle completion, variablestramp-default-user
tramp-default-user-alist
tramp-default-host
tramp-default-host-alist
are set tonil
within the function so thattramp-get-completion-function
won't output things like local hostname. As for thenil
entry, it can be removed manually.