mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
config: add ctrl+shift+v and XF86 paste to SEARCH_CLIPBOARD_PASTE
We now bind ctrl+v, ctrl+shift+v, ctrl+y and XF86Paste to pasting from the clipboard into the scrollback search buffer. Why all these? Because we can, and because all are common shortcuts for pasting: * ctrl+v: “normal” apps use this by default * ctrl+shift+v: used in terminals (including foot) * ctrl+y: Emacs * XF86Paste: special keyboard key, for pasting
This commit is contained in:
parent
0e9ebf433b
commit
aa4c7c5a30
5 changed files with 9 additions and 3 deletions
|
|
@ -44,6 +44,10 @@
|
|||
* Workaround for Sway bug [#6960][sway-6960]: scrollback search and
|
||||
the OSC-555 (“flash”) escape sequence leaves dimmed (search) and
|
||||
yellow (flash) artifacts ([#1046][1046]).
|
||||
* `Control+Shift+v` and `XF86Paste` have been added to the default set
|
||||
of key bindings that paste from the clipboard into the scrollback
|
||||
search buffer. This is in addition to the pre-existing `Control+v`
|
||||
and `Control+y` bindings.
|
||||
|
||||
[sway-6960]: https://github.com/swaywm/sway/issues/6960
|
||||
[1046]: https://codeberg.org/dnkl/foot/issues/1046
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ These are the default shortcuts. See `man foot.ini` and the example
|
|||
: Same as <kbd>ctrl</kbd>+<kbd>w</kbd>, except that the only word
|
||||
separating characters are whitespace characters.
|
||||
|
||||
<kbd>ctrl</kbd>+<kbd>v</kbd>
|
||||
<kbd>ctrl</kbd>+<kbd>v</kbd>, <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>v</kbd>, <kbd>ctrl</kbd>+<kbd>y</kbd>, <kbd>XF86Paste</kbd>
|
||||
: Paste from clipboard into the search buffer.
|
||||
|
||||
<kbd>shift</kbd>+<kbd>insert</kbd>
|
||||
|
|
|
|||
2
config.c
2
config.c
|
|
@ -2686,7 +2686,9 @@ add_default_search_bindings(struct config *conf)
|
|||
{BIND_ACTION_SEARCH_EXTEND_WORD, m_ctrl, {{XKB_KEY_w}}},
|
||||
{BIND_ACTION_SEARCH_EXTEND_WORD_WS, m_ctrl_shift, {{XKB_KEY_w}}},
|
||||
{BIND_ACTION_SEARCH_CLIPBOARD_PASTE, m_ctrl, {{XKB_KEY_v}}},
|
||||
{BIND_ACTION_SEARCH_CLIPBOARD_PASTE, m_ctrl_shift, {{XKB_KEY_v}}},
|
||||
{BIND_ACTION_SEARCH_CLIPBOARD_PASTE, m_ctrl, {{XKB_KEY_y}}},
|
||||
{BIND_ACTION_SEARCH_CLIPBOARD_PASTE, m_none, {{XKB_KEY_XF86Paste}}},
|
||||
{BIND_ACTION_SEARCH_PRIMARY_PASTE, m_shift, {{XKB_KEY_Insert}}},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ default) available; see *foot.ini*(5).
|
|||
Same as *ctrl*+*w*, except that the only word separating
|
||||
characters are whitespace characters.
|
||||
|
||||
*ctrl*+*v*, *ctrl*+*y*
|
||||
*ctrl*+*v*, *ctrl*+*shift*+*v*, *ctrl*+*y*, *XF86Paste*
|
||||
Paste from clipboard into the search buffer.
|
||||
|
||||
*shift*+*insert*
|
||||
|
|
|
|||
2
foot.ini
2
foot.ini
|
|
@ -162,7 +162,7 @@
|
|||
# delete-next-word=Mod1+d Control+Delete
|
||||
# extend-to-word-boundary=Control+w
|
||||
# extend-to-next-whitespace=Control+Shift+w
|
||||
# clipboard-paste=Control+v Control+y
|
||||
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
|
||||
# primary-paste=Shift+Insert
|
||||
|
||||
[url-bindings]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue