From ae2999740e8b3923685b01dd4878ac240aedc940 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 23 Apr 2022 11:10:09 +0200 Subject: readme: default foot.ini is now installed to /etc/xdg/foot/foot.ini --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index fdf28828..f12de1c8 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ See [INSTALL.md](INSTALL.md). **foot** can be configured by creating a file `$XDG_CONFIG_HOME/foot/foot.ini` (defaulting to `~/.config/foot/foot.ini`). A template for that can usually be found -in `/usr/share/foot/foot.ini` or +in `/etc/xdg/foot/foot.ini` or [here](https://codeberg.org/dnkl/foot/src/branch/master/foot.ini). Further information can be found in foot's man page `foot.ini(5)`. -- cgit v1.3 From ce4fd6df3fe0970db918375145055bd317212b55 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 23 Apr 2022 11:10:37 +0200 Subject: readme: add OSC 22 --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') diff --git a/README.md b/README.md index f12de1c8..9623ffe4 100644 --- a/README.md +++ b/README.md @@ -400,6 +400,7 @@ with the terminal emulator itself. Foot implements the following OSCs: * `OSC 12` - change cursor color * `OSC 17` - change highlight (selection) background color * `OSC 19` - change highlight (selection) foreground color +* `OSC 22` - set the xcursor (mouse) pointer * `OSC 52` - copy/paste clipboard data * `OSC 104` - reset color palette * `OSC 110` - reset default foreground color -- cgit v1.3 From 4ca04079459adcf492aebbd9289277401ed1e4e1 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 23 Apr 2022 11:11:34 +0200 Subject: raedme: add a reference to foot-ctlseq(7) --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 9623ffe4..5b819bf5 100644 --- a/README.md +++ b/README.md @@ -412,6 +412,9 @@ with the terminal emulator itself. Foot implements the following OSCs: * `OSC 777` - desktop notification (only the `;notify` sub-command of OSC 777 is supported.) +See the **foot-ctlseq**(7) man page for a complete list of supported +control sequences. + ## Programmatically checking if running in foot -- cgit v1.3 From aa4c7c5a30a792a9519b971ff14582dc2704b6bc Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 26 Apr 2022 18:34:18 +0200 Subject: config: add ctrl+shift+v and XF86 paste to SEARCH_CLIPBOARD_PASTE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- CHANGELOG.md | 4 ++++ README.md | 2 +- config.c | 2 ++ doc/foot.1.scd | 2 +- foot.ini | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 65dd2542..31c05401 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 5b819bf5..227c528c 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ These are the default shortcuts. See `man foot.ini` and the example : Same as ctrl+w, except that the only word separating characters are whitespace characters. -ctrl+v +ctrl+v, ctrl+shift+v, ctrl+y, XF86Paste : Paste from clipboard into the search buffer. shift+insert diff --git a/config.c b/config.c index 10b899e0..c5fad01a 100644 --- a/config.c +++ b/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}}}, }; diff --git a/doc/foot.1.scd b/doc/foot.1.scd index dfbc6651..837da048 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -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* diff --git a/foot.ini b/foot.ini index abd3c412..21c49174 100644 --- a/foot.ini +++ b/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] -- cgit v1.3