Allow using @selection in the launch cmdline

This commit is contained in:
Kovid Goyal
2019-11-13 10:46:04 +05:30
parent 059786ab66
commit ad2bd1bf63
3 changed files with 14 additions and 2 deletions

View File

@@ -249,7 +249,9 @@ def write_cli_docs(all_kitten_names):
f.write(option_spec_as_rst(
appname='launch', ospec=launch_options_spec, heading_char='_',
message='''\
Launch an arbitrary program in a new kitty window/tab
Launch an arbitrary program in a new kitty window/tab. Note that
if you specify a program-to-run you can use the special placeholder
:code:`@selection` which will be replaced by the current selection.
'''
))
with open('generated/cli-kitty.rst', 'w') as f: