From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1490 invoked by alias); 14 Apr 2016 16:21:32 -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: 38288 Received: (qmail 2748 invoked from network); 14 Apr 2016 16:21:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=Id0RCulkA3fgyTHgEkJNrI24wgZygYAl8xKBfDcgntM=; b=le87nJ6m8XajbUSQc+jShcbwxpdT00r+naaeX/sYI3Ofsbg5C3+jdESPuF9gbPrQHf 0qqtNYbvCp2sota4p4Ybt/r/xiJ4cIEqF5oEU5ZX7s5KOcJ0jX98DszH5uiQKHPQfJI0 xWzO1ruR+J+DuOwssxP2NZeU1wML4d5kAmHLTlyKvp/TKKcrOKZMDxu8nCiZaZQxnLq0 FyN9uGY8UQJ6vxBa/L1xMyJG4LqybZoEPceIxCqv5Oz4Ltssk5seVP64KWgc3EoGeZHJ ApVdYn8eEz54WQnOZNxE3vt4YVG0SQqEz9Ln4DeMdwEzT6vVf+8A4aHk5NwglYKTwhRs 9e8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=Id0RCulkA3fgyTHgEkJNrI24wgZygYAl8xKBfDcgntM=; b=jfnVzm3czh+5TGV5HV00FkgMYcYpR1AvvLxraWXlOvybv2DpwzVZicn4Jp+zrBuvsz Zg5tmXWNXN4zGVXKspHvC4Bn/krBhd+9AcVdK/XjsMEO+q40Cll5emOdr+PaYbS+oma4 VJHR382kDcKyjULlvqNphdHh2m0yc7vmgRw9G9vdpsAyJldcG9MB3v1Vf3/ADAHrunCV HEpSft3PmGYi8yuoF3YB7wJtr6iYMAq/hpWBJZaLzU/yH2mAxH514Y9tQitoZwlS/ljK BnOIxtTfAYnMOHH9kRdUAD4RywP1OHIzWjN2tkp+09SjEYL0vusHvHXO0AEo+uAKZv0a ga4Q== X-Gm-Message-State: AOPr4FXZuvnvWKT/vCOB9Db6XJ3N3NaB3kGir/cH6GkMr6YmzYJJ+x4PEKOL7DdoNnDlNzL53IFUQZUBOYIsyg== MIME-Version: 1.0 X-Received: by 10.25.91.76 with SMTP id p73mr7004247lfb.67.1460650884454; Thu, 14 Apr 2016 09:21:24 -0700 (PDT) In-Reply-To: <160110091744.ZM585@torch.brasslantern.com> References: <20160110003758.GA28696@tarsus.local2> <160110091744.ZM585@torch.brasslantern.com> Date: Thu, 14 Apr 2016 09:21:24 -0700 Message-ID: Subject: Re: backward-kill-shell-word widget From: Bart Schaefer To: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On Sun, Jan 10, 2016 at 9:17 AM, Bart Schaefer wrote: > > As of 5.0.8 you can do this with: > > backward-kill-shell-word() { > zle select-in-shell-word > ((++CURSOR)) # adjust for vi vs. emacs region > zle kill-region > } > > I'm not sure if that CURSOR adjustment is a a bug or just a necessary > evil because of using vi binding in the emacs keymap. Following up to this because select-in-shell-word has just been fixed to make the increment of CURSOR unnecessary, so as of 5.3 that line should be dropped from the above example function.