Searching command with suffix-exact-match ($) doesn't trim commands first, making some commands with trailing spaces unsearchable.
What happened?
Here's a little command in atuin:
You expect file$ to match it right? Wrong!
Let's Tab to see what it really is:
Turns out there's a space after the command (why the space is there is beyond me, atuin probably should have trimmed it when it saves the command). Comparing to another "normal" command makes the difference more clear:
Atuin doctor output
Atuin Doctor
Checking for diagnostics
Please include the output below with any bug reports or issues
{
"atuin": {
"version": "18.3.0",
"sync": null,
"sqlite_version": "3.44.0"
},
"shell": {
"name": "fish",
"default": "fish",
"plugins": [
"atuin"
],
"preexec": "built-in"
},
"system": {
"os": "Darwin",
"arch": "arm64",
"version": "14.5",
"disks": [
{
"name": "Macintosh HD",
"filesystem": "apfs"
},
{
"name": "Macintosh HD",
"filesystem": "apfs"
}
]
}
}
Code of Conduct
[X] I agree to follow this project's Code of Conduct
What did you expect to happen?
Searching command with suffix-exact-match (
$
) doesn't trim commands first, making some commands with trailing spaces unsearchable.What happened?
Here's a little command in atuin:
You expect
file$
to match it right? Wrong!Let's Tab to see what it really is:
Turns out there's a space after the command (why the space is there is beyond me, atuin probably should have trimmed it when it saves the command). Comparing to another "normal" command makes the difference more clear:
Atuin doctor output
Code of Conduct