zsh-users
 help / color / mirror / code / Atom feed
* 2 things
@ 2004-09-16 13:43 keef
  2004-09-19 20:31 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: keef @ 2004-09-16 13:43 UTC (permalink / raw)
  To: zsh-users

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.


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

end of thread, other threads:[~2004-09-19 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 13:43 2 things keef
2004-09-19 20:31 ` Bart Schaefer

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