Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: emacs-forward-word not emacs-like
- X-seq: zsh-workers 47472
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Nathan Phillip Brink <ohnobinki@xxxxxxxxxxxxxxxxxx>
- Subject: Re: emacs-forward-word not emacs-like
- Date: Wed, 21 Oct 2020 13:29:24 -0700
- Archived-at: <https://zsh.org/workers/47472>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-10/CAH%2Bw%3D7auCZq2SjfxYisP04C4nPSnHhH%3DfSegx44oJAQEN5FxkA%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hfBnMe422Z5z6Fzpak/J1HF6hDDaqXXDO/j8fDE/i8Y=; b=EiGDFXfcdfKE8whPS/YOxFB7+Feq6ZGSlnLl30FAIy2rQfDCKJ+TX5hVTprYr4zxQq pt0E0Q1Rao36FUHGwCqC6VmgHZuvljufFosjRa70tKbn6T3of68Hj7zYEAo8SUdO7JL9 epSurkTdQ1bkPmKYPS0jPyfHFqPSv47fxov7yyoLWJD8iY1F6q1XoKk4I6Ii9l9GGjg9 b9LHTpnQvs/yW6MRyIsRzGinZaiHDuP//+/8myO19cjSYhQ2FZ5JKuWl/W8Nl4i33Uki h8vbxX3CdMrdyD0/VmZg1A1vC6aM82Kv3g+G25xQdmAbH9BmX7YWA5fDmV5jbPPJmls5 tyww==
- In-reply-to: <20201021032801.GA1808@gibby.ohnopub.net>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <20201021032801.GA1808@gibby.ohnopub.net>
- Sender: zsh-workers-request@xxxxxxx
On Tue, Oct 20, 2020 at 8:28 PM Nathan Phillip Brink
<ohnobinki@xxxxxxxxxxxxxxxxxx> wrote:
>
> I was trying to write input to a line and move my cursor about using
> M-f and M-b and deleting chunks at a time with M-d. [...]
>
> a-b-c d-e-f
>
> If my cursor is positioned at ‘a’ and I press M-f, bash and Emacs
> will move the cursor to point to the first dash ‘-’ (dash) (i.e., to
> immediately after the ‘a’). zsh’s emacs-forward-word will instead
> position the cursor immediately after ‘c’.
In addition to Lawrence's reference to WORDCHARS, please note that Zsh
generally emulates Gosling Emacs, whereas Bash is patterned more after
GNU Emacs. (I await Chet Ramey's correction of any inaccuracy in the
latter assertion.) The zsh bindings are also somewhat entangled with
the "stty" definitions of word motion, so that people moving to zsh
from the default terminal driver will not be surprised (although
that's a disappearing minority nowadays).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author