Add new mappable action scroll_prompt_to_bottom

This commit is contained in:
pagedown
2022-02-04 22:52:06 +08:00
parent 9ab2a38d5c
commit a1a0c9ab80
4 changed files with 38 additions and 0 deletions

View File

@@ -1241,6 +1241,10 @@ class Window:
if self.screen.is_main_linebuf():
self.screen.scroll_to_prompt(num_of_prompts)
@ac('sc', 'Scroll prompt to the bottom of the screen')
def scroll_prompt_to_bottom(self) -> None:
self.screen.scroll_prompt_to_bottom()
@ac('mk', 'Toggle the current marker on/off')
def toggle_marker(self, ftype: str, spec: Union[str, Tuple[Tuple[int, str], ...]], flags: int) -> None:
from .marks import marker_from_spec