Open
Description
For commands like ssh and sftp the service type is known in context. For others like curl or xdg-open that accept URLs, the context might be available from the URL prefix (e.g. http://, https://). This information could be used to complete using either (or both) avahi and dig commands.
The avahi completion is already there, but it only triggers on _workstation._tcp. The idea would be to allow different commands to provide the context of the type of service that they are operating on and discover the hostnames based on that.