Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rotate shell words widget
- X-seq: zsh-users 21563
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Rotate shell words widget
- Date: Sat, 14 May 2016 23:30:33 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- 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==
- In-reply-to: <CAH+w=7a=n3qx3Vr3SmuU_PCadGeCSgX7vTxzhs1VcDcq0TycNw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCg-UvJNbwxaKDSo813-ibtK1xXH+H+FULsFa+D_qQ_9Q@mail.gmail.com> <160511142150.ZM9063@torch.brasslantern.com> <CAKc7PVCS8G9MV9LoL8Tqvz9F4ZdsrvmaGhzhjvvh8-rchiOspw@mail.gmail.com> <CAH+w=7a=n3qx3Vr3SmuU_PCadGeCSgX7vTxzhs1VcDcq0TycNw@mail.gmail.com>
On 13 May 2016 at 11:23, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, May 12, 2016 at 12:07 AM, Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
>> On 11 May 2016 at 23:21, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author