From: Juri Linkov <juri@linkov.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
Clemens <clemens.radermacher@posteo.de>,
emacs-devel@gnu.org
Subject: Re: Sorting command completions by recency
Date: Thu, 18 Feb 2021 19:34:03 +0200 [thread overview]
Message-ID: <87im6pb82g.fsf@mail.linkov.net> (raw)
In-Reply-To: <jwvo8gie7mg.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 17 Feb 2021 15:58:33 -0500")
>> Maybe it would make sense to have a general option to configure this history
>> sorting. When the table doesn't specify its own sorting one could opt in to
>> always sort base on history.
>
> Agreed.
> It'd make sense to have it as a global option, like
> `completion-cycle-threshold` and it would also make sense to be able to
> override it individually via `completion-category-overrides` (which is
> also the case for the cycling behavior).
Todo in minibuffer.el:
;; - for M-x, cycle-sort commands that have no key binding first.
So there are at least 3 possible sort orders:
- alphabetical
- no key binding first
- history sorting
Then the question is how the users could select a sort order.
Maybe either by customization or using a keybinding.
next prev parent reply other threads:[~2021-02-18 17:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-17 17:53 Sorting command completions by recency Juri Linkov
2021-02-17 18:33 ` Lars Ingebrigtsen
2021-02-17 19:55 ` Stefan Monnier
2021-02-17 20:03 ` Clemens
2021-02-17 20:58 ` Stefan Monnier
2021-02-18 17:34 ` Juri Linkov [this message]
2021-02-17 20:09 ` Juri Linkov
2021-02-17 22:02 ` [External] : " Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im6pb82g.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=clemens.radermacher@posteo.de \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).