mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
Also allow using at-cmd
This commit is contained in:
parent
391e2b8488
commit
555020cfd5
2 changed files with 4 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ def resolve_ref(ref: str, website_url: Callable[[str], str] = website_url) -> st
|
|||
elif ref.startswith('at_'):
|
||||
base = ref.split('_', 1)[1]
|
||||
href = "remote-control/#at-" + base.replace('_', '-')
|
||||
elif ref.startswith('at-'):
|
||||
base = ref.split('-', 1)[1]
|
||||
href = "remote-control/#at-" + base.replace('_', '-')
|
||||
elif ref.startswith('action-group-'):
|
||||
href = f'actions/#{ref}'
|
||||
elif prefix == 'action':
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ class TestBuild(BaseTest):
|
|||
t('#ref=conf-kitty-fonts', f'conf{suffix}#conf-kitty-fonts')
|
||||
t('#ref=conf-kitten-ssh-xxx', f'kittens/ssh{suffix}#conf-kitten-ssh-xxx')
|
||||
t('#ref=at_close_tab', f'remote-control{suffix}#at-close-tab')
|
||||
t('#ref=at-close-tab', f'remote-control{suffix}#at-close-tab')
|
||||
t('#ref=action-copy', f'actions{suffix}#copy')
|
||||
t('#ref=doc-/marks', f'marks{suffix}')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue