zsh-users
 help / color / mirror / code / Atom feed
* dsf
@ 2013-01-07 10:01 Daniel
  2013-01-08  9:41 ` completer that first expands global aliases (Re: dsf) Daniel
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel @ 2013-01-07 10:01 UTC (permalink / raw)
  To: zsh-users

I have a nice little recent-files completer, see below.
(found here: http://michael.stapelberg.de/Artikel/zsh_recent_completion )

What I would like to add to this, is for it to expand global aliases inline,
before trying to complete (and thus ending up completing files in my aliased
directory).

I started trying to meld _generic and _expand_alias, but with my lack of
fluency in zsh, I just made a mess :) Any help out there? Is there perhaps some
generic way for having this done for all completion? A zstyle for
_main_complete?


# 'ctrl-x r' will complete the 12 last modified (mtime) files/directories
zle -C newest-files complete-word _generic
bindkey '^Xr' newest-files
zstyle ':completion:newest-files:*' completer _files
zstyle ':completion:newest-files:*' file-patterns '*~.*(omN[1,12])'
zstyle ':completion:newest-files:*' menu select yes
zstyle ':completion:newest-files:*' sort false
zstyle ':completion:newest-files:*' matcher-list 'b:=*' # important


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

end of thread, other threads:[~2013-01-09 16:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-07 10:01 dsf Daniel
2013-01-08  9:41 ` completer that first expands global aliases (Re: dsf) Daniel
2013-01-08  9:58   ` Peter Stephenson
2013-01-08 13:06   ` Oliver Kiddle
2013-01-08 17:01     ` Daniel
2013-01-08 18:24       ` Bart Schaefer
2013-01-08 21:29         ` Daniel
2013-01-09  4:40           ` Bart Schaefer
2013-01-09  7:29             ` Daniel
2013-01-09 16:05               ` 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).