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

transpose-words-match (Re: New widget "transpose-segments")



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