zsh-workers
 help / color / mirror / code / Atom feed
* _history-complete-older problems with $(
@ 2016-01-10 19:35 Sebastian Gniazdowski
  2016-01-11 16:21 ` Sebastian Gniazdowski
  2016-01-12  7:57 ` Bart Schaefer
  0 siblings, 2 replies; 24+ messages in thread
From: Sebastian Gniazdowski @ 2016-01-10 19:35 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-01-15  6:26 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-10 19:35 _history-complete-older problems with $( Sebastian Gniazdowski
2016-01-11 16:21 ` Sebastian Gniazdowski
2016-01-12  0:15   ` Bart Schaefer
2016-01-12 13:09     ` Sebastian Gniazdowski
2016-01-12 19:39       ` Bart Schaefer
2016-01-13  1:01         ` Daniel Shahaf
2016-01-13  2:01           ` Bart Schaefer
2016-01-13 16:40             ` Sebastian Gniazdowski
2016-01-14  4:48               ` Bart Schaefer
2016-01-14 11:30                 ` Sebastian Gniazdowski
2016-01-14 11:37                   ` Sebastian Gniazdowski
2016-01-14 11:59                     ` Sebastian Gniazdowski
2016-01-15  3:18                   ` Bart Schaefer
2016-01-15  5:07                     ` Sebastian Gniazdowski
2016-01-15  6:26                     ` Daniel Shahaf
2016-01-14 18:55                 ` Sebastian Gniazdowski
2016-01-14  9:52               ` Sebastian Gniazdowski
2016-01-14 10:14                 ` Sebastian Gniazdowski
2016-01-14 10:55                   ` Sebastian Gniazdowski
2016-01-15  3:05                     ` Bart Schaefer
2016-01-15  6:26                 ` Daniel Shahaf
2016-01-13  1:01       ` Daniel Shahaf
2016-01-13  1:59         ` Bart Schaefer
2016-01-12  7:57 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).