From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Key binding popup interface Date: Tue, 12 Dec 2017 21:19:07 +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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c08764e1fcd4905602b34c6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOrxS-00033X-BT for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 16:19:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOrxR-0005oK-Av for emacs-orgmode@gnu.org; Tue, 12 Dec 2017 16:19:22 -0500 In-Reply-To: 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 Sender: "Emacs-orgmode" To: Stefan Monnier Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org --94eb2c08764e1fcd4905602b34c6 Content-Type: text/plain; charset="UTF-8" On Tue, Dec 12, 2017 at 4:05 PM Stefan Monnier wrote: > > Problem statement: Need to have a pretty interface that shows the > available > > valid key bindings. > [...] > > Of all those options and more that I've seen out there, hydra.el looks > like > > the most elegant and *configurable* option. > > While Hydra might include the feature you're looking for, AFAICT it does > something else than what you're looking for. > I don't follow "it does something else than what you're looking for". hydra is used to define interfaces to temporary keymaps with well-formatted hints. I have no opinion on that part, but if a part of Hydra would be useful > for other packages, then it'd be good to split it out: for me "Hydra" > means "define a Hydra via defhydra or something like that", so if you > tell me to use Hydra to "show the available valid key bindings", > I wouldn't know where to start. > I meant that use hydra to define such interfaces.. the package authors would need to use hydra to define these interfaces. All the user would need to know is to hit some X binding to get that popup interface. I quickly went though hydra.el.. isn't defhydra mainly what it is? What would you suggest splitting out of that library? -- Kaushal Modi --94eb2c08764e1fcd4905602b34c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Dec 12= , 2017 at 4:05 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> Problem statement: Need to have a pretty interface that sho= ws the available
> valid key bindings.
[...]
> Of all those options and more that I've seen out there, hydra.el l= ooks like
> the most elegant and *configurable* option.

While Hydra might include the feature you're looking for, AFAICT it doe= s
something else than what you're looking for.

<= /div>
I don't follow "it does something else than what you'= ;re looking for". hydra is used to define interfaces to temporary keym= aps with well-formatted hints.

I have no opinion on that part, but if a part of Hydra would be useful
for other packages, then it'd be good to split it out: for me "Hyd= ra"
means "define a Hydra via defhydra or something like that", so if= you
tell me to use Hydra to "show the available valid key bindings",<= br> I wouldn't know where to start.

I m= eant that use hydra to define such interfaces.. the package authors would n= eed to use hydra to define these interfaces. All the user would need to kno= w is to hit some X binding to get that popup interface.

I quickly went though hydra.el.. isn't defhydra mainly what it is= ? What would you suggest splitting out of that library?
--

Kaushal Modi

--94eb2c08764e1fcd4905602b34c6--