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

Add zsh incremental search widget for atuin #826

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

takac
Copy link
Contributor

@takac takac commented Mar 28, 2023

Add a bash/zsh like reverse history lookup widget that uses atuin as
the backend. This widget tries to stay true to default behaviour of
ctrl-r found in bash and zsh.

To activate the plugin in zsh, source the file, source atuin.isearch.zsh. Then use ctrl-r to activate reverse search. Use
ctrl-r again while in search mode to cycle to previous hits, use
ctrl-f to cycle filter mode (prefix, fuzzy, full-text, skim). Press
enter to select the search hit or ctrl-c or esc to close.

Screenshot 2023-03-28 at 15 23 46

@vercel
Copy link

vercel bot commented Mar 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
atuin ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 30, 2023 at 9:36PM (UTC)

@ellie
Copy link
Member

ellie commented Mar 29, 2023

Nice! A whole bunch of people have been asking for something like this

I'm not sure it would work well in the root of the repo though. We've actually had a few neat shell integrations shared lately, so maybe it's best to centralize them somewhere?

It might be good to have a page in the docs for "integrations" or similar, and we can detail that there! It'll be published to https://atuin.sh once merged, so discoverability will be much better than a file in a git repo.

Add a bash/zsh like reverse history lookup widget that uses `atuin` as
the backend. This widget tries to stay true to default behaviour of
`ctrl-r` found in bash and zsh.

To activate the plugin in zsh, source the file, `source
atuin.isearch.zsh`. Then use `ctrl-r` to activate reverse search. Use
`ctrl-r` again while in search mode to cycle to previous hits, use
`ctrl-f` to cycle filter mode (prefix, fuzzy, full-text, skim). Press
`enter` to select the search hit or `ctrl-c` or `esc` to close.
@ellie
Copy link
Member

ellie commented Oct 18, 2023

Hey! I was just wondering if you planned to work on this any further? 🙏

@takac
Copy link
Contributor Author

takac commented Nov 9, 2023

I use this plugin daily, it works well enough for my own use. Did you want me to put in somewhere specific in the repo, happy to tidy up what I've done.

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.

2 participants