Automap a bunch of json fields from identically named options

This commit is contained in:
Kovid Goyal
2022-08-29 12:10:23 +05:30
parent b33a684357
commit ef71b071db
11 changed files with 42 additions and 28 deletions

View File

@@ -17,7 +17,6 @@ class CloseTab(RemoteCommand):
protocol_spec = __doc__ = '''
match/str: Which tab to close
no_response/bool: Boolean indicating whether to wait for a response
self/bool: Boolean indicating whether to close the tab of the window the command is run in
ignore_no_match/bool: Boolean indicating whether no matches should be ignored or return an error
'''

View File

@@ -16,7 +16,6 @@ if TYPE_CHECKING:
class CloseWindow(RemoteCommand):
protocol_spec = __doc__ = '''
match/str: Which window to close
no_response/bool: Boolean indicating whether to wait for a response
self/bool: Boolean indicating whether to close the window the command is run in
ignore_no_match/bool: Boolean indicating whether no matches should be ignored or return an error
'''

View File

@@ -60,6 +60,7 @@ screen edges).
--clear-selection
type=bool-set
Clear the selection in the matched window, if any.

View File

@@ -42,7 +42,6 @@ class Launch(RemoteCommand):
stdin_add_formatting/bool: Boolean indicating whether to add formatting codes to stdin
stdin_add_line_wrap_markers/bool: Boolean indicating whether to add line wrap markers to stdin
spacing/list.str: A list of spacing specifications, see the docs for the set-spacing command
no_response/bool: Boolean indicating whether to send back the window id
marker/str: Specification for marker for new window, for example: "text 1 ERROR"
logo/str: Path to window logo
logo_position/str: Window logo position as string or empty string to use default

View File

@@ -23,7 +23,6 @@ class NewWindow(RemoteCommand):
window_type/choices.kitty.os: One of :code:`kitty` or :code:`os`
new_tab/bool: Boolean indicating whether to open a new tab
tab_title/str: Title for the new tab
no_response/bool: Boolean indicating whether to send back the window id
'''
short_desc = 'Open new window'

View File

@@ -21,7 +21,6 @@ class ScrollWindow(RemoteCommand):
And the second item being either 'p' for pages or 'l' for lines or 'u'
for unscrolling by lines.
match/str: The window to scroll
no_response/bool: Boolean indicating whether to wait for a response
'''
short_desc = 'Scroll the specified windows'

View File

@@ -17,7 +17,6 @@ class SignalChild(RemoteCommand):
protocol_spec = __doc__ = '''
signals/list.str: The signals, a list of names, such as :code:`SIGTERM`, :code:`SIGKILL`, :code:`SIGUSR1`, etc.
match/str: Which windows to send the signals to
no_response/bool: Boolean indicating whether to wait for a response
'''
short_desc = 'Send a signal to the foreground process in the specified windows'