From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15829 invoked from network); 21 Oct 2020 03:28:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2020 03:28:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1603250920; b=ltCqaOl/v/f/S21tJfeEnYfCFwXF0aEctGvJpWntxD6sGCDGVUUdFuH98oerV4reMHUUY4R0m+ sSaOGTPkfz2+gQcpR0+3TyzXZJh1K2/jvgfvXMGn6huz7HDyayXh8W/fZEIkk4PdZ1mkypQKzc Jru0u69KQ9WC5RnzSlKv3FYVB+rfwPF4k3BURU/fxVu94xTYO7W+YAUIoW5X9x9yGcYfMGFqtq mNLMWhW2dfRS9b9K2jSiU/MIi3Q5VXoaTiME+srGRHzAcHYslv6lnfWHWv5B4Wk9oG1/NioHaE YExTUROQwDA/y76HYCORSPRzBK/ykZ+75v00EZdKFd5Vow==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (nina.ohnopub.net) smtp.remote-ip=45.79.217.192; dkim=pass header.d=ohnopublishing.net header.s=nina header.a=rsa-sha256; dmarc=none header.from=ohnopublishing.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1603250920; bh=eAepmHKD8v7pgUxzvUWceMxhsSjpvfeXRJQeWpMyg80=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: DKIM-Signature:DKIM-Signature; b=GKIBJ8uNmOgcPlZL9Vvrn8kkgZDe+1pddKJ6CXZ00aW+fNmteh4afOru2YagG+PlWf8qaN9g3s N5BWxOoAqb9HuysBzOTBGP2niNQrMMvlAl0jw0QTGPDYQSVmR/ViCEfV7XxthpeilC7k7wSRPW aDqhghWgt8PCXZOoPqQMijaNADDSqABlAfZzeB8N2a+gI6j5G6owow1n63mQO3G5T7U4rAKfeb Uwji5hQrsElWBj0ZLhVU7qMdc67vmDJSmxIQmzVWia/BasXkz+doMkHFSj4wD9Lft0TjikJmaP Qhg7oi8nQ0a1wuW6er6ONo8GntQaKjLdmepXCfHZwognCw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=eAepmHKD8v7pgUxzvUWceMxhsSjpvfeXRJQeWpMyg80=; b=vQ7Swz3QIEVSzkioPBJ7XPYHak LpbYpHupHIhEo3cxzAXuiwbf4mIZIkht6zz5Lt11Lk5qKnRuc7edZqubifimawTTjVYLYqFBjnIOc IxfhxbmFR8YZmQmHKop8rVEHRBi9lD4huAPdmvoo9FscP/LRVNDILbfwLeb/otLbfuClc68XGB1lK nZc1cB+59b3nJd4Pr3OqgtdWyxWxLvXQ1vAQYAEmKqrJjXex40xFHAWD16ruM/4k7tNoAb1rAk8Js UkwRvJ7SdQG5DdLOUlNRoDeeyKdmj1eymFiu8QWLwYrMTKSCtA3CSYtALM/74MCrvUIcW6OUHJSSX Ayfx/uVw==; Received: from authenticated user by zero.zsh.org with local id 1kV4ne-000Bkv-6A; Wed, 21 Oct 2020 03:28:30 +0000 Authentication-Results: zsh.org; iprev=pass (nina.ohnopub.net) smtp.remote-ip=45.79.217.192; dkim=pass header.d=ohnopublishing.net header.s=nina header.a=rsa-sha256; dmarc=none header.from=ohnopublishing.net; arc=none Received: from nina.ohnopub.net ([45.79.217.192]:39120) by zero.zsh.org with esmtps (TLS1.2:DHE-RSA-AES256-GCM-SHA384:256) id 1kV4nK-000Bbz-Tb; Wed, 21 Oct 2020 03:28:12 +0000 Received: from sam.ohnopub.net (sam.ohnopub.net [71.19.154.18]) by nina.ohnopub.net (Postfix) with ESMTPS id E555964402 for ; Wed, 21 Oct 2020 03:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ohnopublishing.net; s=nina; t=1603250889; bh=eAepmHKD8v7pgUxzvUWceMxhsSjpvfeXRJQeWpMyg80=; h=Date:From:To:Subject; b=mk4eBsOCE1NPYIbjGwSzORtqgFOllnaU8wpOqiS8IGsdB+63gRuPD+AV3iuaKeD+R TUQ8FHkCmV+fl3jSfTiKm1ESlJwTm0p7ryxqwg3WxI+LTto58cvrcTz1+xfu42kF+Y 3KQf0n/tqmgDgXHupz9qr80QIVZW9cGejEYkY4Qg= Received: from gibby.ohnopub.net (c-73-145-3-232.hsd1.mi.comcast.net [73.145.3.232]) by sam.ohnopub.net (Postfix) with ESMTPSA id 043591CF425 for ; Wed, 21 Oct 2020 03:28:07 +0000 (UTC) Date: Wed, 21 Oct 2020 03:28:02 +0000 From: Nathan Phillip Brink To: zsh-workers@zsh.org Subject: emacs-forward-word not emacs-like Message-ID: <20201021032801.GA1808@gibby.ohnopub.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) X-Seq: 47470 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I was trying out zsh due to it being the default/recommended shell on Mac OS X: binki@Nathans-Air ~ % zsh --version zsh 5.7.1 (x86_64-apple-darwin19.0) I checked the reslease notes for 5.8 and did not see anything obviously related to my issue. 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. I found that these behave differently from Emacs and bash. When researching this, I came across https://unix.stackexchange.com/a/106380 . However, the bindings suggested there do not behave the same. Consider the following input text: a-b-c d-e-f If my cursor is positioned at =E2=80=98a=E2=80=99 and I press M-f, bash and= Emacs will move the cursor to point to the first dash =E2=80=98-=E2=80=99 (dash) = (i.e., to immediately after the =E2=80=98a=E2=80=99). zsh=E2=80=99s emacs-forward-wor= d will instead position the cursor immediately after =E2=80=98c=E2=80=99. 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? Could an emacs-kill-word be added along with emacs-emacs-forward-word and emacs-emacs-backward-word which actually behave more like Emacs or something? Would such a patch be accepted? Is thre a way to get this behavior with bindings to a script? Please CC me on replies as I am not subscribed. Thanks! --=20 binki Don=E2=80=99t forget to check for missing or extraneous apostrophes! --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEGEt862m1f9Qrr5r5dDpS6GuoEFAFAl+Pqr8ACgkQdDpS6Guo EFA2AhAAq0t+ThrqE7lTF7RT/N0wj9gKTRgVhhe1YoOQM30XToAqxmM9mR9GULYe VGiXVF5XQdJti7TXrH+lp4QpK/ddLDEThdxnOk+u6knTmpVxSFfGO34XIaill2GC 2OYF/vA3g+oK43yMotXO4gbYPO2yASpxMOMKquF9DyM+0ywoo4l8PhlEO5o2vtc1 vgEmxMW4OILBTYMrqMsUqx3WrpqS0cDuBzp8OVJCVCT7cTWYXKJic4s4nucqBAso qZENP9sLU9FnpoC/KaGCFqXJzTzqfUdnXE2ZLLWL5lyD4nM3Z1OdQFdh0uIiVJpF m6t3b/CT8jYPU/zDN/yQWbQ8SMqwS5ZQ4tV1THravFZalx91N1ff7H7jgy/IPA33 N4KJgRlxSLizOvLOD8D9WTZaljyFirGH3PYAOgWNxP3wFKxWc2bRqNbTB4FaObSf lihpzcttmWoJPEyYA660k4CNSZnrnhS75rzAbULiLofaWBKmQ8Z3/jNgPrjmclMb fYVW0v5fPgK8dG/mDh3gC9LOjoqC5QZckYdvNVuc2XG22o+9YK4I5jM3yk0DDpQL S5IU3nO8nBMxpVJqksXUzyy1UIDc0vcU5EWSbAX681TlzNOII+gOKeF8SN/iorgs KSyzkBsJQGnPMXTeiyEjxQ4FRFp3GDFDRRJ6UI5VGyn4/62UsHU= =kXDu -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--