emacs-devel
[Top][All Lists]
Advanced

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

Re: Completions and history


From: Juri Linkov
Subject: Re: Completions and history
Date: Tue, 12 Apr 2022 19:20:02 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>>> I suppose that this has been discussed before... so is there a reason
>>> why this has not been implemented? Should I open a feature request or is
>>> someone already opened?
>>
>> Indeed, this has been discussed recently in
>> https://lists.gnu.org/archive/html/emacs-devel/2021-12/msg00802.html
>> but no feature request was opened, since C-TAB is already taken by
>> file-cache-minibuffer-complete.
>
> At least could we have documented how to enable this and then let the
> user set it? Ivy users will find it comfortable in C-r to substitute the
> Current isearch-backward, other may prefer something else. The default
> binding may be agreed latter.

One problem is that completions are sorted alphabetically that
makes no sense for history items which are sorted chronologically.
So the first thing to do would be to add sorting keys in Completions
that will allow switching the order between alphabetical and unsorted
(history items are in chronological order, so unsorted should keep it)
that will change the value of 'completions-sort'.

Another question: should duplicate history items be retained
in the Completions window when history-delete-duplicates is nil?



reply via email to

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