Add some missed actions
This commit is contained in:
parent
7a8fb8f430
commit
c6938c9039
@ -57,6 +57,12 @@ def get_all_actions() -> Dict[str, List[Action]]:
|
||||
if ac.name not in seen:
|
||||
ans.setdefault(ac.group, []).append(ac)
|
||||
seen.add(ac.name)
|
||||
for i, which in enumerate('first second third fourth fifth sixth seventh eighth ninth tenth'.split()):
|
||||
name = f'{which}_window'
|
||||
if name not in seen:
|
||||
seen.add(name)
|
||||
ans['win'].append(Action(name, 'win', f'Focus the {which} window', ''))
|
||||
|
||||
return ans
|
||||
|
||||
|
||||
|
||||
@ -332,6 +332,7 @@ class Boss:
|
||||
return self.add_os_window(startup_session)
|
||||
|
||||
def new_os_window(self, *args: str) -> None:
|
||||
'@ac:win: New OS Window'
|
||||
self._new_os_window(args)
|
||||
|
||||
@property
|
||||
@ -499,6 +500,7 @@ class Boss:
|
||||
self.child_monitor.mark_for_close(window.id)
|
||||
|
||||
def close_tab(self, tab: Optional[Tab] = None) -> None:
|
||||
'@ac:tab: Close the current tab'
|
||||
tab = tab or self.active_tab
|
||||
if tab:
|
||||
self.confirm_tab_close(tab)
|
||||
@ -1901,6 +1903,7 @@ class Boss:
|
||||
tab.remove_window(w)
|
||||
|
||||
def debug_config(self) -> None:
|
||||
'@ac:misc: Show the effective configuration kitty is running with'
|
||||
from .debug_config import debug_config
|
||||
w = self.active_window
|
||||
if w is not None:
|
||||
|
||||
@ -301,6 +301,7 @@ class Tab: # {{{
|
||||
self.relayout()
|
||||
|
||||
def layout_action(self, action_name: str, args: Sequence[str]) -> None:
|
||||
'@ac:lay: Perform a layout specific action. See :doc:`layouts` for details'
|
||||
ret = self.current_layout.layout_action(action_name, args, self.windows)
|
||||
if ret is None:
|
||||
ring_bell()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user