From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22742 invoked from network); 21 Jun 2000 17:06:17 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Jun 2000 17:06:17 -0000 Received: (qmail 9640 invoked by alias); 21 Jun 2000 17:06:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12020 Received: (qmail 9631 invoked from network); 21 Jun 2000 17:06:06 -0000 From: "Bart Schaefer" Message-Id: <000621100558.ZM31361@candle.brasslantern.com> Date: Wed, 21 Jun 2000 10:05:58 -0700 X-Mailer: Z-Mail Lite (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Context-sensitive ZLE MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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).