Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: make history-complete-older do nothing on empty string



 ❦ 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