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

Case-Sensitive search #470

Open
norpol opened this issue Jun 29, 2022 · 5 comments
Open

Case-Sensitive search #470

norpol opened this issue Jun 29, 2022 · 5 comments

Comments

@norpol
Copy link

norpol commented Jun 29, 2022

Is there a way to make atuin search case-sensitive?

I'm often searching in my history for something that is case dependent, for example searching for ssh*-L will usually show me commands with that specific flag, with atuin I'm currently receiving a command that is ssh host-loop.mydomain.com.

@pdecat
Copy link
Contributor

pdecat commented Nov 22, 2022

It is my impression that atuin is already case sensitive, at least for the last few versions.
For example, searching for passcode will return commands containing that word or close matches, but not those containing Passcode. And searching for Passcode will return the one and only command in my history that contain this word.

PS: I came here looking for a way to make it case-insensitive 🙃

@norpol
Copy link
Author

norpol commented Nov 22, 2022

I just run echo passcode and then echo Passcode and it will show both results when I search for Passcode.

I'm using search_mode = "fulltext" in ~/.config/atuin/config.toml.

Ok, if I remove the search_mode I can't do ssh*-L search anymore, but it becomes case sensitive

image

@pdecat
Copy link
Contributor

pdecat commented Nov 22, 2022

Oh, I'm using fuzzy search mode, that must be it.

@ellie
Copy link
Member

ellie commented Nov 22, 2022

Hmm we could add an option for case sensitivity 🤔

Also omg @norpol that's so much history 🤯

Are you having any performance issues?

@dandavison
Copy link

Hi there, I'd also appreciate having case-sensitive search. I'm using --search mode prefix so, for example, when I search for commands starting with "git" I'd ideally like that just to match git commands but not e.g.

GIT_PAGER=less some-non-git-command

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

4 participants