Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_history-complete-older problems with $(
- X-seq: zsh-workers 37546
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: _history-complete-older problems with $(
- Date: Sun, 10 Jan 2016 20:35:56 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=YojSj6eHARhNIvkFmKYy8IRoojcvi2tYWmoRfJoMW5U=; b=di7Gh0l2Y+D4wvUi/F+R/JZ08qSWxeBCLjLH8ObEmMlV1zeNzDhWQD8Il1+sUJyzog EDY08bch+YksZ1ppDBpXJBMZZSJvftUq1buuvNT+aKsfb/TvyWqtms3Nq3Q7bj+yYFaX d1YTKymVCdMneRKGVnqy/hk21S7IENTylFu84Z7HZ+GdzoDZJUfVHChZxUUZcBdTlLnt Qk02cqPulrKe7vEGNVM1acs0CFoVBsmxw1WonR5naEEk+/Kun73uKydVZlCK0fXY9m1u w4YEnMH6jENjbxON3bIbDaPtxG9Xkc/50ntITnZpdWXx0rXXAMQYWOy32MnfyfhUjJZV FJug==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello
$(<Alt-/> doesn't complete $(( 0+1 )) correctly. When I empty my
~/.zhistory and do:
set HISTSIZE=3
a=""
a="${(r:100000:: _:)a}"
echo $(( 0+1 ))
then $<Alt-/> works, but $(<Alt-/> doesn't. The completing is setup with:
setopt hist_lex_words
bindkey "^[/" _history-complete-older
zstyle ':completion:*:history-words' remove-all-dups true
zstyle ':completion:*' range 50000:10000
Also, the remove-all-dups zstyle doesn't work which may be verified by doing:
set HISTSIZE=3
echo $(( 0+1 ))
a="${(r:100000:: _:)a}"
echo $(( 0+1 ))
and doing echo $(<Alt-/> – there will be echo shown twice, so as $(( 0+1 ))
(If I don't empty ~/.zhistory, then Alt-/ sometimes wants me to
propose hundreds of words, apparently taken from ~/.zhistory, so this
ignores HISTSIZE).
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author