From aa83f42f2d228a427c8ad20bbb2dd1c5600cbedc Mon Sep 17 00:00:00 2001 From: pagedown Date: Tue, 29 Mar 2022 16:45:02 +0800 Subject: [PATCH] Avoid using already defined shortcuts in examples --- kitty/boss.py | 10 +++++----- kitty/options/definition.py | 10 ++++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index c4f888572..21a66f03a 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -797,15 +797,15 @@ class Boss: See :sc:`reset_terminal ` for details. For example:: # Reset the terminal - map kitty_mod+f9 clear_terminal reset active + map f1 clear_terminal reset active # Clear the terminal screen by erasing all contents - map kitty_mod+f10 clear_terminal clear active + map f1 clear_terminal clear active # Clear the terminal scrollback by erasing it - map kitty_mod+f11 clear_terminal scrollback active + map f1 clear_terminal scrollback active # Scroll the contents of the screen into the scrollback - map kitty_mod+f12 clear_terminal scroll active + map f1 clear_terminal scroll active # Clear everything up to the line with the cursor - map kitty_mod+f9 clear_terminal to_cursor active + map f1 clear_terminal to_cursor active ''') def clear_terminal(self, action: str, only_active: bool) -> None: if only_active: diff --git a/kitty/options/definition.py b/kitty/options/definition.py index b873acd61..cccf3306f 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -3650,13 +3650,15 @@ map('Reset the terminal', You can create shortcuts to clear/reset the terminal. For example:: # Reset the terminal - map kitty_mod+f9 clear_terminal reset active + map f1 clear_terminal reset active # Clear the terminal screen by erasing all contents - map kitty_mod+f10 clear_terminal clear active + map f1 clear_terminal clear active # Clear the terminal scrollback by erasing it - map kitty_mod+f11 clear_terminal scrollback active + map f1 clear_terminal scrollback active # Scroll the contents of the screen into the scrollback - map kitty_mod+f12 clear_terminal scroll active + map f1 clear_terminal scroll active + # Clear everything up to the line with the cursor + map f1 clear_terminal to_cursor active If you want to operate on all windows instead of just the current one, use :italic:`all` instead of :italic:`active`.