zsh-users
 help / color / mirror / code / Atom feed
From: Thomas Lauer <thomas.lauer@virgin.net>
To: Zsh Users <zsh-users@zsh.org>
Subject: ls completion
Date: Mon, 03 Jun 2024 17:56:54 +0100	[thread overview]
Message-ID: <jc8h5jhhjg7qdev26m56oi4g58m09avpkf@tlc.com> (raw)

Hi all,

I very rarely use ls as I have written my own directory lister. So the
other day I did use ls for a test and this is what happened when I
pressed the <tab> key:

1/usr/share/zsh>ls <tab>drwxr-xr-x 1 root root 80 23/07/15 14:25 ./
ls -<tab>drwxr-xr-x 1 root root 80 23/07/15 14:25 ./
ls - ./<tab>drwxr-xr-x 1 root root 80 23/07/15 14:25 ./

All text after the three <tab>s to EOL is completion output. For other
commands like cp or awk etc completion works as expected.

<tab> is bound to expand-or-complete-prefix. I have no alias or function
called ls. The _ls in /usr/share/zsh/functions/Completion/Unix/ is as
far as I can tell the one that came with zsh v 5.9. At least I've not
modified or replaced it.

1/usr/share/zsh/funct/Compl/Unix>zsh --version
zsh 5.9 (x86_64-debian-linux-gnu)
1/usr/share/zsh/funct/Compl/Unix>d _ls
Dir: /usr/share/zsh/functions/Completion/Unix (overlay mounted on /)
-rw-r--r--#   9206  05.02.23 01:37 _ls
1 file(s)=   9206  using    9216 ; 0 DOTfile(s); 0 dir(s)
0 symlink dir(s);  15919M2 of  17249M0 free on /

I assume that *something* in my zsh config must be the culprit but I've
not the faintest what that could be!?

As ever thanks for any hints.

Tom


             reply	other threads:[~2024-06-03 16:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-03 16:56 Thomas Lauer [this message]
2024-06-03 20:40 ` Bart Schaefer
2024-06-04 12:34   ` Thomas Lauer
2024-06-04 13:19     ` zeurkous
2024-06-04 14:09       ` FU: " zeurkous

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

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

  git send-email \
    --in-reply-to=jc8h5jhhjg7qdev26m56oi4g58m09avpkf@tlc.com \
    --to=thomas.lauer@virgin.net \
    --cc=zsh-users@zsh.org \
    /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.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).