Merge branch 'bind-shift+insert-to-primary-paste' into master

This commit is contained in:
Daniel Eklöf 2020-10-10 13:05:55 +02:00
commit e54adbfa7c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 6 additions and 2 deletions

View file

@ -37,6 +37,8 @@
* Default value of the **scrollback.multiplier** option in `foot.ini` * Default value of the **scrollback.multiplier** option in `foot.ini`
from `1.0` to `3.0`. 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 ### Deprecated

View file

@ -1795,6 +1795,7 @@ add_default_key_bindings(struct config *conf)
add_binding(BIND_ACTION_SCROLLBACK_DOWN, shift, XKB_KEY_Page_Down); 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_COPY, ctrl_shift, XKB_KEY_C);
add_binding(BIND_ACTION_CLIPBOARD_PASTE, ctrl_shift, XKB_KEY_V); 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_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_plus);
add_binding(BIND_ACTION_FONT_SIZE_UP, ctrl, XKB_KEY_equal); add_binding(BIND_ACTION_FONT_SIZE_UP, ctrl, XKB_KEY_equal);

View file

@ -315,8 +315,8 @@ e.g. *search-start=none*.
Pastes from the _clipboard_. Default: _Control+Shift+V_. Pastes from the _clipboard_. Default: _Control+Shift+V_.
*primary-paste* *primary-paste*
Pastes from the _primary selection_. Default: not bound (to a Pastes from the _primary selection_. Default: _Shift+Insert_ (also
_key_, see *mouse-bindings*). defined in *mouse-bindings*).
*search-start* *search-start*
Starts a scrollback/history search. Default: _Control+Shift+R_. Starts a scrollback/history search. Default: _Control+Shift+R_.

View file

@ -68,6 +68,7 @@
# scrollback-down-line=none # scrollback-down-line=none
# clipboard-copy=Control+Shift+C # clipboard-copy=Control+Shift+C
# clipboard-paste=Control+Shift+V # clipboard-paste=Control+Shift+V
# primary-paste=Shift+Insert
# search-start=Control+Shift+R # search-start=Control+Shift+R
# font-increase=Control+plus Control+equal Control+KP_Add # font-increase=Control+plus Control+equal Control+KP_Add
# font-decrease=Control+minus Control+KP_Subtract # font-decrease=Control+minus Control+KP_Subtract