||3 years ago|
|ci||3 years ago|
|docs||3 years ago|
|src||3 years ago|
|.gitignore||3 years ago|
|.travis.yml||3 years ago|
|Cargo.lock||3 years ago|
|Cargo.toml||3 years ago|
|LICENSE||4 years ago|
|README.md||3 years ago|
|dev.bash||3 years ago|
|mcfly-bash.sh||3 years ago|
McFly - fly through your shell history
NOTE: This open source project is pre-alpha. It works-- I'm using it every day-- but I haven't trained the prioritization linear perceptron yet because I'm still gathering training data, so the ordering is suboptimal.
CTRL-Rto bring up a full-screen reverse history search with very smart prioritization.
- Augments your shell history to track return status, timestamp, and execution directory.
- Unicode support throughout.
- Also writes to your existing shell history file so you can stop using McFly whenever you want.
- Simple command to scrub a history item from the database and shell history.
- Designed to be extensible in the future for other shells.
- Written in Rust, so it's fast and reliable.
The key feature of McFly is smart command prioritization. The goal is for the command you want to run to always be one of the suggestions.
When suggesting a command, McFly takes into consideration:
- The directory where you ran the command. You're more likely to run the same command in the same directory in the future.
- What commands you typed before the command (e.g., the command's context).
- How often you run the command.
- When you last ran the command.
- The command's historical exit status. You probably don't want to run old failed commands.
Compile it yourself
- Install Rust 1.29 or later
- Compile with optimizations
cargo build --release
./target/release/mcflyinto a location in your
$PATH. (For example, you could create a directory at
export PATH="$PATH:$HOME/bin"to your
Enable in your shell
. /path/to/this/repository/mcfly-bash.sh to your
To avoid McFly's UI messing up your scrollback history in iTerm2, make sure this option is unchecked:
Future / Upcoming Features
- Add screencast to README.
- Add keyboard shortcut to delete something from the history / make it not get suggested.
- Better prioritization:
- Finish training the linear perceptron after gathering more selection data.
- Learn embeddings per template and use to predict the next embedding, then do approximate nearest neighbor lookup?
- Could train by predicting whether or not one command should follow another and doing gradient descent.
- Learn common command options and autocomplete them in the suggestion UI?
- Sort command line args when coming up with the template matching string.
- Allow suggesting of the last command seen if it's been a while.
- Detect folder renames?