unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Oleksandr Manzyuk <manzyuk@gmail.com>
Cc: Michael Albinus <michael.albinus@gmx.de>, 10911@debbugs.gnu.org
Subject: bug#10911: 24.0.94; `ido-read-directory-name' should offer known hosts for completion
Date: Fri, 22 Oct 2021 20:03:04 -0700	[thread overview]
Message-ID: <CADwFkm=qM1TKAdrmvrxj_d1-EOrceweQakz1vmtoj9RvGCY-iQ@mail.gmail.com> (raw)
In-Reply-To: <87sjhtzts0.fsf@gmail.com> (Oleksandr Manzyuk's message of "Wed,  29 Feb 2012 12:52:15 +0000")

Hi Michael,

Could you perhaps take a look at the below bug?  It seems to relate to
completions when using Tramp.

Oleksandr Manzyuk <manzyuk@gmail.com> writes:

> This is a feature request rather than a bug.  `ido-read-directory-name'
> doesn't offer known hosts for completion, unlike `ido-read-file-name'.
> Here is what I mean by that.  I'm assuming that `ido-mode' is on.
> Please forgive me if I belabor the point.
>
> When I type C-x C-f // and hit TAB, I obtain an *Ido Completions* buffer
> containing not only local directory names (bin/, boot/, dev/ etc.), but
> also known hosts, which is very convenient in conjunction with TRAMP.  I
> can type C-x C-f // g o RET, which expands into /golconda.cs.nuim.ie:,
> and if I already have a remote shell running on that host, I can see a
> list of files and directories there.  If there is no remote shell yet, I
> can simply hit RET, and it will be opened using TRAMP.  Of course, I can
> open a dired buffer visiting a remote directory this way, but it should
> also be equally convenient to do that with `ido-dired'.  While it is
> possible, it is also less convenient: I have to type C-x d //, type the
> host name followed by colon *in full and without completion*.
>
> Summarizing, there is a discrepancy in how `ido-read-directory-name' and
> `ido-read-file-name' generate completions, and I don't see why this
> should be the case.
>
> While I'm happy with C-x C-f for opening dired buffers, also on remote
> hosts, having `ido-read-directory-name' complete known hosts would make
> this function more useful for other purposes.  For example, I have the
> following function:
>
> (defun named-shell (name directory)
>   "Open a named shell. NAME is the base name of the shell buffer,
> and DIRECTORY is the directory to open the shell in."
>   (interactive "MName: \nDDirectory: ")
>   (switch-to-buffer (concat "*" name "*"))
>   (cd directory)
>   (shell (current-buffer)))
>
> I introduced it primarily to be able to quickly open inferior remote
> shells.  However, when I'm queried for the directory to open the shell
> in, I still have to type in the host name in full.
>
>
> In GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
>  of 2012-02-28 on pandora
> Windowing system distributor `The X.Org Foundation', version 11.0.10707000





  reply	other threads:[~2021-10-23  3:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-29 12:52 bug#10911: 24.0.94; `ido-read-directory-name' should offer known hosts for completion Oleksandr Manzyuk
2021-10-23  3:03 ` Stefan Kangas [this message]
2021-10-27 15:27   ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkm=qM1TKAdrmvrxj_d1-EOrceweQakz1vmtoj9RvGCY-iQ@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=10911@debbugs.gnu.org \
    --cc=manzyuk@gmail.com \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).