From cbdba0b6aac6823fbee64b4065c230aaa2385e52 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Sat, 3 Nov 2018 20:29:40 +0100 Subject: [PATCH] Document how to achieve alternative behavior for Ctrl+L, ref #1113 --- kitty/config_data.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kitty/config_data.py b/kitty/config_data.py index 3234abf63..426c94a7b 100644 --- a/kitty/config_data.py +++ b/kitty/config_data.py @@ -1002,6 +1002,11 @@ You can create shortcuts to clear/reset the terminal. For example:: map kitty_mod+f12 clear_terminal scroll active If you want to operate on all windows instead of just the current one, use :italic:`all` instead of :italic`active`. + +It is also possible to remap Ctrl+L to both scroll the current screen contents into the scrollback buffer +and clear the screen, instead of just clearing the screen:: + + map ctrl+l combine : clear_terminal scroll active : send_text normal,application \x0c ''')) k('send_text', 'ctrl+shift+alt+h', 'send_text all Hello World', _('Send arbitrary text on key presses'), add_to_default=False, long_text=_('''