Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: transpose-words worked for few seconds



On Tue, Dec 22, 2015 at 11:34 AM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author