emacs-devel
[Top][All Lists]
Advanced

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

Re: vertical fido-mode


From: João Távora
Subject: Re: vertical fido-mode
Date: Thu, 18 Jun 2020 23:41:18 +0100

On Thu, Jun 18, 2020 at 11:36 PM Juri Linkov <juri@linkov.net> wrote:
>
> >> Or maybe it's possible to navigate history using completion lists?
> >
> > I'm not sure how that would look.
>
> Currently completion is performed on a set of all possible values.
> In addition to this, completion could be performed on a set of
> all previously entered values (history items), or on default items
> (a list of the most useful values).  This shows all 3 possibilities:
>
> (completing-read "Prompt: "
>                  minibuffer-history nil nil nil
>                  'minibuffer-history
>                  minibuffer-history)
>
> M-n - defaults list, M-p - history list, TAB - completion on history list.
>
> In a normal minibuffer maybe there should be a key to switch between
> normal completion, completion on defaults, and completion on history.
> Also maybe another key to sort history items by recency/frequency
> in the completion list.

I think, you are starting to describe incremental reverse history search,
or C-r in normal minibuffers.  It works in icomplete, too, but not too
well in my opinion.  Still, it's better to fix that than to reinvent the wheel.

João



reply via email to

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