aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-09-19 14:23:34 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-09-19 14:23:34 +0000
commit1719ff93a75ad886ed53be468f7faa12f530e9f3 (patch)
tree6a6fe43ae0515a7a9f2ce51dcc62ca3788dc33f1 /CHANGELOG.md
parentinput: make wheel events mappable (diff)
selection: add support for selecting the contents of a quote
This patch changes the default of triple clicking, from selecting the current logical row, to first trying to select the contents of the quote under the cursor, and if failing to find a quote, selecting the current row (like before). This is implemented by adding a new key binding, 'select-quote'. It will search for surrounding quote characters, and if one is found on each side of the cursor, the quote is selected. If not, the entire row is selected instead. Subsequent selection operations will behave as if the selection is either a word selection (a quote was found), or a row selection (no quote found). Escaped quote characters are not supported: "foo \" bar" will match 'foo \', and not 'foo " bar'. Mismatched quotes are not custom handled. They will simply not match. Nested quotes ("123 'abc def' 456") are supported. Closes #1364
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 31a28a48..a4730e1b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -55,8 +55,12 @@
* New mouse bindings: `scrollback-up-mouse` and
`scrollback-down-mouse`, bound to `BTN_BACK` and `BTN_FORWARD`
respectively.
+* New key binding: `select-quote`. This key binding selects text
+ between quote characters, and falls back to selecting the entire
+ row ([#1364][1364]).
[1077]: https://codeberg.org/dnkl/foot/issues/1077
+[1364]: https://codeberg.org/dnkl/foot/issues/1364
### Changed
@@ -66,6 +70,10 @@
* `foot-server.service` systemd now checks for
`ConditionEnvironment=WAYLAND_DISPLAY` for consistency with the
socket unit ([#1448][1448])
+* Default key binding for `select-row` is now `BTN_LEFT+4`. However,
+ in many cases, triple clicking will still be enough to select the
+ entire row; see the new key binding `select-quote` (mapped to
+ `BTN_LEFT+3` by default) ([#1364][1364]).
[1391]: https://codeberg.org/dnkl/foot/issues/1391
[1448]: https://codeberg.org/dnkl/foot/pulls/1448