Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rotate shell words widget
- X-seq: zsh-users 21564
- From: René Wilhelm <asdf@xxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Rotate shell words widget
- Date: Sun, 15 May 2016 00:41:44 +0200
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uni-koblenz.de; h=content-type:content-type:from:from:subject:subject :message-id:date:date:references:in-reply-to:received :mime-version:received:received:received:received; s=mail; t= 1463265705; x=1465080106; bh=pPOHTEkaRM4mMYvgF8KyWjeNzw25GLmTeUN 3EbIIGxE=; b=Y3nEk+EZedUS/j0ISocfdfdszT2cmts1rdmwx1KTyzvuNlUz3Lq 7sRJSNPR4IAuNznzs+sXkMaPSdcUmmOmi3nvDm+U0z4M1U1WjpSnp7gdFut+Ardi BnbD3MdlHx7SE2vOkMrJnFLKvc2U4TqH6QvG+006LZCLoG/4QQwmDCd0=
- In-reply-to: <CAKc7PVDJ6pSnqJ-four4mPgWm+PoAPzA==y1DxT9R6Luw0=rqw@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> <CAKc7PVDJ6pSnqJ-four4mPgWm+PoAPzA==y1DxT9R6Luw0=rqw@mail.gmail.com>
On 14 May 2016 at 23:30, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
wrote:
> 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.
>
You can prefix most things with a number, like <ESC 2 ESC b> to move the
cursor two words backwards. In conjunction with a little intuitive counting
(https://en.wikipedia.org/wiki/Subitizing), this should allow for pretty
good cursor positioning. Hope that helps.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author