mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-11 14:45:31 +03:00
Add full docs for matching windows/tabs to the remote control page
This commit is contained in:
parent
3876d518bd
commit
8a1571f62c
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 New Issue
Block a user