diff --git a/kitty/rc/goto_layout.py b/kitty/rc/goto_layout.py index 9e9332bf2..d4d442777 100644 --- a/kitty/rc/goto_layout.py +++ b/kitty/rc/goto_layout.py @@ -30,7 +30,7 @@ class GotoLayout(RemoteCommand): ' You can use special match value :code:`all` to set the layout in all tabs.' ) options_spec = MATCH_TAB_OPTION - args = RemoteCommand.Args(spec='LAYOUT_NAME', count=1, completion={'names': ('Layouts', layout_names)}, json_field='layout') + args = RemoteCommand.Args(spec='LAYOUT_NAME', count=1, completion={'names': ('Layouts', layout_names)}, json_field='layout', args_choices=layout_names) def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType: if len(args) != 1: