mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
Add a note about the remote_control scroll-window action to the docs for the default scroll actions
This commit is contained in:
parent
cf0a5fb607
commit
a5b0db3219
1 changed files with 4 additions and 4 deletions
|
|
@ -1772,28 +1772,28 @@ class Window:
|
|||
def clear_selection(self) -> None:
|
||||
self.screen.clear_selection()
|
||||
|
||||
@ac('sc', 'Scroll up by one line when in main screen')
|
||||
@ac('sc', 'Scroll up by one line when in main screen. To scroll by different amounts, you can map the remote_control scroll-window action.')
|
||||
def scroll_line_up(self) -> Optional[bool]:
|
||||
if self.screen.is_main_linebuf():
|
||||
self.screen.scroll(SCROLL_LINE, True)
|
||||
return None
|
||||
return True
|
||||
|
||||
@ac('sc', 'Scroll down by one line when in main screen')
|
||||
@ac('sc', 'Scroll down by one line when in main screen. To scroll by different amounts, you can map the remote_control scroll-window action.')
|
||||
def scroll_line_down(self) -> Optional[bool]:
|
||||
if self.screen.is_main_linebuf():
|
||||
self.screen.scroll(SCROLL_LINE, False)
|
||||
return None
|
||||
return True
|
||||
|
||||
@ac('sc', 'Scroll up by one page when in main screen')
|
||||
@ac('sc', 'Scroll up by one page when in main screen. To scroll by different amounts, you can map the remote_control scroll-window action.')
|
||||
def scroll_page_up(self) -> Optional[bool]:
|
||||
if self.screen.is_main_linebuf():
|
||||
self.screen.scroll(SCROLL_PAGE, True)
|
||||
return None
|
||||
return True
|
||||
|
||||
@ac('sc', 'Scroll down by one page when in main screen')
|
||||
@ac('sc', 'Scroll down by one page when in main screen. To scroll by different amounts, you can map the remote_control scroll-window action.')
|
||||
def scroll_page_down(self) -> Optional[bool]:
|
||||
if self.screen.is_main_linebuf():
|
||||
self.screen.scroll(SCROLL_PAGE, False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue