From b5c81fd750de9af5ef9d3e7820ab54d121493c52 Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Mon, 6 Apr 2015 17:16:33 -0700 Subject: [PATCH] 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 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 88da883..cdabc77 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,12 @@ default values only after having loaded this script into your ZSH session. values you may assign to this variable. To always receive _unique_ search results, use `setopt HIST_IGNORE_ALL_DUPS`. +Alternatively, use `setopt HIST_FIND_NO_DUPS` which makes this plugin skip +duplicate _adjacent_ search results as you cycle through them---however, this +does not guarantee that search results are unique: if your search results were +"Dog", "Dog", "HotDog", "Dog", then cycling them gives "Dog", "HotDog", "Dog". +Notice that the "Dog" search result appeared twice as you cycled through them! +If you wish to avoid this limitation, then use `setopt HIST_IGNORE_ALL_DUPS`. ------------------------------------------------------------------------------ History