|
From: | Manuel Uberti |
Subject: | Re: History completion |
Date: | Thu, 9 Dec 2021 18:40:03 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
On 09/12/21 18:18, Juri Linkov wrote:
One problem is that I can't find a suitable completion style for this that would match on substrings, e.g. "pu re" to match "git pull --rebase". The style ‘flex’ is too lax and matches characters anywhere. The style ‘substring’ is the closest, but it requires moving point to the middle of the string. Maybe a new style ‘substrings’ is needed that would match words separated by space as substrings. Also maybe another style ‘initial-substrings’ that does the same, but only matches word beginnings.
Maybe it could be worth to give orderless[1] a try for this? [1] https://github.com/oantolin/orderless -- Manuel Uberti www.manueluberti.eu
[Prev in Thread] | Current Thread | [Next in Thread] |