mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
more informative jumpstat
This commit is contained in:
2
autojump
2
autojump
@@ -134,7 +134,7 @@ elif ('--stat','') in optlist:
|
|||||||
a.sort(key=lambda e:e[1])
|
a.sort(key=lambda e:e[1])
|
||||||
for path,count in a[-100:]:
|
for path,count in a[-100:]:
|
||||||
print "%.1f:\t%s" % (count,path)
|
print "%.1f:\t%s" % (count,path)
|
||||||
print "Total key weight: %d" % sum(path_dict.values())
|
print "Total key weight: %d. Number of stored paths: %d" % (sum(path_dict.values()),len(a))
|
||||||
elif ('--import','') in optlist:
|
elif ('--import','') in optlist:
|
||||||
for i in open(args[-1]).readlines():
|
for i in open(args[-1]).readlines():
|
||||||
dicadd(path_dict,i[:-1])
|
dicadd(path_dict,i[:-1])
|
||||||
|
|||||||
Reference in New Issue
Block a user