From: "François RONVAUX" <francois.ronvaux@gmail.com>
To: zsh-users@zsh.org
Subject: Completion does not work with hidden files/directories
Date: Sun, 30 May 2021 12:39:57 +0200 [thread overview]
Message-ID: <CAMbPAZ4kWt8Q1SRr0vOjQ6fMjSm=2V5YgQQ=JOcA8M38X4NuPA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2598 bytes --]
Hello gurus of ZSH,
In my home directory, there are currently only hidden files/directories and
the completion mechanism does not see them :-(
Few examples...
user@hostname [12:07:01]:~ % ls
No matches for: `files'
But if I manualy insert a dot :
user@hostname [12:27:06]:~ % ls .
--==[ files ]==--
.Maildir/ .Xdefaults .cache/ .config/ .cshrc .cvsrc
.local/ .login .mailrc .nanorc .profile .ssh/
.zsh/
Same issue when I want to change of directory :
user@hostname [12:28:30]:~ % cd
No matches for: `local directory'
user@hostname [12:29:31]:~ % cd .
--==[ local directory ]==--
.Maildir/ .cache/ .config/ .local/ .ssh/ .zsh/
The completion does work fine with not hidden files/directories.
What is wrong with my file "~/.zsh/completion" ?
Note : my machine runs OpenBSD v5.9 with zsh v5.8 ; I do not know if it
matters.
#====================================================
zstyle ':completion:*:*:cd:*' tag-order local-directories path-directories
zstyle ':completion:*' menu select=2
zstyle ':completion:*' select-prompt %SScrolling active: current selection
at %p%s
zstyle ':completion:*:rm:*' ignore-line yes
zstyle ':completion:*:mv:*' ignore-line yes
zstyle ':completion:*:cp:*' ignore-line yes
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '--==[ %U%B%d%b%u ]==--'
zstyle ':completion:*:messages' format '--==[ %d ]==--'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''
# Color completion.
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-colors 'di=01;34'
# Kill completion.
zstyle ':completion:*:processes' command 'ps -ax'
zstyle ':completion:*:processes-names' command 'ps -aeo comm='
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b)
#([0-9]#)*=0=01;31'
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:*:killall:*:processes-names' list-colors '=(#b)
#([0-9]#)*=0=01;31'
zstyle ':completion:*:*:killall:*' menu yes select
# Partial completion suggestions.
zstyle ':completion:*' list-suffixeszstyle ':completion:*' expand prefix
suffix
# Persistent rehash.
zstyle ':completion:*' rehash true
# Create a cache.
zstyle ':completion:*' cache-path ${ZDOTDIR}/zsh_cache
zstyle ':completion:*' use-cache true #on
autoload -Uz compinit promptinit
compinit
promptinit
#====================================================
Second issue (less important) : the section "Create a cache" in the above
file does not work.
Regards.
[-- Attachment #2: Type: text/html, Size: 3492 bytes --]
next reply other threads:[~2021-05-30 10:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-30 10:39 François RONVAUX [this message]
2021-05-30 12:53 ` Oliver Kiddle
2021-05-31 7:16 ` François RONVAUX
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='CAMbPAZ4kWt8Q1SRr0vOjQ6fMjSm=2V5YgQQ=JOcA8M38X4NuPA@mail.gmail.com' \
--to=francois.ronvaux@gmail.com \
--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).