zsh-users
 help / color / mirror / code / Atom feed
* compctl_rehash for zshcompsys
@ 2005-04-11  2:25 Andre Pang
  2005-04-11  2:48 ` Bart Schaefer
  2005-04-11  5:55 ` Maintaining the 'rehash' hash automatically [was Re: compctl_rehash for zshcompsys] Eric Mangold
  0 siblings, 2 replies; 3+ messages in thread
From: Andre Pang @ 2005-04-11  2:25 UTC (permalink / raw)
  To: zsh-users; +Cc: Thom May

Hi all,

I had a really handy old macro for zsh v3 that automatically rehashed 
on a failed tab command completion, using the compctl completion 
system:

     http://www.zsh.org/mla/workers/1998/msg00574.html

     function compctl_rehash { rehash; reply=() }
     compctl -C -c + -K compctl_rehash + -c

Since I'm really, really far from a zsh guru, would it be asking too 
much for a kind soul to get this working with the new zshcompsys system 
used in zsh 4?  I did try, but my brain died after I read the 
zshcompsys manpage for 5 minutes ...

Thanks very much!


-- 
% Andre Pang : trust.in.love.to.save  <http://www.algorithm.com.au/>


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

* Re: compctl_rehash for zshcompsys
  2005-04-11  2:25 compctl_rehash for zshcompsys Andre Pang
@ 2005-04-11  2:48 ` Bart Schaefer
  2005-04-11  5:55 ` Maintaining the 'rehash' hash automatically [was Re: compctl_rehash for zshcompsys] Eric Mangold
  1 sibling, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2005-04-11  2:48 UTC (permalink / raw)
  To: Andre Pang, zsh-users; +Cc: Thom May

On Apr 11, 12:25pm, Andre Pang wrote:
} Subject: compctl_rehash for zshcompsys
}
} Since I'm really, really far from a zsh guru, would it be asking too 
} much for a kind soul to get this working with the new zshcompsys system 
} used in zsh 4?

See zsh-users/8059 and the surrounding thread, from October 2004.


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

* Maintaining the 'rehash' hash automatically [was Re:  compctl_rehash for zshcompsys]
  2005-04-11  2:25 compctl_rehash for zshcompsys Andre Pang
  2005-04-11  2:48 ` Bart Schaefer
@ 2005-04-11  5:55 ` Eric Mangold
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Mangold @ 2005-04-11  5:55 UTC (permalink / raw)
  To: Andre Pang; +Cc: zsh-users, Thom May

> Hi all,
>
> I had a really handy old macro for zsh v3 that automatically rehashed
> on a failed tab command completion, using the compctl completion
> system:

I was just thinking about the recent advances in filesystem notification
services provided by modern kernels, e.g. inotify on linux2.6

Wouldn't it be pretty cool, if on supported systems, zsh could have an
option to maintain the hash all by itself with low overhead?

Anyone interested in doing this? Would patches be accepted?

Thoughts? Ideas?

-Eric Mangold


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

end of thread, other threads:[~2005-04-11  6:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-11  2:25 compctl_rehash for zshcompsys Andre Pang
2005-04-11  2:48 ` Bart Schaefer
2005-04-11  5:55 ` Maintaining the 'rehash' hash automatically [was Re: compctl_rehash for zshcompsys] Eric Mangold

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