zsh-users
 help / color / mirror / code / Atom feed
* Completion does not work with hidden files/directories
@ 2021-05-30 10:39 François RONVAUX
  2021-05-30 12:53 ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: François RONVAUX @ 2021-05-30 10:39 UTC (permalink / raw)
  To: zsh-users

[-- 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 --]

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

end of thread, other threads:[~2021-05-31  7:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30 10:39 Completion does not work with hidden files/directories François RONVAUX
2021-05-30 12:53 ` Oliver Kiddle
2021-05-31  7:16   ` François RONVAUX

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).