zsh-users
 help / color / mirror / code / Atom feed
From: keef <zsh@local7.info>
To: zsh-users@sunsite.dk
Subject: 2 things
Date: Thu, 16 Sep 2004 09:43:27 -0400	[thread overview]
Message-ID: <20040916134327.GA5613@blackbeard.valdosta.edu> (raw)

1)	consider:

zstyle ':completion:*:(vi|m):*' ignored-patterns \
'*.(a|au|bmp|bz2|divx|dvi|gif|gz|jpeg|jpg|mp|mp3|mpeg|mpg|o \
|pdf|png|ps|ra|rar|swx|tar|tar.bz2|tar.gz|tgz|xbm|xpm|Z|zip)'

works great, I cant get enough.
However, I would like to ignore directories as well..
I have tried '*(-/)' '(*/)' and many combinations inbetween but with no
luck whatsoever...

I have auto_param_slash and mark_dirs set... Is this ok ?

Any thoughts on how I might accomplish ignore-directories as well as the
previous extensions?


2)	consider:

/home/niceguy/somedir% ls
wfiles.pdf  xfiles.pdf

in my .zshrc is have an alias -s set up to assocate all pdfs with
xpdf ... so, ideally I would like to type x<TAB><ENTER>
but when that happenes zsh looks through my path and completes binaries

I feel confident that somehow zsh will start matching in pwd ( in
another way than putting . 1st in my path)

so that instead of xp<TAB> <TAB><TAB><ENTER>
I can just x<TAB><ENTER>

im trying to use:
zstyle ':completion:*' local-files
but know im going about this completly wrong...

If anyone can point out which chapters of the zsh manual (or users
manual) I need to re-read, or if there is something 'basic' I am
missing, or if you can point out that either/both of these things simply arent
possible, I would greatly apprecate this.


Thank you very much for your time.


             reply	other threads:[~2004-09-16 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 13:43 keef [this message]
2004-09-19 20:31 ` Bart Schaefer

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=20040916134327.GA5613@blackbeard.valdosta.edu \
    --to=zsh@local7.info \
    --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).