zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Things which used to work
Date: Sun, 13 Feb 2000 18:43:51 +0000	[thread overview]
Message-ID: <E12K3wN-0005pO-00.2000-02-13-18-40-15@mail3.svr.pol.co.uk> (raw)

Something's gone screwy with my file completion.  Consider completing after
`gv '.


First, I get the options even with no `-'.  The following used to work so
that I didn't in this case:

    zstyle ':completion:*' prefix-needed no
    zstyle ':completion:*:(options|signals)*' prefix-needed yes

(Actually, I didn't have the `*' at the end of the second pattern before,
but I added it to see if it helped, but it didn't.  It shouldn't be
necessary since `options' is a tag.)  Switching prefix-needed to yes
globally does work, however.


Second, if I type a directory name, I *only* get postscript files completed,
and not directory names even if there are no postscript files.  It works if
I type the first letter of a directory, but if that wasn't how it worked
before.  Furthermore, the listing looks like this:

% gv ./             
Completing postscript file
Completing PDF file
/ 

Apart from the missing directories, I don't know where that final `/' came
from.  (The rest is OK.)  I don't have any sort-tags style defined.


Third, if I use the zmodload completion I get all the files in the relevant
directories, not just those ending in .so, even though the glob pattern is
explicit, and there are .so files present.  `zmodload zsh/...' seems to
have given up completely.


It's quite possible this all relates to the change in style contexts, but
if so I haven't a clue how.  In case it does, here's my complete list of
styles.

    autoload -U compinit
    compinit
    zstyle ':completion:*' matcher 'm:{a-zA-Z}={A-Za-z}' 'r:|[.,_-]=* r:|=*'

    # This effectively replaces ZLS_COLORS
    zstyle -d ':completion:*::::'
    zstyle -d ':completion:*::::default'
    zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}

    zstyle ':completion:*' completer _matcher _oldlist _complete _approximate
    # This one is a bit ugly. You may want to use only `*:correct'
    # if you also have the `correctword_*' or `approximate_*' keys.
    zstyle ':completion:*:(correct|approximate):*' max-errors 2 numeric
    zstyle ':completion:*:(correct|approximate):*' prompt \
      'Correcting (%e errors):'
    zstyle ':completion:*:oldlist:*' list 'never'
    zstyle ':completion:*:descriptions' format 'Completing %d'
    zstyle ':completion:*' prefix-needed no
    zstyle ':completion:*:(options|signals)*' prefix-needed yes
    zstyle ':completion:*:options' description 'true'
    zstyle ':completion:*' menu "select=6"
    zstyle ':completion:*:oldlist*' menu true
    zstyle ':completion:*' group-name ''
    zstyle ':completion:*:urls' path ~/.urls
    zstyle '*' hosts $hosts


-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>


             reply	other threads:[~2000-02-13 18:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-13 18:43 Peter Stephenson [this message]
2000-02-14 10:28 Sven Wischnowsky

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=E12K3wN-0005pO-00.2000-02-13-18-40-15@mail3.svr.pol.co.uk \
    --to=pws@pwstephenson.fsnet.co.uk \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).