atuin
atuin copied to clipboard
Enable multiple command stats to be shown
These changes extend the stats
subcommand with an --ngram-size
argument, which supports providing statistics for combinations of commands. I have found this useful for identifying the most common combinations of commands as candidates for further automation.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
atuin | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 19, 2023 8:00am |
atuin-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 19, 2023 8:00am |
Hey! Thank you for working on this 🙏
Generally looks good, though I found an issue with unicode.
chars
doesn't handle unicode characters so well, as per the docs:
It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.
As mentioned there, we will probably need to use something like unicode_segmentation instead.
I hope you don't mind me pushing to your branch, but I've added a failing test case to highlight the issue