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

[Feature Request] Filter based on context #2481

Open
Mossop opened this issue Dec 12, 2024 · 0 comments
Open

[Feature Request] Filter based on context #2481

Mossop opened this issue Dec 12, 2024 · 0 comments

Comments

@Mossop
Copy link

Mossop commented Dec 12, 2024

You can currently filter based on global, session, host or directory. I think it would be interesting to also be able to filter on some kind of detected context. For example in the directory of any rust project I am likely to be using cargo a lot but I am unlikely to use it elsewhere. I could use directory filtering, but really it is a lot of directories across different hosts that I would like to have shared context.

Likewise when I am working on Firefox development there are a set of commands that I use all the time there but never anywhere else. I could use directory filtering, but the directories differ between different hosts and again I would like to share across all hosts.

I think the most straightforward way to do this would be by using an environment variable to define the context. So ATUIN_CONTEXT=firefox would select the Firefox context and any commands would have that state stored and when filtering it would default to only show those commands. I could then use direnv or equivalent to set that context whenever I'm in the appropriate directory.

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

1 participant