From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25496 invoked by alias); 14 May 2016 21:30:55 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21563 Received: (qmail 23550 invoked from network); 14 May 2016 21:30:54 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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; bh=T+naMsEeGbhn86Q3zP5TBUq7ySXsf/3fTyWCuHAm0oU=; b=0nFhSwc3nyvI7PahXt/LO0AU3CA2cPXN8zMSZcCHpGL7rQxEh8m7DDYRtsd3jcq3uf 0YmmwLuNeA2kDWwdNkH4jir37R/uSVzgahCo81FW3r5okvdbn138k2qhhWlEYc+dFInf V8Bby+A/dQr0UjrTb5LQACC70ilGtRvdU7u1BudzVgIzuEPbs53TlPfk2hgqsespLvve dcy0MW6cqZ4VyAG8SrgDRBTYO2wtB59Cg57OB9CprRRhaJed6tsrmdYG/uaQMua7X8SL Gtc6P+Dmq/p7xOu+NSGSGqrRCK7nO8cfsjNb3s8/Yn1y9hvxisv6BmqX1Wk3HpAxNoig QzDQ== 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:from:date :message-id:subject:to:cc; bh=T+naMsEeGbhn86Q3zP5TBUq7ySXsf/3fTyWCuHAm0oU=; b=mkfnnNDhJWfme/1nIP0tyBqUqfXqMHv/jTEOSAgRmbIN/DnsVo0TAUd6+9Qi8c+dRW OTiipYI+9gk+5a7CzR0UKMO7s9x7V2Dis+rznA6nX0ETzN08vPYzGHFzAQoLoSiwzAAp TcPZl5qY/ySSeF7ezdfIMs3n2QXfjAvKKgW+hl7Ok72FHhD9zTN11/bNNGw4GUXdust+ q3/Jhqf1/zbXWkbsuyoEJVWlapNtMSA/AhIWwk4fHUk7TTgjn4ljA0kB+VeMRpB4CBav nraO8mI6380OYvyDLZzUnipArA5K4sUenJX0n2LsWf8igFcmz8c3WU/dFkBhWsyrb9zA tJcQ== X-Gm-Message-State: AOPr4FW63Pzdd2fN+CSYl9zSkfi3DzhiFhjciTbWgH7c29auOF0ZeAc9M3nTek07FJQIFilMep4zXzK+W+97rA== X-Received: by 10.112.27.233 with SMTP id w9mr8852585lbg.86.1463261452994; Sat, 14 May 2016 14:30:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <160511142150.ZM9063@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Sat, 14 May 2016 23:30:33 +0200 Message-ID: Subject: Re: Rotate shell words widget To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On 13 May 2016 at 11:23, Bart Schaefer wrote: > On Thu, May 12, 2016 at 12:07 AM, Sebastian Gniazdowski > wrote: >> On 11 May 2016 at 23:21, Bart Schaefer wrote: >> The usage is then I think clear, to go to some >> previous word, edit it, and put it in its original place again. > > ... I see that the difference is whether you rotate the last word to > the front or the first word to the end. But why would you rotate the > words in order to edit one, rather than just move the cursor to the > word you want to change? I thought about it as an extension of transpose-words, which I use instead of Alt-b pressed once. Now I see transpose-words can be used to e.g. revert "mv" command by doing opposite rename (not that I didn't use it that way). Well, I always preferred transposing than Alt-b-jumping and cursor keys. Careful positioning with Alt-b and cursor keys, and then Ctrl-E to continue at the end, I don't like it. > Also it looks like this always rotates all the words in the buffer, so > e.g. the last word moves to command position no matter what word the > cursor is on. If the reason is to be able to edit a different word, > wouldn't it make more sense to move the word at the end to the cursor > (or the word at the cursor to the end)? I'm not fully following this, maybe an example? Seems sophisticated, though. Best regards, Sebastian Gniazdowski