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

Exclude history entries? #234

Open
fleimgruber opened this issue Nov 14, 2023 · 2 comments
Open

Exclude history entries? #234

fleimgruber opened this issue Nov 14, 2023 · 2 comments

Comments

@fleimgruber
Copy link

fleimgruber commented Nov 14, 2023

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
Copy link
Owner

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
Copy link
Author

fleimgruber commented Mar 28, 2024

@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?

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

No branches or pull requests

2 participants