From afafe12d5b1ddde24f20d486e970deab2b0a7f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 10 Oct 2020 10:27:42 +0200 Subject: [PATCH] config: bind shift+insert to primary-paste by default --- CHANGELOG.md | 2 ++ config.c | 1 + doc/foot.ini.5.scd | 4 ++-- foot.ini | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ccf0e17..2ec0f8fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,8 @@ * Default value of the **scrollback.multiplier** option in `foot.ini` from `1.0` to `3.0`. +* `shift`+`insert` now pastes from the primary selection by + default. This is in addition to middle-clicking with the mouse. ### Deprecated diff --git a/config.c b/config.c index 3ebb0cae..4dcd2966 100644 --- a/config.c +++ b/config.c @@ -1780,6 +1780,7 @@ add_default_key_bindings(struct config *conf) add_binding(BIND_ACTION_SCROLLBACK_DOWN, shift, XKB_KEY_Page_Down); add_binding(BIND_ACTION_CLIPBOARD_COPY, ctrl_shift, XKB_KEY_C); add_binding(BIND_ACTION_CLIPBOARD_PASTE, ctrl_shift, XKB_KEY_V); + add_binding(BIND_ACTION_PRIMARY_PASTE, shift, XKB_KEY_Insert); add_binding(BIND_ACTION_SEARCH_START, ctrl_shift, XKB_KEY_R); add_binding(BIND_ACTION_FONT_SIZE_UP, ctrl, XKB_KEY_plus); add_binding(BIND_ACTION_FONT_SIZE_UP, ctrl, XKB_KEY_equal); diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 496162e8..4cb9bd28 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -310,8 +310,8 @@ e.g. *search-start=none*. Pastes from the _clipboard_. Default: _Control+Shift+V_. *primary-paste* - Pastes from the _primary selection_. Default: not bound (to a - _key_, see *mouse-bindings*). + Pastes from the _primary selection_. Default: _Shift+Insert_ (also + defined in *mouse-bindings*). *search-start* Starts a scrollback/history search. Default: _Control+Shift+R_. diff --git a/foot.ini b/foot.ini index fea2f2b8..5d9a794e 100644 --- a/foot.ini +++ b/foot.ini @@ -67,6 +67,7 @@ # scrollback-down-line=none # clipboard-copy=Control+Shift+C # clipboard-paste=Control+Shift+V +# primary-paste=Shift+Insert # search-start=Control+Shift+R # font-increase=Control+plus Control+equal Control+KP_Add # font-decrease=Control+minus Control+KP_Subtract