mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Add full docs for matching windows/tabs to the remote control page
This commit is contained in:
12
docs/conf.py
12
docs/conf.py
@@ -530,6 +530,18 @@ def write_conf_docs(app: Any, all_kitten_names: Iterable[str]) -> None:
|
|||||||
from kitty.actions import as_rst
|
from kitty.actions import as_rst
|
||||||
with open('generated/actions.rst', 'w', encoding='utf-8') as f:
|
with open('generated/actions.rst', 'w', encoding='utf-8') as f:
|
||||||
f.write(as_rst())
|
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
|
not id:1
|
||||||
(id:2 or id:3) and title:something
|
(id:2 or id:3) and title:something
|
||||||
|
|
||||||
|
.. include:: generated/matching.rst
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:hidden:
|
:hidden:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user