Finish adding shortcuts to docs

This commit is contained in:
Kovid Goyal
2018-06-04 23:16:52 +05:30
parent 429efd70ff
commit 4fa8cb562a
3 changed files with 45 additions and 5 deletions

View File

@@ -163,7 +163,8 @@ def as_conf_file(all_options):
def handle_shortcut(shortcuts):
handle_group(shortcuts[0].group, True)
for sc in shortcuts:
a('map {} {}'.format(sc.key, sc.action_def))
if sc.add_to_default:
a('map {} {}'.format(sc.key, sc.action_def))
if sc.long_text:
a(''), a(render_block(sc.long_text.strip())), a('')