Re: simpler completion

Bart Schaefer <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <CAH+w=7ZTLYjxx4seQKfMFJFEY2PMequ78J1tXgsuavN-EL38tA@mail.gmail.com>
On Tue, Jun 24, 2025 at 8:13 AM Ray Andrews <[email protected]> wrote:
>
> On 2025-06-24 07:58, Bart Schaefer wrote:
> > On Mon, Jun 23, 2025 at 8:13 PM Ray Andrews <[email protected]> wrote:
> >> 4 /aWorking/Zsh/Source/Wk 1 % mnt [TAB]
> > Sorry, what's "mnt"?  Zsh doesn't have a completion function for that.
> Those are just filenames, what I showed was an actual attempt at
> completion after pressing TAB.

So there's not supposed to be a space between "mnt" and "[TAB]" in
your example?  Because as shown you're completing for the "mnt"
command, which could affect what happens with the file names.  I
certainly don't see "Completing executable file" or "Completing shell
function" when attempting your example with a space before the tab.

If I remove the space and hit TAB directly after "mnt" then I see
those two offered, which is exactly as I'd expect because in that case
you're completing a command word rather than a file name.  But in that
instance I never get any file names offered, so there's something else
about your configuration -- possibly that $path includes "."? -- that
you haven't mentioned.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.