Commit graph

13 commits

Author SHA1 Message Date
Geza Lore
8224802bda Use lazy enumeration to keep response time fast.
With HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE, it can take a while to compute
all unique search results, which would normally keep the shell unresponsive
during this computation.

This commit separates the retrieval of all history matches from the
computation of the matches that need to be presented to the user (unique
matches only if HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE is set). The
computation of the matches needing to be displayed is then done lazily,
and only when the user requests a new previously undisplayed result.
This keeps the response time fast while still enabling us to filter for
unique search results.
2016-03-06 10:50:33 +00:00
Suraj N. Kurapati
c4a83561a1 README: add Fedora 21 to fallback up/down bindkey
https://github.com/zsh-users/zsh-history-substring-search/issues/37#issuecomment-96327615
2015-04-26 20:17:10 -07:00
Suraj N. Kurapati
b5c81fd750 README: document HIST_FIND_NO_DUPS as alternative
Elliott Cable wrote:

> HIST_IGNORE_ALL_DUPS doesn't provide the functionality I want;
>
> I don't want my history actually modified; I simply want to skip
> duplicate entries when using my history-substring-search keybind. |=<

https://github.com/zsh-users/zsh-history-substring-search/issues/19#issuecomment-90289051
2015-04-06 17:24:00 -07:00
joe9
98a5e85c2d setopt HIST_IGNORE_ALL_DUPS also fixes #19 and #42 2015-04-06 16:57:21 -07:00
Suraj N. Kurapati
9f9fc7d550 README: MacOSX 10.9 users need to bind ^[[A/B too
Thanks to Andrea Leopardi for reporting this in issue #37.
2014-08-30 10:38:17 -07:00
Suraj N. Kurapati
1e76804052 README: document that ZSH 4.3 or newer is required
closes #24
2013-11-02 12:55:57 -07:00
Arash Rouhani
9c51863eb2 README: $terminfo does not work under Ubuntu 12.04
This gives further advice for keybindings: for some reason, on my Ubuntu
12.04 system, I need to enter `^[[A` but `$terminfo[kcuu1]` gives `^[OA`
2013-09-26 13:24:48 -07:00
Sorin Ionescu
d9b28ed7f9 GH-21: bind arrow key codes according to terminfo 2013-07-05 08:51:14 -07:00
Jon Rogers
99341be866 GH-21: fix bindkey strings for up and down arrows 2013-06-18 23:13:26 -07:00
Suraj N. Kurapati
82fbef5132 drop default key bindings (move them into README)
https://github.com/sorin-ionescu/prezto/issues/422

3c5363ef9b
2013-04-25 14:46:22 -07:00
Sorin Ionescu
ebde030990 GH-12: fix arrow bindkey and support emacs & vicmd 2012-11-21 22:11:32 -08:00
Suraj N. Kurapati
acd181e11f README: update URLs to new zsh-users organization 2011-08-04 14:20:43 -07:00
Suraj N. Kurapati
1ec51023d7 move project description into README & markdownify 2011-08-04 14:19:56 -07:00