From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: Key binding popup interface Date: Tue, 12 Dec 2017 18:56:18 +0000 Message-ID: References: <87r2s3ctxh.fsf@ericabrahamsen.net> <87d13m3jt2.fsf@gmx.us> <87efo2wf0s.fsf@ericabrahamsen.net> <87y3m8s7ym.fsf@gmx.us> <87fu8gwfbr.fsf@nicolasgoaziou.fr> <87k1xs2h0h.fsf@gmx.us> <87zi6nzsxs.fsf@delle7240.chemeng.ucl.ac.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e08267474665e8a0560293557" X-Trace: blaine.gmane.org 1513105040 8667 195.159.176.226 (12 Dec 2017 18:57:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 18:57:20 +0000 (UTC) To: Rasmus , Emacs developers , Oleh Krehel , emacs-org list , Eric S Fraga Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Tue Dec 12 19:57:15 2017 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOpju-0001qE-Jy for geo-emacs-orgmode@m.gmane.org; Tue, 12 Dec 2017 19:57:14 +0100 Original-Received: from localhost ([::1]:60007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOpjy-0008CN-Ie for geo-emacs-orgmode@m.gmane.org; Tue, 12 Dec 2017 13:57:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOpjF-0008B6-UK for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 13:56:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOpjE-0004lk-Pz for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 13:56:33 -0500 Original-Received: from mail-yb0-x236.google.com ([2607:f8b0:4002:c09::236]:46104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOpjC-0004gT-8H; Tue, 12 Dec 2017 13:56:30 -0500 Original-Received: by mail-yb0-x236.google.com with SMTP id g15so1578493ybc.13; Tue, 12 Dec 2017 10:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=HYI63xpona7gqOUpp6jXXA3PjNqpiSHmL7We7V7GAug=; b=dbiXrEABy2gwJBqyPlpikpM1pb7nlEbLiru19JwMcqaiuHp7subKvr+PuDqEs+PN4Y Tc0wplMYaAe452ZA0UajJM4beAZvIRQhkFQtKIwGKvERe9PU9vP2VWQbeA93t10vy3X5 0hvxZpRIEdO6KZZT3A6TbLb8T5UpRuxGwQ8izhaqQ1ccfI/rqw1vx7g00UOuiTLZaqIu HSie5g4z7zZJEEGrkxeR0r+HHJ/kOYhqGWvInG05jgNJrV/bJ/E5g5eRKM5N8kKcurq4 MG6mMYVW82r7G+whUrvfdnKJGMief/fGXRXAunN2YrgeJWcLNrETc6qoWl7Nl+IGvWsP PkeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=HYI63xpona7gqOUpp6jXXA3PjNqpiSHmL7We7V7GAug=; b=lOSINtCctEfR5qroOiGFiTTuwtFiuqoWfmMnYXhSVnulgc/TaOQ8ItjxAY4sBlMLfJ 0481JurYYSODpyht2Jiazm37CKVDNkBE3pXih509w0vhVQ0KMD4z/QniG3fVkWmFJTdM 35l3a8BM//WzUWKj+mhZDz96GSTEl8/DJvBRLPKi0IMUM2SY81VRAua/K2CasDL+WnGL stzKwpOVgypOUlibizP1ck9nkY73+y4ervgh6IVX/pPRGvyeD+o/O3beG96qQkGZgHT+ ZTV0203ui0fe7uWrZndlUixDXNS67I7Ws1Jqu/XBMOG58aihiuAZMmGt+C+Lwlyi/c/a 7x/A== X-Gm-Message-State: AKGB3mJNSuxtKkl7LAngVLPNJxxOr9gclnUJAP4DhyMmOeRWtX97p9ig w0NaqxNOzKvXBm484tqqel443BqFg3S/vOS2Lno= X-Google-Smtp-Source: ACJfBotyp9rtt1W7wnqQDh4xs4LHozzcokugn9WjzPtcbOLpsPT6HByC/YwryJc8MUINScpL5HvsKjdj9looHOkcSNs= X-Received: by 10.37.129.68 with SMTP id j4mr964221ybm.338.1513104989377; Tue, 12 Dec 2017 10:56:29 -0800 (PST) In-Reply-To: <87zi6nzsxs.fsf@delle7240.chemeng.ucl.ac.uk> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c09::236 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.org gmane.emacs.orgmode:117467 gmane.emacs.devel:220940 Archived-At: --089e08267474665e8a0560293557 Content-Type: text/plain; charset="UTF-8" On Tue, Dec 12, 2017 at 1:48 PM Eric S Fraga wrote: > On Tuesday, 12 Dec 2017 at 14:02, Kaushal Modi wrote: > > Copying this on both Emacs devel and Org mode list. Hopefully this > > discussion is eligible for that. > > > > Problem statement: Need to have a pretty interface that shows the > available > > valid key bindings. > > which-key-mode works well for me. > I use which-key too, but that serves a different purpose. which-key shows *all* bindings that begin with a prefix. hydra creates a quick keymap that can be bound to any key of user's choice. Then the user needs to just set that main binding, and all the sub-bindings in that keymap stay the same. - Hydra basics[1] - Projectile hydra example[2] - Rectangle operations[3] (See many more examples in that wiki.) Very vaguely speaking, which-key is a read-only utility, hydra is a create + read utility. We need the "create" portion for the org stucture template replacement discussed on the Org thread. I understand that while hydra cannot be integrated in emacs 26 and so Org cannot immediately start using it, it will be very much useful to many packages in future if first hydra is baked into the emacs core. [1]: https://github.com/abo-abo/hydra/wiki/Basics [2]: https://github.com/abo-abo/hydra/wiki/Projectile [3]: https://github.com/abo-abo/hydra/wiki/Rectangle-Operations -- Kaushal Modi --089e08267474665e8a0560293557 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Dec 12= , 2017 at 1:48 PM Eric S Fraga <es= flists@gmail.com> wrote:
On = Tuesday, 12 Dec 2017 at 14:02, Kaushal Modi wrote:
> Copying this on both Emacs devel and Org mode list. Hopefully this
> discussion is eligible for that.
>
> Problem statement: Need to have a pretty interface that shows the avai= lable
> valid key bindings.

which-key-mode works well for me.

I use= which-key too, but that serves a different purpose.

which-key shows *all* bindings that begin with a prefix.

<= /div>
hydra creates a quick keymap that can be bound to any key of user= 's choice. Then the user needs to just set that main binding, and all t= he sub-bindings in that keymap stay the same.

- Hy= dra basics[1]
- Projectile hydra example[2]
- Rectangle= operations[3]

(See many more examples in that= wiki.)

Very vaguely speaking, which-key is a read= -only utility, hydra is a create + read utility. We need the "create&q= uot; portion for the org stucture template replacement discussed on the Org= thread. I understand that while hydra cannot be integrated in emacs 26 and= so Org cannot immediately start using it, it will be very much useful to m= any packages in future if first hydra is baked into the emacs core.

[2]: https://github.c= om/abo-abo/hydra/wiki/Projectile
-= -

Kaushal Modi

--089e08267474665e8a0560293557--