help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any infrastructure to select one of a few options in Emacs core?


From: Marcin Borkowski
Subject: Re: Any infrastructure to select one of a few options in Emacs core?
Date: Sat, 21 May 2016 22:52:31 +0200
User-agent: mu4e 0.9.16; emacs 25.1.50.1

On 2016-05-14, at 06:18, Emanuel Berg <embe8573@student.uu.se> wrote:

> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> ...
>
> Check out my 'buc' module! (I don't remember why
> I called it that.)
>
> It is actually brilliant. You have a bunch of
> options: A, B, ... N.
>
> Then you have keys on your keyboard: RET, SPC, TAB,
> DEL, that are close and fast and singular.
>
> So there is an association between the options, and
> the keys!
>
> But the genius of it is, if you don't care for any
> of the options displayed and shortcutted, just type!
> Any other char will take away the whole "buc prompt"
> and instead appear as the first char in the input
> string, i.e., an arbitrary string is still inputable!
>
> Also, I added a function so that it works like
> a cache, with the most recently selected option
> always being the leftmost (RET), and then sorted
> rightways... It is an open question if this really is
> beneficial - it can be frustrating as well, if the
> keys keep moving around! It should at least
> be disableable.

Do I get it correctly that you have reinvented hydra?  (Or the other way
round;-).)

Though the idea of sorting by recent-ness is nice.

Thanks!

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]