1
0
mirror of https://github.com/wting/autojump synced 2026-03-02 03:49:26 +00:00

replace install.sh with python version

This commit is contained in:
William Ting
2013-12-30 14:05:24 -06:00
parent 172a74a5e4
commit 7b1c436ec6
3 changed files with 124 additions and 253 deletions

View File

@@ -21,6 +21,7 @@
from __future__ import print_function
from argparse import ArgumentParser
from difflib import SequenceMatcher
from itertools import chain
from math import sqrt
@@ -38,8 +39,6 @@ else:
from itertools import ifilter
from itertools import imap
from argparse import ArgumentParser
from data import dictify
from data import entriefy
from data import Entry
@@ -59,7 +58,7 @@ from utils import sanitize
from utils import surround_quotes
from utils import take
VERSION = 'release-v21.8-alpha1'
VERSION = '21.8-alpha'
FUZZY_MATCH_THRESHOLD = 0.6
TAB_ENTRIES_COUNT = 9
TAB_SEPARATOR = '__'
@@ -102,7 +101,7 @@ def parse_arguments():
help='add path')
parser.add_argument(
'-i', '--increase', metavar='WEIGHT', nargs='?', type=int,
const=20, default=False,
const=10, default=False,
help='increase current directory weight')
parser.add_argument(
'-d', '--decrease', metavar='WEIGHT', nargs='?', type=int,