diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-10 08:27:42 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-11 17:26:57 +0000 |
| commit | 282af4478413d3c9390a5332e386bd6dc049946b (patch) | |
| tree | 2e36ce8e4c8d9e03e14a44a2f227c133cbfd2f79 | |
| parent | changelog: add contributor (diff) | |
config: bind shift+insert to primary-paste by default
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | config.c | 1 | ||||
| -rw-r--r-- | doc/foot.ini.5.scd | 4 | ||||
| -rw-r--r-- | foot.ini | 1 |
4 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 76c08a10..5747cf99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,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 @@ -1766,6 +1766,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 60da2d67..191c54e3 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -291,8 +291,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_. @@ -66,6 +66,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 |
