Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Reading difficult directory name correctly:

On 2020-12-10 2:00 p.m., Bart Schaefer wrote:
On Thu, Dec 10, 2020 at 1:48 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
Tab completion seems to put backslashes where needed but the " _files  "
is left off
That should only happen if there's an ambiguity, i.e., another file or
directory with the same name up to but not including the "_files"
Right you are there's a file:

    Sky above 49°30'N 123°30'W at Sat 2020 Oct 3 5:35.html

But shouldn't it  go into into it's selection mode?  I keep pressing tab until I get the completion I want? The completion seems unaware of the ambiguity as far as offering me the choices.  Mind ... the command is " rm -r " thus expecting a directory and the other item is a file.  Sounds like a logical lapse.  Some time ago I turned off all my 'smart' completions -- being a simple soul I just want completions on local files without any filtering  but .... dunno, maybe that's part of it.  But then I'd expect it to either complete with the directory, OR offer me manual completion.

Running _complete_debug with ctrl-x? may provide some insight here.

Pardon Bart, exactly how do I do that?

Messages sorted by: Reverse Date, Date, Thread, Author