kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
750 stars 35 forks source link

Exclude history entries? #234

Open fleimgruber opened 7 months ago

fleimgruber commented 7 months ago

When using https://github.com/kelleyma49/PSFzf#reverse-search-through-psreadline-history-default-chord-ctrlr is there a way to exclude entries (e.g. via regexp) so they do not show up as candidates?

kelleyma49 commented 4 months ago

It doesn't support regexps, but you can use inverse-exact-match interactively: https://github.com/junegunn/fzf?tab=readme-ov-file#search-syntax

fleimgruber commented 3 months ago

@kelleyma49 thanks for checking back, how can I set these search terms globally or at least inside env vars in the context of the Ctrl+r that I mentioned?

edit: This is what I use now: $env:FZF_DEFAULT_OPTS += "--query '!.vscode\extensions'" which works, but then shows up initially in every interactive search. Any way to set that outside the interactive search?