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 23341
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: make history-complete-older do nothing on empty string
- Date: Wed, 18 Apr 2018 09:40:18 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180418084021euoutp029a39e97c96b22279749188b3f0aeece3~mew2F_69F0967109671euoutp023
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524040821; bh=WtVxacqF/qafy9vRgl3X4Sfg54hl2Z7JHIWOqEkqxvM=; h=Date:From:To:Subject:In-reply-to:References:From; b=CdIshm4wUfRCU5gb8Wv8xfZ9bjvwQYJpAYfDYoubbUIZNn5ZT5RXsh5R+ECgeCU4m T8dZM/tPCueIIxxN8t9PIwam/bDsfR84vHYHucJgChoSZQjbAuIFNqWrJTdsYKO1pK xwbbi/YUI2BhHNhV+8K8RsWTkDaM628U1XQmCMo4=
- In-reply-to: <m3tvs9um1s.fsf@luffy.cx>
- 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
- Organization: SCSC
- References: <CGME20180418052832epcas2p1df623a44c88edae226f65a2d5edc90f2@epcas2p1.samsung.com> <m3tvs9um1s.fsf@luffy.cx>
On Wed, 18 Apr 2018 07:21:35 +0200
Vincent Bernat <bernat@xxxxxxxx> wrote:
> Hey!
>
> 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?
>
> Thanks!
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
Then when you use the command you should get a log of what it was doing,
though if you have to abort you may well find you have to look for the
most recently created file in /tmp to discover what that was. If
you get anything, post the result.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author