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 23342
- 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 11:15:46 +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=U2O4L2tq9tDBeEtbEJmKGKuCHaM=; b=eJp XJV0rLSs/3RT7C1ou4wPjDilSLdEdKxNggmYyTAQavDJW310XtceB3r9dFsbsUkC ZWx1OoIJsiiN0J7wohjGe7cBLHVlpw1KtIJbU6o3nHaEZAcl4uPIvuRYhF5Xi7XB AOxakh0gXhppSXDePxyPBo2/dBijTY5G8HH/aOgQ=
- 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=M6rVWvAXeTSJEARdRSI2U6ZGFa56O cjzz5kLri/eZLmbt6W6HoTQsl4Edn0DYfjcJuSQJglU41SDSpFddfEK+crsA6GAL 42bnEbchKICvymiE/UTDm7FdWDpYxnXE0LhibDCC0Qb3EMKdo66O2zcCO4Qb+pjK 9ZiioGu7xjotKU=
- In-reply-to: <20180418094018.54559594@camnpupstephen.cam.scsc.local> (Peter Stephenson's message of "Wed, 18 Apr 2018 09:40:18 +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>
❦ 18 avril 2018 09:40 +0100, Peter Stephenson <p.stephenson@xxxxxxxxxxx> :
>> I sometime hit M-/ by error and this invokes history-complete-older
>> which then blocks when the current word is empty and it takes me 5-10
>> seconds to be able to "kill" it. Is there a way to teach this function
>> to not complete anything on empty (or one-char) input?
>
> I don't think that's a normal effect.
>
> You can try and debug it this way:
>
>
> _debug_history() {
> _complete_debug _history_complete_word
> }
> debug_history .complete-word _debug_history
> bindkey '^[/' _debug_history
Not sure about the second line? debug_history doesn't exist. Shouldn't
it be a "zle" command?
--
Whenever you find that you are on the side of the majority, it is time
to reform.
-- Mark Twain
Messages sorted by:
Reverse Date,
Date,
Thread,
Author