zsh-workers
 help / color / mirror / code / Atom feed
* Small nitpick: _nm completion
@ 2015-05-23 14:17 Christian Neukirchen
  2015-05-28 22:39 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Neukirchen @ 2015-05-23 14:17 UTC (permalink / raw)
  To: zsh-workers

Hi,

the completion for nm checks for executables, .a, .o or .so files, but
it is too restrictive in that it doesn't complete directories for
paths to these files:

zsh-5.0.7-0-g208bded
nm /usr<TAB>      => nothing
nm /usr/bin<TAB>  => lots of binaries

I think it should complete general directories too, just like every
other file completion I can think of.

Thanks,
-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Small nitpick: _nm completion
  2015-05-23 14:17 Small nitpick: _nm completion Christian Neukirchen
@ 2015-05-28 22:39 ` Bart Schaefer
  2015-05-29  8:11   ` Christian Neukirchen
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2015-05-28 22:39 UTC (permalink / raw)
  To: zsh-workers

I never saw a response to this ...

On May 23,  4:17pm, Christian Neukirchen wrote:
} Subject: Small nitpick: _nm completion
}
} zsh-5.0.7-0-g208bded
} nm /usr<TAB>      => nothing
} nm /usr/bin<TAB>  => lots of binaries
} 
} I think it should complete general directories too, just like every
} other file completion I can think of.

I am not able to reproduce this from "zsh -f" + compinit:

torch% nm /usr<TAB>
torch% nm /usr/<TAB>
torch% nm /usr/
bin/          games/        lib64/        sbin/         X11R6/
doc/          include/      libexec/      share/
etc/          kerberos/     local/        src/
evolution28/  lib/          man/          tmp@


That is, first TAB adds a slash, second TAB lists directories.  In no
circumstance can I complete directly from "/usr/bin" with no trailing
slash, to a list of files, so if that's actually working for you there
must be some additional configuration stepping in.

-- 
Barton E. Schaefer


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Small nitpick: _nm completion
  2015-05-28 22:39 ` Bart Schaefer
@ 2015-05-29  8:11   ` Christian Neukirchen
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Neukirchen @ 2015-05-29  8:11 UTC (permalink / raw)
  To: zsh-workers

Bart Schaefer <schaefer@brasslantern.com> writes:

> I never saw a response to this ...
>
> On May 23,  4:17pm, Christian Neukirchen wrote:
> } Subject: Small nitpick: _nm completion
> }
> } zsh-5.0.7-0-g208bded
> } nm /usr<TAB>      => nothing
> } nm /usr/bin<TAB>  => lots of binaries
> } 
> } I think it should complete general directories too, just like every
> } other file completion I can think of.
>
> I am not able to reproduce this from "zsh -f" + compinit:
>
> torch% nm /usr<TAB>
> torch% nm /usr/<TAB>
> torch% nm /usr/
> bin/          games/        lib64/        sbin/         X11R6/
> doc/          include/      libexec/      share/
> etc/          kerberos/     local/        src/
> evolution28/  lib/          man/          tmp@
>
>
> That is, first TAB adds a slash, second TAB lists directories.  In no
> circumstance can I complete directly from "/usr/bin" with no trailing
> slash, to a list of files, so if that's actually working for you there
> must be some additional configuration stepping in.

Has been fixed in 53e44daeba84, #33927 already.

-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-29  8:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-23 14:17 Small nitpick: _nm completion Christian Neukirchen
2015-05-28 22:39 ` Bart Schaefer
2015-05-29  8:11   ` Christian Neukirchen

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).