Document more shortcuts

This commit is contained in:
Kovid Goyal
2016-12-08 10:50:47 +05:30
parent 520c5701c5
commit 18e65ecb35
3 changed files with 67 additions and 33 deletions

View File

@@ -4,18 +4,20 @@
import os
import re
from collections import defaultdict
base = os.path.dirname(os.path.abspath(__file__))
os.chdir(base)
defns = []
defns = defaultdict(list)
for line in open('kitty/kitty.conf'):
if line.startswith('map '):
_, sc, name = line.split(maxsplit=3)
defns.append(':sc_{}: {}'.format(name, sc))
defns[name].append('`' + sc + '`')
defns = [':sc_{}: pass:quotes[{}]'.format(name, ' or '.join(defns[name])) for name in sorted(defns)]
defns = '\n'.join(defns)
raw = open('README.asciidoc').read()