Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE force search unique result #162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dangooddd
Copy link

Because HIST_IGNORE_ALL_DUPS cant actually remove all dups with APPEND_HISTORY, INC_APPEND_HISTORY and SHARED_HISTORY options, it is better to have this options actually "ensure" if history got only unique elements. It is better do that with any state of HIST_IGNORE_ALL_DUPS zsh setting

dangooddd added 2 commits June 3, 2024 20:16
…sult with any state if HIST_IGNORE_ALL_DUPS zsh setting
…re is no dups in history, which is not true with SHARED_HISTORY and APPEND_HISTORY zsh options
@dangooddd
Copy link
Author

dangooddd commented Jun 3, 2024

I explain how this plugin works with APPEND_HISTORY and HIST_IGNORE_ALL_DUPS in this comment #19 (comment)

@dangooddd
Copy link
Author

dangooddd commented Jun 5, 2024

How to reproduce:

  • setopt SHARED_HISTORY; setopt HIST_IGNORE_ALL_DUPS
  • open terminal, type any command, then other_command close terminal
  • do step above again
  • now type comm and up arrow twice

In the end you got command twice. I dont find a way to get only unique results in this case without these changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant