From 4c242ec5280143fc4f11313675890c3ca3424eee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 12 Jun 2019 13:17:28 +0530 Subject: [PATCH] Document a couple more commands --- kitty/cmds.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/kitty/cmds.py b/kitty/cmds.py index c7ac536fb..945dde195 100644 --- a/kitty/cmds.py +++ b/kitty/cmds.py @@ -353,11 +353,16 @@ def set_window_title(boss, window, payload): argspec='TITLE ...' ) def cmd_set_tab_title(global_opts, opts, args): + ''' + title+: The new title + match: Which tab to change the title of + ''' return {'title': ' '.join(args), 'match': opts.match} def set_tab_title(boss, window, payload): - match = payload['match'] + pg = cmd_set_tab_title.payload_get + match = pg(payload, 'match') if match: tabs = tuple(boss.match_tabs(match)) if not tabs: @@ -379,6 +384,10 @@ def set_tab_title(boss, window, payload): argspec='LAYOUT_NAME' ) def cmd_goto_layout(global_opts, opts, args): + ''' + layout+: The new layout name + match: Which tab to change the layout of + ''' try: return {'layout': args[0], 'match': opts.match} except IndexError: @@ -386,7 +395,8 @@ def cmd_goto_layout(global_opts, opts, args): def goto_layout(boss, window, payload): - match = payload['match'] + pg = cmd_goto_layout.payload_get + match = pg(payload, 'match') if match: if match == 'all': tabs = tuple(boss.all_tabs)