From 9ca84e6b48dff28aef557b795dd03b1935a1bb14 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 15 Feb 2024 16:41:16 +0100 Subject: config: map Control+wheel to font increase/decrease This is in addition to the already existing keyboard shortcuts. Also add missing default keyboard/mouse bindings to readme + foot(1). --- doc/foot.1.scd | 17 ++++++++++++++--- doc/foot.ini.5.scd | 13 +++++++++++-- 2 files changed, 25 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/foot.1.scd b/doc/foot.1.scd index 73c0c2b1..8e2e6a48 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -183,16 +183,16 @@ default) available; see *foot.ini*(5). Paste from _clipboard_ *shift*+*insert* - Paste from the _primary selection_. + Paste from the _primary selection_ *ctrl*+*shift*+*r* Start a scrollback search *ctrl*+*+*, *ctrl*+*=* - Increase font size by 0.5pt + Increase font size *ctrl*+*-* - Decrease font size by 0.5pt + Decrease font size *ctrl*+*0* Reset font size @@ -273,6 +273,10 @@ default) available; see *foot.ini*(5). characters. *left*, triple-click + Selects the everything between enclosing quotes, or the entire row + if not inside a quote. + +*left*, quad-click Selects the entire row *middle* @@ -283,9 +287,16 @@ default) available; see *foot.ini*(5). selection, while hold-and-drag allows you to interactively resize the selection. +*ctrl*+*right* + Extend the current selection, but force it to be character wise, + rather than depending on the original selection mode. + *wheel* Scroll up/down in history +*ctrl*+*wheel* + Increase/decrease font size + ## TOUCHSCREEN *tap* diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index f184eb9a..2c50ca24 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -821,11 +821,11 @@ e.g. *search-start=none*. *font-increase* Increases the font size by 0.5pt. Default: _Control+plus - Control+equal Control+KP\_Add_. + Control+equal Control+KP\_Add_ (also defined in *mouse-bindings*). *font-decrease* Decreases the font size by 0.5pt. Default: _Control+minus - Control+KP\_Subtract_. + Control+KP\_Subtract_ (also defined in *mouse-bindings*). *font-reset* Resets the font size to the default. Default: _Control+0 Control+KP\_0_. @@ -1228,6 +1228,15 @@ actions listed under *key-bindings* can be used here as well. *primary-paste* Pastes from the _primary selection_. Default: _BTN\_MIDDLE_. +*font-increase* + Increases the font size by 0.5pt. Default: _Control+BTN\_BACK_ + (also defined in *key-bindings*). + +*font-decrease* + Decreases the font size by 0.5pt. Default: _Control+BTN\_FORWARD_ + (also defined in *key-bindings*). + + # TWEAK This section is for advanced users and describes configuration options -- cgit v1.3