Add full docs for matching windows/tabs to the remote control page
This commit is contained in:
parent
3876d518bd
commit
8a1571f62c
2 changed files with 14 additions and 0 deletions
12
docs/conf.py
12
docs/conf.py
|
|
@ -530,6 +530,18 @@ def generate_default_config(definition: Definition, name: str) -> None:
|
|||
from kitty.actions import as_rst
|
||||
with open('generated/actions.rst', 'w', encoding='utf-8') as f:
|
||||
f.write(as_rst())
|
||||
|
||||
from kitty.rc.base import MATCH_TAB_OPTION, MATCH_WINDOW_OPTION
|
||||
with open('generated/matching.rst', 'w') as f:
|
||||
print('Matching windows', file=f)
|
||||
print('______________________________', file=f)
|
||||
w = 'm' + MATCH_WINDOW_OPTION[MATCH_WINDOW_OPTION.find('Match') + 1:]
|
||||
print('When matching windows,', w, file=f)
|
||||
print('Matching tabs', file=f)
|
||||
print('______________________________', file=f)
|
||||
w = 'm' + MATCH_TAB_OPTION[MATCH_TAB_OPTION.find('Match') + 1:]
|
||||
print('When matching tabs,', w, file=f)
|
||||
|
||||
# }}}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -341,6 +341,8 @@ examples::
|
|||
not id:1
|
||||
(id:2 or id:3) and title:something
|
||||
|
||||
.. include:: generated/matching.rst
|
||||
|
||||
.. toctree::
|
||||
:hidden:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue