zsh-users
 help / color / mirror / code / Atom feed
From: Jonas Juselius <jonas@iki.fi>
To: zsh-users@sunsite.dk
Subject: zstyle problems
Date: Tue, 1 Oct 2002 14:34:53 +0300	[thread overview]
Message-ID: <20021001113453.GA3095@chem.helsinki.fi> (raw)

Hello,

first off, I'm pretty much a newbie to zsh. I have been using it for a
year or so, and I'm pretty familiar with the basic stuff. Now, I decided
that I wanted to try squeeze the rest of the juice out of zsh, since I'm
spending roughly 8-10 hours with the thing :)
One thing that I want to do is set up completion so that it works
_precisely_ how _I_ want it to work. So, I read up on using zstyle and
writing completion widgets. Then I tried to do the following (this is
not what I really want, it's just a simple test): I wanted different
completion for 'cd' and the rest of the commands. I put the following
lines in my .zshrc: 

zstyle ':completion:*:*:cd:*' completer _complete 
zstyle ':completion:*' completer _complete _correct _approximate

But to my big surprise, I still get exactly the same completion (with
corrections) for 'cd' and the other progs. Am I missing something here?
I also tried to change tag-order for the -prefix- completer so that it
would complete named directories before users, but that failed as
well... I am, however, able to make zsh complete on specific file
extensions for some programs I wrote, using the file-patterns style.

Any help appreciated,
                      .jonas.

-- 
"Time shared nodes are not considered to consist of virtual nodes and these
nodes or used by, but not allocated to, jobs." -- PBS Admin Guide

[ PGP public key: http://www.iki.fi/jonas/pubkey.asc ]


             reply	other threads:[~2002-10-01 11:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 11:34 Jonas Juselius [this message]
2002-10-01 11:43 ` Jonas Juselius
2002-10-02  3:15 ` Bart Schaefer
2002-10-02  7:50   ` Jonas Juselius
2002-10-02  8:16     ` Borzenkov Andrey
2002-10-02  8:33     ` Bart Schaefer
2002-10-02  9:28       ` Jonas Juselius

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=20021001113453.GA3095@chem.helsinki.fi \
    --to=jonas@iki.fi \
    --cc=zsh-users@sunsite.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).