zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: New widget "transpose-segments"
Date: Tue, 12 Jan 2016 00:09:29 -0800	[thread overview]
Message-ID: <160112000929.ZM6837@torch.brasslantern.com> (raw)
In-Reply-To: <CAKc7PVAeF-krNekXWV-cbOzpZzRgTWt6iORA+BOmqVRWS1B2ag@mail.gmail.com>

On Jan 9,  6:59pm, Sebastian Gniazdowski wrote:
}
} The main difference is working across newlines. Also, the requirement
} to position cursor at beginning of word to transpose is absent. I
} think those two are important.

Patches for both of these sent a little while ago.

} Also, setting word style is not needed.

"select-word-style" is a shortcut for loading the entire set of widgets
based on match-words-by-style.  The style itself defaults properly if
not set.  So this is similar to saying transpose-words-match is better
because "zle -N transpose-segments" would not be needed.

I have no real objection to including either your widget or Daniel's,
but the number of different ways to do the almost but not quote the
same thing begins to be overwhelming (e.g., I would have preferred
that Oliver not make the "vim text objects" into built-ins because
that's also duplicating parts of match-words-by-style, but it was
necesary to be able to have default key bindings).

However, I should note that I would rather that we don't introduce yet
another term ("segments") to mean "shell words".


  parent reply	other threads:[~2016-01-12  8:09 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-09 11:03 Sebastian Gniazdowski
2016-01-09 12:19 ` Jérémie Roquet
2016-01-09 15:56   ` Sebastian Gniazdowski
2016-01-09 15:55 ` Sebastian Gniazdowski
2016-01-09 15:57   ` Sebastian Gniazdowski
2016-01-09 17:22 ` Bart Schaefer
2016-01-09 17:48   ` transpose-words-match (Re: New widget "transpose-segments") Bart Schaefer
2016-01-09 18:03     ` Sebastian Gniazdowski
2016-01-09 18:18       ` Bart Schaefer
2016-01-11 13:13         ` Sebastian Gniazdowski
2016-01-12  6:26           ` Bart Schaefer
2016-01-12  6:46             ` Bart Schaefer
2016-01-12  9:09               ` Sebastian Gniazdowski
2016-01-12  9:39                 ` Sebastian Gniazdowski
2016-01-12  9:23             ` Sebastian Gniazdowski
2016-01-12  9:38               ` Sebastian Gniazdowski
2016-01-12  9:46               ` Peter Stephenson
2016-01-12 19:12               ` Bart Schaefer
2016-01-09 17:59   ` New widget "transpose-segments" Sebastian Gniazdowski
2016-01-09 19:06     ` Sebastian Gniazdowski
2016-01-12  8:13       ` Bart Schaefer
2016-01-12  8:09     ` Bart Schaefer [this message]
2016-01-12  9:50       ` 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=160112000929.ZM6837@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).