Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rotate shell words widget
- X-seq: zsh-users 21550
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Rotate shell words widget
- Date: Wed, 11 May 2016 14:21:50 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=lYYIuI/JGvzLFau9xH5Adp+IGgOyPKmJJ63JgdKHWdQ=; b=zBJkTn04w6LdXMovGDdZGwC5TghVskcK7U5CJjcY0fKbMQrx2+KyKNH0aQJWQ3hVSp 8sLjrWdLSdiPsYRfz3CR4uDUEgAfN7m7mQr63RNALlesEiTUwSFpXJpiBy5Ukm5SESnp 9nN/w8PuJKas1JsaoJJdtnC8tkMYCUTcAaiGXyv0e/CQRW3J05gHVHT2Fcvh3S9SfG3M ul0fvpeHZjqL/u9XNbRNOLbdDc9Th+Vf8ZOlVIUns/SplDAQ3SAWPtsv1eLeX+lu7STs Ut/w1ojei+sef2tPjvxO0B5aktUdZEayKly4+9pTHnOZGn+sL2kjO8pq5q4maHLZfMej pBQQ==
- In-reply-to: <CAKc7PVCg-UvJNbwxaKDSo813-ibtK1xXH+H+FULsFa+D_qQ_9Q@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>
On May 11, 10:39am, Sebastian Gniazdowski wrote:
}
} $(( 1 )) $( 2 ) 3
}
} becomes
}
} 3 $(( 1 )) $( 2 )
What common usage did you have in mind for this?
I presume rotate acts on $RBUFFER and rotate-backwards works on $LBUFFER
(approximately).
Might want to have $NUMERIC mean something, e.g. <ESC 2 ESC r> rotates
the 2nd word after the cursor, <ESC - ESC 2 ESC r> rotates the 2nd
word counting back from the end of the line; invert for <ESC 2 ESC R>.
Or not. Whether that's useful depends on why you want this in the first
place (hence my first question).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author