zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: transpose-words worked for few seconds
Date: Tue, 22 Dec 2015 11:41:45 +0100	[thread overview]
Message-ID: <CAHYJk3T87qnOh2jAo_QNXxJa-2j_rRQC2N0fCjFrM=NJ7xCarA@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVB3RZ0Z9GDikA=i2BDggxVeooO=Oj+m8KKYbPtd_Vh8rw@mail.gmail.com>

On Tue, Dec 22, 2015 at 11:34 AM, Sebastian Gniazdowski
<sgniazdowski@gmail.com> wrote:
> Hello,
> I've added to ~/.zshrc:
>   bindkey "^[t" transpose-words
>
> I use bindkey -v. Pressing Alt-t worked like 5 times, then stopped.
> Now it never works, even after rebotting machine. I think it can be
> assumed that it doesn't work and worked by accident.
>
> Tried without bindkey -v, with bindkey "^Y" instead of "^[t". Entering
> "a b" and pressing key combination doesn't change anything. Entering
> "a b " swaps "b" and the last space, and does this once, without
> swapping back.
>
> Tried on zsh 5.0.2, 5.0.8 and 5.2. OS X.

You have to position the cursor on the first character of the word you
want to transpose with the one before it.

-- 
Mikael Magnusson


  reply	other threads:[~2015-12-22 10:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22 10:34 Sebastian Gniazdowski
2015-12-22 10:41 ` Mikael Magnusson [this message]
2015-12-22 10:49   ` Sebastian Gniazdowski
2015-12-22 10:52   ` Dominik Vogt
2015-12-22 11:15     ` Sebastian Gniazdowski

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='CAHYJk3T87qnOh2jAo_QNXxJa-2j_rRQC2N0fCjFrM=NJ7xCarA@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=sgniazdowski@gmail.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).