From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Rotate shell words widget
Date: Wed, 11 May 2016 14:21:50 -0700 [thread overview]
Message-ID: <160511142150.ZM9063@torch.brasslantern.com> (raw)
In-Reply-To: <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).
next prev parent reply other threads:[~2016-05-11 21:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-11 8:39 Sebastian Gniazdowski
2016-05-11 21:21 ` Bart Schaefer [this message]
2016-05-12 7:07 ` Sebastian Gniazdowski
2016-05-13 9:23 ` Bart Schaefer
2016-05-14 21:30 ` Sebastian Gniazdowski
2016-05-14 22:41 ` René Wilhelm
2016-05-15 10:49 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160511142150.ZM9063@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).