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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21923 invoked from network); 14 Feb 2021 08:02:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Feb 2021 08:02:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613289736; b=K0cok8VWLyFmXyflKnHkBCyWfUHAs0GlcembiY8pqUWedjY42sXHAk8tiRAZs2GrxJZFZU+oVC 0UheAx/0swE3jS8ZY+VI+Uz/lRZBmcl1r/A6jWOgLYdzFAbFD6m+VmmNrH/b7QsxLRKtR9sZbR 1LsoUIN0vIoCpWGzE3C6mWGBRbIrk4V3ep1uvCWy3mhbrKhYxIVResZkZhtIBOL++OZOXk2lsI DcGf+QKEbTEeRZFLJ5p4aYuKmw6CmEd75Mcb3rKeDiS9tczGC5pNgZNuX5ZnJzpd3fE77SvW/z pj4YpCxb+AjYkjB9coKpEmVfM6k0uUh4c2tr5Jmcp/IqHw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f54.google.com) smtp.remote-ip=209.85.167.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613289736; bh=SLMELG/v31oCOBJkp22lnKw5fiO6tv0neQy2gBoWHoc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:In-Reply-To:Cc:References:Message-ID:Date:Subject: MIME-Version:From:Content-Transfer-Encoding:Content-Type:DKIM-Signature: DKIM-Signature; b=EAnJSQgvSHWbLuBbgKW39d40t9xWgE3hfgmXiNxfUEhgh7FCRUS8xn258hhOXxbOOyB8TNqWF2 hkai9FBCcopKhQsPA7cHjtqabvIe/xUyIdG7iv6mM6JivIQo/EWAhtExucrY4GElhxH/iI4Baq HZpq1N6bPDSTDrb3hCgcCfVzdrScRa4Mb0ycGWDGKxLLeDh1x5eLO6Ug2kSUxCCC9RBE0KxWca gDWzjvwNb93r5ivblUv8mCnVrIck2XCjFJp+fRJBQs3K+Zs7ctjZ20sxlOC8F4wR/DvY6fM4YK ho+jnJkzSDrtDDfD79K+i8gA8cb9GayndHZVkebtJTdKQw==; 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:To:In-Reply-To:Cc:References: Message-Id:Date:Subject:Mime-Version:From:Content-Transfer-Encoding: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=SLMELG/v31oCOBJkp22lnKw5fiO6tv0neQy2gBoWHoc=; b=uQ0AkSBNw+QDa9NSGETFAWSd2K m4KQGL7aF2gPNP7nJX6X7fvrbtSDfOsW61XQ3u4+U3WJlscWhXtDUCL7QAd5tGm3VXa46U1Avl+Yf LceH/X05DLloNskBzfVnbyeIsX5V6n63p/y/y2j94puzJuXZcMP8tM/GvJWXeN5QzowMwEIDzuHZ6 PmTJ30KDpoWstxgrIipVqxqrqQPYSkGvb7PnPpYjYiopwZDpYbH83QGrjZcfMR070JE4lt3WZJggZ cbqV20EyeDzVfUCcZ1UAdV6Tc+7NH+jKOL4tpFqRcpgVG9o63WwM3nULC/iBSt6HXe9lQqp+n+9GG kzq9Cw1g==; Received: from authenticated user by zero.zsh.org with local id 1lBCMA-0009BM-1W; Sun, 14 Feb 2021 08:02:14 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f54.google.com) smtp.remote-ip=209.85.167.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f54.google.com ([209.85.167.54]:45059) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lBCLt-00092S-MH; Sun, 14 Feb 2021 08:01:58 +0000 Received: by mail-lf1-f54.google.com with SMTP id j19so5623146lfr.12 for ; Sun, 14 Feb 2021 00:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=SLMELG/v31oCOBJkp22lnKw5fiO6tv0neQy2gBoWHoc=; b=lK2A55kNfvqW2gszqHG3zyGtfQFZxycUSAKF25rcA1J1Dncgvh9v+k7BrgPJMCDPYP LywptooJoMIo/7sMcNvT16nRV83tT8JL2ZdCjxLwNf4haxspPEWy/09Lp9/6AUbvcwqy zB6C/vr5w27hEak7QMzUfzwrh6G+KDDJl2683oR86JsH7SUNdYmwOE1v7azKtvtCiRgZ LzX2YlMXMeJTzR2nXqfSCZoV4/fZvPQUTOPqdx1a60CAcPrkBQvb6K9zWNc9fqVW4aVR 6Y0PCU60WXIEErsV4+tucyG2wj9QALLr3Y2kwvxsYKWamVQW0gQKZ4RXDKfPMweyJFkS xuXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=SLMELG/v31oCOBJkp22lnKw5fiO6tv0neQy2gBoWHoc=; b=KS620naDWjynCFZunRL6tgBfupscL3/pZbkUG1BH0y6kfBeRFuve2ibfQHSl/R/dsR M7iIPmW3+HNJs8JV5pI7gizmwQ5FzO4NsTP3CjCk0hnGm1sSbMIreHqUfmjYjPi9/uqk /ocfqupvi2GbApi7nn63oMjm73NlDFE/FkjJ4SOaPZaKuNQMi1SUC3AZBPrrVi92utG9 lMAb5H0sHviboyOEq0Lo/8L9sph49Bv5jL/z9iy9OjO29XblGlM3s8SbwIIQ/Cd91Dfm FmC3xuMlLfrF/lpI/xt6vajsmmJd01WCWV++klYybiA2TgWJ1Tfa3fX2ASAnvbGaJdHo 4WpQ== X-Gm-Message-State: AOAM531J+zoRwUHJpfDugxb5QdzbnwwkxF+sDCQ9orMvlosVq/8CyYrB SH/A5LqTY4zjYVEqYhLlYAzV0Tb0OeD5kA== X-Google-Smtp-Source: ABdhPJzgkxIAanwmbIx5oXIoLQVm0os9gsJFNQrhUZXjjJzmY9F/hIvzAW2X+C2TJ6vtAtR1OKIcXg== X-Received: by 2002:ac2:454d:: with SMTP id j13mr5655540lfm.191.1613289716495; Sun, 14 Feb 2021 00:01:56 -0800 (PST) Received: from [192.168.1.20] (hag-tkubng22-50df3e-132.dhcp.inet.fi. [80.223.62.132]) by smtp.gmail.com with ESMTPSA id n1sm2369895lfi.121.2021.02.14.00.01.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Feb 2021 00:01:55 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Marlon Richert Mime-Version: 1.0 (1.0) Subject: Re: Rewrite of zsh-newuser-install Date: Sun, 14 Feb 2021 10:01:54 +0200 Message-Id: <8EB80EEF-A821-4FD5-907A-C5FE32D2432A@gmail.com> References: Cc: Zsh hackers list In-Reply-To: To: Bart Schaefer X-Mailer: iPhone Mail (18D52) X-Seq: 48044 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: > On 14. Feb 2021, at 0.56, Bart Schaefer wrote:= >> Although, I'm starting to think, given the amount of custom key bindings t= he new .zshrc includes by now, would it make more sense to introduce a compl= etely new keymap in the C code? >=20 > This is possibly worth considering, but you're adding bindings in a > bunch of keymaps. =E2=80=9CA bunch=E2=80=9D in this case is two: main & menuselect. But I get y= our point. However, this just highlights an underlying problem in how menuselect curren= tly works: The keybindings one wants in menuselect are closely correlated to= the bindings one wants in the main keymap. But there=E2=80=99s only one men= uselect keymap, which you are not allowed to alias to another keymap. And be= cause there=E2=80=99s only one menuselect keymap, Zsh cannot prepopulate it w= ith too many defaults, because it has to be usablr for both emacs and vi mod= es. So, the user ends up having to define a lot of their keybindings twice t= o be able to get a consistent behavior between main & menuselect.=20 What I would like to see is that menuselect behaves like main: Zsh provides a= couple of defaults for you (say, emacs-menu, vi-menu & perhaps a new friend= ly-menu) and then you alias menuselect to one of those. Could this be done?