Add some more default keybindings for the hints kitten

This commit is contained in:
Kovid Goyal
2018-04-12 13:01:16 +05:30
parent 1779cdd353
commit c95d1393cc
4 changed files with 49 additions and 17 deletions

View File

@@ -16,8 +16,8 @@ defns = defaultdict(list)
for line in open('kitty/kitty.conf'):
if line.startswith('map '):
_, sc, name = line.split(maxsplit=2)
name = name.rstrip().replace(' ', '_')
defns[name].append('`' + sc + '`')
name = name.rstrip().replace(' ', '_').replace('-', '_')
defns[name].append('`' + sc.replace('>', '') + '`')
defns = [
':sc_{}: pass:quotes[{}]'.format(name, ' or '.join(defns[name]))