mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 22:14:53 +02:00
Docs: Put example commands in code blocks
This commit is contained in:
@@ -53,8 +53,8 @@ class Launch(RemoteCommand):
|
||||
desc = (
|
||||
'Prints out the id of the newly opened window. Any command line arguments'
|
||||
' are assumed to be the command line used to run in the new window, if none'
|
||||
' are provided, the default shell is run. For example:\n'
|
||||
':code:`kitty @ launch --title=Email mutt`'
|
||||
' are provided, the default shell is run. For example::\n\n'
|
||||
' kitty @ launch --title=Email mutt'
|
||||
)
|
||||
options_spec = MATCH_TAB_OPTION + '\n\n' + '''\
|
||||
--no-response
|
||||
|
||||
@@ -34,8 +34,8 @@ class NewWindow(RemoteCommand):
|
||||
' Prints out the id of the newly opened window'
|
||||
' (unless :option:`--no-response` is used). Any command line arguments'
|
||||
' are assumed to be the command line used to run in the new window, if none'
|
||||
' are provided, the default shell is run. For example:\n'
|
||||
':code:`kitty @ new-window --title Email mutt`'
|
||||
' are provided, the default shell is run. For example::\n\n'
|
||||
' kitty @ new-window --title Email mutt'
|
||||
)
|
||||
options_spec = MATCH_TAB_OPTION + '''\n
|
||||
--title
|
||||
|
||||
@@ -27,7 +27,8 @@ class SetBackgroundOpacity(RemoteCommand):
|
||||
desc = (
|
||||
'Set the background opacity for the specified windows. This will only work if you have turned on'
|
||||
' :opt:`dynamic_background_opacity` in :file:`kitty.conf`. The background opacity affects all kitty windows in a'
|
||||
' single OS window. For example: :code:`kitty @ set-background-opacity 0.5`'
|
||||
' single OS window. For example::\n\n'
|
||||
' kitty @ set-background-opacity 0.5'
|
||||
)
|
||||
options_spec = '''\
|
||||
--all -a
|
||||
|
||||
@@ -68,7 +68,8 @@ class SetColors(RemoteCommand):
|
||||
'Set the terminal colors for the specified windows/tabs (defaults to active window).'
|
||||
' You can either specify the path to a conf file'
|
||||
' (in the same format as :file:`kitty.conf`) to read the colors from or you can specify individual colors,'
|
||||
' for example: :code:`kitty @ set-colors foreground=red background=white`'
|
||||
' for example::\n\n'
|
||||
' kitty @ set-colors foreground=red background=white'
|
||||
)
|
||||
options_spec = '''\
|
||||
--all -a
|
||||
|
||||
Reference in New Issue
Block a user