-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Allow more complex interactive search of history, history command with regex #3136
Comments
I can see a strong argument for supporting regex searching via the |
Agreed. An alternate approach that makes this particular use case possible on the interactive history search is really what I was looking for, especially if the more general regex-based search is possible on the |
I also like regexp searches, so I use this along with fish: https://github.com/junegunn/fzf |
Thanks for the pointer. Indeed, it seems quite useful. It has some issues integrating properly with fish, however. Example: junegunn/fzf#436 Regardless, some basic interactive history improvements directly in fish would still be useful. |
FWIW, I don't believe we should ever implement glob or regex matching for auto-suggestions. That is, what you see when you type some characters and press [up-arrow], [ctrl-P], or otherwise invoke the |
In the past couple of months I've merged changes to the history subsystem to implement case-insensitive searching, display the timestamp, and support interactively deleting multiline commands. All of those should make it into the 2.4.0 release. So now I'm interested in resolving this issue. What do people think about making |
I've implemented the |
It would be nice if when doing a history search, I could start from a regex. For example, if my history contained:
foo bar baz
I should be able to type:
foo.*baz
with anAlt-Up
[1] and findfoo bar baz
.On a related note, even
history --search
doesn't seem to work with regexes -- one has togrep
it for equivalent behavior.[1] I'm not sure if this should be the default behavior or gated behind a separate key combo from a regular history traversal. Perhaps Ctrl-Alt-Up or something like that.
The text was updated successfully, but these errors were encountered: