From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Clemens Newsgroups: gmane.emacs.devel Subject: Re: A different way to interactively pass options to commands Date: Thu, 18 Feb 2021 00:52:54 +0100 Message-ID: <02aea29f-a1d9-d6eb-4878-721aaa38d8e6@posteo.net> References: <878s7m1mo3.fsf@gnus.org> <87ft1u9xhh.fsf@telefonica.net> <87blci9us0.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15001"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: =?UTF-8?Q?=c3=93scar_Fuentes?= , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 18 01:03:56 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCWnS-0003id-A2 for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Feb 2021 01:03:54 +0100 Original-Received: from localhost ([::1]:46984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCWnR-0003lE-99 for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 19:03:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCWcx-0006gX-L1 for emacs-devel@gnu.org; Wed, 17 Feb 2021 18:53:08 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:34931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCWct-0007lb-8v for emacs-devel@gnu.org; Wed, 17 Feb 2021 18:53:03 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3095C2400FB for ; Thu, 18 Feb 2021 00:52:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1613605976; bh=46Qn+RDR2t8qD9IS5hsb/9P7iWl23y38SvCQaRuzwKg=; h=Subject:To:From:Date:From; b=Xsk748jdJm0XtQUOt6su3nsZXs6dJGCLwa2e4yuOIh4EtuZX2l0YVh/CSYD2hGM1H Tp4MB5a/GLtQScn9/TzdMkEMoI+Y63EXahtpi+B08QQR45sHaqvV9iiNM0nQe1qRAL NFuASRDQdbjOhh2XFFc+CjwQG2RTmIQYkx1beLxatMUA6rcfCTVGx+zZJq/PolOViR dtJvqxRP9180bjPOsC1H2mRgL+Y3CGym51QEgp/TIld0suDRYFkxr3hWzkiPxcPbGL +JYqDymkjn1KBq4cGPpc9FHjSvDFuticJ//z6K8R/87m5Zj6ko30YrZ5s2gKFthmpR l1gCNGya3BN6A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dgvm73T65z6tmD; Thu, 18 Feb 2021 00:52:55 +0100 (CET) In-Reply-To: <87blci9us0.fsf@telefonica.net> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=clemera@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265115 Archived-At: > Org suffers from that kind of key binding proliferation, but IIRC most > of them are different actions, although conceptually related (commands > that operate on tags, for instance.) For now I solve those cases with > M-x, ido and the flx algorithm. There is also the nice orderless package: https://github.com/oantolin/orderless It provides a completion-style which is very flexible and also features initialism matching like flx. Internally it uses completion-regexp-list + all-completions so it is very fast. You can even customize individual components by defining dispatchers for example I can append an equal sign to some input ("input=") to match that input literally or for fuzzy matching I use "match~" it is very nice.