Skip to main content

UNKNOWN

Project description

Corrects simple typing errors in commands using Damerau-Levenshtein distance.

Ever typed hg dfif, hg doff or hg banrch? This fixes that.

Some examples of how it helps:

$ hg dfif
Correcting 'dfif' to 'diff'

$ hg brnch
Correcting 'brnch' to 'branch'

Installation & Setup

Installing hg-canttype is simple:

$ pip install hgcanttype

Setup is easy too, just add hgcanttype to your hgrc:

[extensions]
hgcanttype=

You can configure the distance to consider a command “close enough” like so:

[canttype]
distance = 5

The default is 1. Take note that setting the distance too high is a bad idea:

$ hg dfif
Correcting 'dfif' to 'help'

License

As this is a derived work of the Mercurial project, the license is GPLv2+ as per the Mercurial License page.

Change History

1.0.3 (11th March 2014)
  • Removed pointless print statement
1.0.2 (10th March 2014)
  • Fix more typos…
1.0.1 (10th March 2014)
  • Fix typos. The irony.
1.0.0 (10th March 2014)
  • Initial release

Project details


Release history Release notifications

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

This version
History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
hgcanttype-1.0.3.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Mar 10, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page