From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 568 invoked from network); 22 Jun 2000 07:13:57 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Jun 2000 07:13:57 -0000 Received: (qmail 21826 invoked by alias); 22 Jun 2000 07:13:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12028 Received: (qmail 21819 invoked from network); 22 Jun 2000 07:13:25 -0000 Date: Thu, 22 Jun 2000 09:13:23 +0200 (MET DST) Message-Id: <200006220713.JAA02135@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Wed, 21 Jun 2000 10:05:58 -0700 Subject: Re: Context-sensitive ZLE Bart Schaefer wrote: > Now that the completion system is able to set up all this wonderful context, > I'm wondering about being able to use it elsewhere in zle. > > For example, I'd like backward-kill-word to stop at dots when I'm editing > an IP address in an ssh or telnet command, but to delete past dots and stop > at slashes when I'm editing a file name. > > It can almost be done with a completion function that figures out how to > modify the word and then calls compadd -U, but that doesn't work for e.g. > transpose-words (or anything else that spans more than one word). One of my favourite pastimes is currently to think about doing to zle what we've done to the completion system. I.e. reduce the internals to the basics (unlike completion, most things are already there for zle) and then shell functions... Then we would be able to use as many styles as possible, of course. (I'm not very happy looking up styles from the C code and have avoided it until now, because it would defeat functions that define a zstyle shell function to get at the styles used... and things like that.) Ideally, we should probably put even more things into C-code (mailcheck comes to mind). But non of this before 4.0, of course. Hm, probably not very helpful, this `answer', sorry ;-} Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de