Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: emacs-forward-word not emacs-like
- X-seq: zsh-workers 47471
- From: Lawrence Velázquez <vq@xxxxxxxxx>
- To: Nathan Phillip Brink <ohnobinki@xxxxxxxxxxxxxxxxxx>
- Subject: Re: emacs-forward-word not emacs-like
- Date: Tue, 20 Oct 2020 23:35:06 -0400
- Archived-at: <https://zsh.org/workers/47471>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-10/54A17F86-83A8-4AF5-B684-F78F0D049E97%40larryv.me>
- Authentication-results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=larryv.me header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=pass header.from=larryv.me; arc=none
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=larryv.me; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm1; bh=R qnsZh6LDtQVP6A03GFPJz4IxMnKyw8wlWRe0CYtUX4=; b=ChqXN5IgJRZYdW5d4 ROEfMnJT3ClVVbDZuKnUvHP6RAudfkF08PLioXmrAu1vNt8YLIbVblHZA97NTB2Z asrj0rIyu/ffGSBrhB2Log+GCoOqsP7W4uC6zJt8VDGCFh0IW4hcFZxaQc1ywJBG PKeEMnf3xjFujTNrX0ORX1ckq6ytT/arSg+Do6DrmFxzgbR/Y1x5tlM2UNr2Gfs1 Y8MTEz1cubfryrvbvRH/w/4zeFn5pm7mwTS+wlcudtk5OXL/b3DkTHp/VYEIlWrL kektoXTZqBOc5Y0JvEZ5h/MldDyy9oN6azl7PWVTp3VL7iWe9KkXHYPL2Y4Dvo+x aZxWA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=RqnsZh6LDtQVP6A03GFPJz4IxMnKyw8wlWRe0CYtU X4=; b=q1G0hMT+bwBp1S4w/oKytfRzK43ymJme+0y0JGWQXH0XQ744pmlYPgEpo fXPb0r70CKuD1jxJt5ffCqsClETFyNDnQwTUYucG3BuMegfZYLM1VwAOdUUqsl4o Y7jb1Z3u41fYM+gDZdz+mI9MSYHvzjEFeO7Vs471VwaCsz39yowczrdlOQ0Inb7e g8Sp9yoPERsv3RhjXc6VOtzBA51AkUGZVD+QL1k+Criu/sIHZCUdtjYCqDl0OZIq tMLt7pTR8u4U0FxiLx+xl5iTogB6aSXTvHVhb5fU2lo0iv/Bum8O4oruW4fCjZOB 0vtSHMdASIL1IBFqMuE+gKn72vmgA==
- 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 Oct 20, 2020, at 11:28 PM, Nathan Phillip Brink <ohnobinki@xxxxxxxxxxxxxxxxxx> wrote:
>
> 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’. M-b mapped to
> emacs-backward-word and M-d mapped to kill-word suffer from the same
> issue where dashes and other punctuation(?) are incorrectly considered
> to be word characters.
>
> Since I am so used to the behavior of Emacs and bash, this divergent
> behavior of zsh for these keys is really disruptive.
>
> Is there a way to get Emacs/bash-style cursor movement for these
> bindings?
Take a look at the WORDCHARS shell variable and try removing any
characters that don't strike your fancy.
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author