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

support substring pattern mode for history searching #162

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

Conversation

while-loop
Copy link

This PR adds support for different history search mode.

The default mode is left unchanged where using up/down keys will search the State's history via prefixed strings.
We add a new mode where searching will match on the index of the pattern rather than prefix.


This is inspired by the oh-my-zsh zsh-history-substring-search plugin.

This is a clean-room implementation of the Fish shell's history search feature, where you can type in any part of any command from history and then press chosen keys, such as the UP and DOWN arrows, to cycle through matches.

@while-loop while-loop changed the title support pattern mode for history searching support substring pattern mode for history searching Jun 20, 2023
@while-loop while-loop marked this pull request as ready for review June 20, 2023 23:36
@while-loop
Copy link
Author

Hey @peterh 👋
This PR should be good to go 👍. I've been testing this for a few weeks now

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