tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filter out ../ and ./ in remote filename completion?


From: Michael Albinus
Subject: Re: Filter out ../ and ./ in remote filename completion?
Date: Tue, 17 Dec 2019 10:41:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Fredrik Salomonsson <address@hidden> writes:

> Hi,

Hi Fredrik,

> Not sure this is the right mailing list or not. I use tramp quite
> extensively for doing remote work. It works great but there is one
> minor annoyance with it. Using `find-file', the completion on remote
> hosts include "../" and "./". Which is quite annoying when navigation
> directories that only contains one directory. These are not included
> when navigating locally.

This behaviour is not documented, but it is implemented in
file_name_completion() of dired.c. If there is only one hit besides "./"
and "../", they are filtered out.

> Is there a way to filter out "../" and "./" in the completion list? Or
> a setting for it in tramp? I checked the manual for tramp but that
> only mentioned completion for host and users. Or at least that what I
> could find. Only thing I found was `completion-regexp-list' in emacs'
> elisp manual, but that seems include all completion so that seems too
> low level for my need.

For consistency, I've implemented it as well in Tramp. I agree with you
this is more convcenient.

It is committed to the Tramp and Emacs repoositories. Tramp 2.4.3,
scheduled for the end of this year, will contain this change. It will be
available vie GNU ELPA.

> Thanks

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]