Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: make history-complete-older do nothing on empty string
- X-seq: zsh-users 23348
- From: Vincent Bernat <bernat@xxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: make history-complete-older do nothing on empty string
- Date: Wed, 18 Apr 2018 18:15:14 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=postfix; bh=gbL3aHDQZLTzXrsn2JyYjWi2avA=; b=YSS 6Bgfjj/G5GZmWPfp6mrEYUGe/EfdPeSQI98tRw56DgTX6u3xDJphiPcTqAxFfltR pIaOvEccfLI6S02EUY7vXSpe+GPs7eAHZR9OwJAWJOn6bMHkZ08uIKQ5G7uWOAAV ivwUCBhOFiRROpK7nhWyWut/bEUSrp2GfPND1CJg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=postfix; b=JCsSYLRZ2kVoQnDY89zhv8KfEr4O0 PHVF9EuV9v0Wi+xMxtU2PFVpE9Zdk98Lrn9mGdqexAnic1eUmV6pQfWr/6WQiCq8 0ZzY55yjcP5VrJ7U3PAh6cf1lXXex++wl8pDdejxPZimBx7AwjTiQY/8xjwZJDHu l+1xl9xLzq6PJQ=
- In-reply-to: <20180418142845.1b473020@camnpupstephen.cam.scsc.local> (Peter Stephenson's message of "Wed, 18 Apr 2018 14:28:45 +0100")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20180418052832epcas2p1df623a44c88edae226f65a2d5edc90f2@epcas2p1.samsung.com> <m3tvs9um1s.fsf@luffy.cx> <20180418094018.54559594@camnpupstephen.cam.scsc.local> <87in8o6fjx.fsf@luffy.cx> <20180418104555.25fef55b@camnpupstephen.cam.scsc.local> <874lk866zp.fsf@luffy.cx> <20180418135817.7edca58c@camnpupstephen.cam.scsc.local> <20180418142845.1b473020@camnpupstephen.cam.scsc.local>
❦ 18 avril 2018 14:28 +0100, Peter Stephenson <p.stephenson@xxxxxxxxxxx> :
>> So when you interrupted it it was apparently reading in 66742 history
>> words; there's nothing further at the end of the file? (We can tweak
>> complete_debug to add timing info if it's helpful, see below.)
>
> Come to think of it, the fact that it's outputting all those words for
> debug purposes is going to make a big difference, so I'm not sure how
> much this is telling us. If this turns out not to be the crucial point,
> we can disable debugging around it.
There was additional output, but I thought it was meaningless since I
think it shouldn't try to complete at all when the current word is
empty.
For the remaining:
http://paste.debian.net/1020908/
>
>> Is the behaviour acceptable if you use the style, for example:
>>
>> zstyle ':completion:history-words:*' range 100
>>
>> ?
>
> This should give some indication, though.
Yes, with this, it works fast. However, it doesn't use all history
anymore for regular completion. The search is done only on the last 100
items of the history. I would prefer to have complete completion when
there is at least one character in the current word and nothing when
not. I don't think people are interested to expand the empty word with
the content of the history.
In the meantime, this is a good workaround. Thanks!
--
It is a wise father that knows his own child.
-- William Shakespeare, "The Merchant of Venice"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author