Variable: tramp-completion-function-alist
tramp-completion-function-alist is a variable defined in tramp.el.gz.
Value
(("adb" (tramp-adb-parse-device-names ""))
("kubernetes" (tramp-kubernetes--completion-function "kubernetes"))
("podmancp" (tramp-container--completion-function "podmancp"))
("podman" (tramp-container--completion-function "podman"))
("dockercp" (tramp-container--completion-function "dockercp"))
("docker" (tramp-container--completion-function "docker"))
("rclone" (tramp-rclone-parse-device-names ""))
("psftp" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("pscp" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("plink" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("sg" (tramp-parse-etc-group "/etc/group"))
("doas" (tramp-parse-passwd "/etc/passwd"))
("sudo" (tramp-parse-passwd "/etc/passwd"))
("su" (tramp-parse-passwd "/etc/passwd"))
("telnet" (tramp-parse-hosts "/etc/hosts"))
("sshx" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("ssh" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("rsync" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("scpx" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("scp" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("sshfs" (tramp-parse-sconfig "/etc/ssh/ssh_config"))
("sudoedit" (tramp-parse-passwd "/etc/passwd")))
Documentation
Alist of methods for remote files.
This is a list of entries of the form (NAME PAIR1 PAIR2 ...).
Each NAME stands for a remote access method. Each PAIR is of the form
(FUNCTION FILE). FUNCTION is responsible to extract user names and host
names from FILE for completion. The following predefined FUNCTIONs exists:
* tramp-parse-rhosts for "~/.rhosts" like files,
* tramp-parse-shosts for "~/.ssh/known_hosts" like files,
* tramp-parse-sconfig for "~/.ssh/config" like files,
* tramp-parse-shostkeys for "~/.ssh2/hostkeys/*" like files,
* tramp-parse-sknownhosts for "~/.ssh2/knownhosts/*" like files,
* tramp-parse-hosts for "/etc/hosts" like files,
* tramp-parse-passwd for "/etc/passwd" like files.
* tramp-parse-etc-group for "/etc/group" like files.
* tramp-parse-netrc for "~/.netrc" like files.
* tramp-parse-putty for PuTTY registered sessions.
FUNCTION can also be a user defined function. For more details see the info pages.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defvar tramp-completion-function-alist nil
"Alist of methods for remote files.
This is a list of entries of the form \(NAME PAIR1 PAIR2 ...).
Each NAME stands for a remote access method. Each PAIR is of the form
\(FUNCTION FILE). FUNCTION is responsible to extract user names and host
names from FILE for completion. The following predefined FUNCTIONs exists:
* `tramp-parse-rhosts' for \"~/.rhosts\" like files,
* `tramp-parse-shosts' for \"~/.ssh/known_hosts\" like files,
* `tramp-parse-sconfig' for \"~/.ssh/config\" like files,
* `tramp-parse-shostkeys' for \"~/.ssh2/hostkeys/*\" like files,
* `tramp-parse-sknownhosts' for \"~/.ssh2/knownhosts/*\" like files,
* `tramp-parse-hosts' for \"/etc/hosts\" like files,
* `tramp-parse-passwd' for \"/etc/passwd\" like files.
* `tramp-parse-etc-group' for \"/etc/group\" like files.
* `tramp-parse-netrc' for \"~/.netrc\" like files.
* `tramp-parse-putty' for PuTTY registered sessions.
FUNCTION can also be a user defined function. For more details see
the info pages.")