From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15281 invoked by alias); 10 Jan 2016 13:37:50 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37540 Received: (qmail 940 invoked from network); 10 Jan 2016 13:37:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=NjxPMNtkHddSf0MjPAJ+GsN9EMimXm2VncYPU6iGu6E=; b=J2nxrta87bNlzY99epDTcIWqyq5QW4WyV7O+8CL75Iql8CxZklvkY8/Sl+ROnqOd22 z00IDNS1Dj88WoVqSWZTVIxYxBIxVlUlvJrrc/jW7jduM3WJ8NoHx3qPdcHhn/+ghODL tTh/4fZrL6a6PmRbh6OfYO0lvteUoHZakk3mBzHI9dxRY6OiBXbV05eT1lM8jYQ4cjEe mDYc+UUnZ54og99xYuEvxJWOrd+91zWZC52VGlBRtQ/Y25J3AfcCtXETdTe8lCX8tUjx LQiy9jjDXU5g8qIAIXGA2uCx83Go3bX2g3c6VPOC/tSTykdbrBYPDo9bcuCgIiTQmgQq Bkzg== X-Received: by 10.112.198.102 with SMTP id jb6mr5954371lbc.44.1452433065837; Sun, 10 Jan 2016 05:37:45 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20160110003758.GA28696@tarsus.local2> References: <20160110003758.GA28696@tarsus.local2> From: Sebastian Gniazdowski Date: Sun, 10 Jan 2016 14:37:26 +0100 Message-ID: Subject: Re: backward-kill-shell-word widget To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 I see that you use (z) flag :) I think this is cool. I just was about to decide to bind shell-worded transpose-words-match to Alt-r (have transpose-segment bound to Alt-t) and noticed that I rather want to keep select-word-style bash. I rather want Ctrl-W to delete normal words. So with your function one can have: - "Ctrl-W" / backward-kill-word to delete word with style of his choice - transpose-words-match to swap words with style of his choice, keeping in mind to position cursor at beginning of the words - "Alt-m" / copy-prev-shell-word to copy shell word regardless of word style - "Ctrl-T" / backward-kill-shell-word to delete shell word regardless of word style - "Alt-t" / my transpose-segment to swap shell words regardless of word style (should I rename the widget to "transpose-shell-word", looks like yes) - "Alt-/" / _history-complete-older to complete shell words regardless of word style I think this goes into a nice workbench for quick manipulation of command line, if one devotes time to establish order in that set of loosely coupled functionalities. Best regards, Sebastian Gniazdowski