From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: minibuffer keybinding cheatsheet and launcher Date: Thu, 1 Oct 2020 14:58:18 +0200 Message-ID: <20201001125818.nnaqoeorkp4liavz@Ergus> References: <20201001122322.2uhcq3lqqclzgsnc@E15-2016.optimum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4646"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Boruch Baum Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 01 14:59:28 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNyBE-00015m-Qa for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Oct 2020 14:59:28 +0200 Original-Received: from localhost ([::1]:34864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNyBD-0000IL-Sm for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Oct 2020 08:59:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNyAR-0007no-8f for emacs-devel@gnu.org; Thu, 01 Oct 2020 08:58:39 -0400 Original-Received: from sonic313-13.consmr.mail.bf2.yahoo.com ([74.6.133.123]:45039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNyAN-0004gC-56 for emacs-devel@gnu.org; Thu, 01 Oct 2020 08:58:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1601557109; bh=IVorU7JICoDcXw01fQmh80pLhzVnGWEsRKWEV2TP4uk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=b0SwEThDyiKdnBiUeqQqXWWpTUbELObWzMB7wkFVQFLGgY6HbwyqLZZJDryGIMepANulOWZzu17c3yGDWP5FbupvlXABAB6Vy/N7PDkdMgi4P1U5FK9X14uebDJpGzHCpFrxS2t93mWiTtUBrnfw2W/R8cawLm67mfnrH3XR4p0UKR6aOMONRorfCBI8QSEMy34F1tEmljcCjJrXkEaZ0zLCKV3cAgo6TXMKIvCFcE4QKu5X8InzIZUzoTAl1MHDzLnmlG+IvaVhWBBhUHK5naOjIbkH8YSlywgGNU8TxNWrHp/KsfzHb+E1JdLbeHPJJDp1R9J5WtIW3dBzpb8bdg== X-YMail-OSG: wpZau.cVM1nWNMS9ABz5trC_xRrXGaVgHD5Uj.mEwh9Bu1ebXc.5qiKP7_U19pN 8Zga4TFNpAFZoelAvXKX.WEky8PDKBAC9B5ZtbQOvEDPXeq_ydmE9uOO1RyC3xe57EFjxs6DpcLM 29AtrLoK5PB_X0PnbiJ8Ai9WVWFud9fMNkuMztEWdI2kkLZY4afwL1kj3ZGoZKbjSda1dkzDvEN2 PEmgWi2hixzzbwgbb2USHlsIGNZbiXTMlJTBGkcMXkdjgDbAKrX138KBx6fNAXCSZWQK6Lo6ZcN4 uOaMq7x5AatYHicW5SM0T0iGW9CkS.5qMEXcX9Vynz_WTmybhVoqwzHAZSBp.kftE8n1g_GKTw55 Hp2frJliSy4QokdN7oYHBGSUJuch7aqSTblCGJRSi0OkbCCVPkc5990hsXQ06_TlXhP93p6hRNOJ 22XOftc4JJcanYjnMxM64JU.gdgjPAsid_Hhl8quX99_cKKwosDc.j0Uqdd48Mbb1BMhRRW5wA2W Ozw0p3FFj6xytF7ItMP1z7C23eypnesZ.X6vdh7h1NNj.yZuideg3tRfV5KH1kEy0Wd1kQ3u2f7C h.attT7YXSljsLZEhrcCe4XxRfTS.m1A4AVgfAD5XNVJwp7k9Ec.QcxEvfk.T.EfohdZC1yoavky i3vnwPfVFvfMa5HSoEUnR8bUe3CNzlUzzRjHD_BiTYbBr7rWsUJVHMVksYkN5BJ6VKKP9PjQ1vBe Ka6w.Z2yk4o_TpRbuav6YcEyX8iwN8PwlvFey6wTzuFX.492TkWeEGJKwdJB2U9H1Mj9I2FU54Fy fXVYhGoeZicqZPGI.kj9wy2yWcBVkAyzXhPmqaxPZ0 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Thu, 1 Oct 2020 12:58:29 +0000 Original-Received: by smtp412.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 46e3aa8ce03dd25ccf6329d191f6a862; Thu, 01 Oct 2020 12:58:27 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20201001122322.2uhcq3lqqclzgsnc@E15-2016.optimum.net> X-Mailer: WebService/1.1.16718 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.133.123; envelope-from=spacibba@aol.com; helo=sonic313-13.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/01 08:58:29 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256836 Archived-At: Hi Boruch: I am trying to test the package (because I don't really understand what it does) but I can't make it work I evaluated the code and then M-x key-assist and I got a prompt but after that what should I do? Tab just inserts a tab (no autocompletion), RET says "No choices found", inserting a pattern and TAB shows the commands and the bindings but I can't select anything. BTW: Emacs 28 already has a new variable 'suggest-key-bindings' +++ ** When 'suggest-key-bindings' is non-nil, the completion list of 'M-x' shows equivalent key bindings for all commands that have them. --- Does this functionality overlap somehow with your package? Best, Ergus On Thu, Oct 01, 2020 at 08:23:22AM -0400, Boruch Baum wrote: >Two days ago, I posted to the emacs bug list (#43709) a proposed code >contribution that hasn't gotten much feedback, so here's a summary and link: > > bug#43709: minibuffer keybinding cheatsheet and launcher > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43709 > > If you've ever used packages such as `ivy' or `magit', you've > probably benefited from each's custom combination keybinding > cheatsheet and launcher: `hydra' in the case of `ivy', and > `transient' for `magit'. The current package `key-assist' > attempts to offer a generic and very simple alternative requiring > only the `completing-read' function commonly used in core vanilla > emacs. `key-assist' is trivial to implement "on-the-fly" > interactively for any buffer, and programmatically much simpler > to customize that either `hydra' or `transient'. And did I > mention that it only requires `completing-read'? > >-- >hkp://keys.gnupg.net >CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 >