Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
transpose-words-match (Re: New widget "transpose-segments")
- X-seq: zsh-workers 37524
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: transpose-words-match (Re: New widget "transpose-segments")
- Date: Sat, 9 Jan 2016 09:48:33 -0800
- 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:content-type; bh=aP0X9Legv3xG6mYtFq9EnI8oYpH36Ozi9PPKIOy7Acc=; b=bQdi4Qf1G/Jme7hp5Qs/BZ3fmc8HrkeBIqzA0628IgM8MU/DduSKjkywtfT1izVUC/ bmnu7bHOTHmDDwthK2rKdXywxUgxzx8r7G5dlxhGzftjMc74U+uJ9wtLJFbHDYtsZpa7 GO656Ws28W2SZ0tVKQZhgxtivlfugJTcU4vC8GmXKMHUiU3umgSAVbHCLa5I80CuyH+3 iOA4nqwnJ18yg6tLErdUl++CRWlWYblFvakul1CX0n14cJtGYSLKLDj6ewliWVOxQUtp iXcCbGPZv20sAMca0nofJbdmsUSIsylpXuMkyWN61aT6Jf0U1pUvSJo9WMm8a2bmrcgS U3wg==
- In-reply-to: <160109092258.ZM3394@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCVFN2639GkbitXO_yZtqK02zUWH-oLGYBysv6J3TreTg@mail.gmail.com> <160109092258.ZM3394@torch.brasslantern.com>
On Jan 9, 9:22am, I asked:
}
} How does this differ from
}
} zle -N transpose-words transpose-words-match
One difference is that transpose-words-match uses a little more context,
so
% echo two words<alt-t>
does not transpose because the cursor is not between two words, and
% echo "two <alt-t>words"
% echo words" "very
swaps around the space even though it is in the middle of a "shell word".
(In fact it rather appears as though "-subword" matching has been turned
on implicitly even though I did not name the widget that way; there may
very well be a bug.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author