From 27ea36712310c50908275544c86be4b676b71f26 Mon Sep 17 00:00:00 2001 From: pagedown Date: Sat, 24 Sep 2022 12:39:05 +0800 Subject: [PATCH 1/2] Docs: Remove the extra backslashes from the install commands --- docs/binary.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/binary.rst b/docs/binary.rst index 79ee0fd20..1559fb0bb 100644 --- a/docs/binary.rst +++ b/docs/binary.rst @@ -85,7 +85,7 @@ Customizing the installation .. code-block:: sh - _kitty_install_cmd \\ + _kitty_install_cmd \ installer=nightly If you want to install it in parallel to the released kitty specify a @@ -93,14 +93,14 @@ Customizing the installation .. code-block:: sh - _kitty_install_cmd \\ + _kitty_install_cmd \ installer=nightly dest=/some/other/location * You can specify a different install location, with ``dest``: .. code-block:: sh - _kitty_install_cmd \\ + _kitty_install_cmd \ dest=/some/other/location * You can tell the installer not to launch |kitty| after installing it with @@ -108,14 +108,14 @@ Customizing the installation .. code-block:: sh - _kitty_install_cmd \\ + _kitty_install_cmd \ launch=n * You can use a previously downloaded dmg/tarball, with ``installer``: .. code-block:: sh - _kitty_install_cmd \\ + _kitty_install_cmd \ installer=/path/to/dmg or tarball From c54a6b398b0c4ff04dd55429a5569b75419f98dd Mon Sep 17 00:00:00 2001 From: pagedown Date: Sat, 24 Sep 2022 12:43:13 +0800 Subject: [PATCH 2/2] Add some missing no_response for rc commands --- kitty/rc/focus_tab.py | 3 ++- kitty/rc/focus_window.py | 1 + kitty/rc/last_used_layout.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kitty/rc/focus_tab.py b/kitty/rc/focus_tab.py index 60b83cbff..ef73b4237 100644 --- a/kitty/rc/focus_tab.py +++ b/kitty/rc/focus_tab.py @@ -17,6 +17,7 @@ class FocusTab(RemoteCommand): ''' match/str: The tab to focus + no_response/bool: Boolean indicating whether to wait for a response ''' short_desc = 'Focus the specified tab' @@ -32,7 +33,7 @@ using this option means that you will not be notified of failures. argspec = '' def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType: - return {'match': opts.match} + return {'match': opts.match, 'no_response': opts.no_response} def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType: for tab in self.tabs_for_match_payload(boss, window, payload_get): diff --git a/kitty/rc/focus_window.py b/kitty/rc/focus_window.py index 89cc7d3a1..d41428ac5 100644 --- a/kitty/rc/focus_window.py +++ b/kitty/rc/focus_window.py @@ -18,6 +18,7 @@ if TYPE_CHECKING: class FocusWindow(RemoteCommand): ''' match/str: The window to focus + no_response/bool: Boolean indicating whether to wait for a response ''' short_desc = 'Focus the specified window' diff --git a/kitty/rc/last_used_layout.py b/kitty/rc/last_used_layout.py index e00d25de3..2741732d6 100644 --- a/kitty/rc/last_used_layout.py +++ b/kitty/rc/last_used_layout.py @@ -17,6 +17,7 @@ class LastUsedLayout(RemoteCommand): ''' match/str: Which tab to change the layout of all/bool: Boolean to match all tabs + no_response/bool: Boolean indicating whether to wait for a response ''' short_desc = 'Switch to the last used layout' @@ -37,7 +38,7 @@ the command will exit with a success code. ''' + '\n\n\n' + MATCH_TAB_OPTION def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType: - return {'match': opts.match, 'all': opts.all} + return {'match': opts.match, 'all': opts.all, 'no_response': opts.no_response} def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType: for tab in self.tabs_for_match_payload(boss, window, payload_get):