Skip to content

JerneV/carp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Carp

For those "Oh Crap!" moments where you mistyped. 🎏

carp corrects a mistyped first subcommand using Fish's existing completions, then runs the corrected command.

> git stauts
# runs: git status

Carp only applies a correction when one completion is the unique closest match within a small edit distance. It leaves ambiguous typos unchanged. To avoid surprising changes to filenames and other values, it only examines the first argument to a command.

Obviously, you also need some kind of shell completion for the command you are using - since Carp uses these completions to guess what you meant.

Installation

Install with Fisher:

fisher install jernev/carp

Carp binds the enter key. On uninstall, it removes that binding and Fish falls back to its preset Enter binding.

Requirements

LICENSE

MIT

About

Typo correction for Fish. 🎏

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages