1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

x11/wayland: restore mouse copying to both clipboard and primary selection

I don't recall changing it to copy to the primary selection only, and
it doesn't feel like it is something I would want anyway, and I think
it generally makes things annoying for all but power users

https://fosstodon.org/@trentskunk@mstdn.social/109808345817367266
This commit is contained in:
Wez Furlong 2023-02-09 12:56:51 -07:00
parent a5b449f364
commit 51e0c1b393
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
3 changed files with 17 additions and 12 deletions

View File

@ -156,6 +156,11 @@ As features stabilize some brief notes about them will accumulate here.
[SpawnCommandInNewWindow](config/lua/keyassignment/SpawnCommandInNewWindow.md)
now accept a position field to control initial gui window position.
[#2976](https://github.com/wez/wezterm/issues/2976)
* X11/Wayland: Mouse based selection once again copies to both the clipboard
and the primary selection. This was the original intended behavior but a
regression in an earlier release changed it by accident and it's been
annoying me ever since. You are welcome to define your own [mouse
bindings](config/mouse.md) if you want to change that behavior.
#### Updated
* Bundled harfbuzz updated to version 6.0.0

View File

@ -37,15 +37,15 @@ NOTE: In the action column, `act` is an alias to `wezterm.action` (to avoid repe
| Single Left Down | `NONE` | `act.SelectTextAtMouseCursor("Cell")` |
| Single Left Down | `SHIFT` | `act.ExtendSelectionToMouseCursor("Cell")` |
| Single Left Down | `ALT` | `act.SelectTextAtMouseCursor("Block")` (*since: 20220624-141144-bd1b7c5d*) |
| Single Left Up | `SHIFT` | `act.CompleteSelectionOrOpenLinkAtMouseCursor("PrimarySelection")` |
| Single Left Up | `NONE` | `act.CompleteSelectionOrOpenLinkAtMouseCursor("PrimarySelection")` |
| Single Left Up | `ALT` | `act.CompleteSelection("PrimarySelection")` (*since: 20220624-141144-bd1b7c5d*) |
| Double Left Up | `NONE` | `act.CompleteSelection("PrimarySelection")` |
| Triple Left Up | `NONE` | `act.CompleteSelection("PrimarySelection")` |
| Single Left Up | `SHIFT` | `act.CompleteSelectionOrOpenLinkAtMouseCursor("ClipboardAndPrimarySelection")` |
| Single Left Up | `NONE` | `act.CompleteSelectionOrOpenLinkAtMouseCursor("ClipboardAndPrimarySelection")` |
| Single Left Up | `ALT` | `act.CompleteSelection("ClipboardAndPrimarySelection")` (*since: 20220624-141144-bd1b7c5d*) |
| Double Left Up | `NONE` | `act.CompleteSelection("ClipboardAndPrimarySelection")` |
| Triple Left Up | `NONE` | `act.CompleteSelection("ClipboardAndPrimarySelection")` |
| Single Left Drag | `NONE` | `act.ExtendSelectionToMouseCursor("Cell")` |
| Single Left Drag | `ALT` | `act.ExtendSelectionToMouseCursor("Block")` (*since: 20220624-141144-bd1b7c5d*) |
| Single Left Down | `ALT+SHIFT` | `act.ExtendSelectionToMouseCursor("Block")` (*since: 20220624-141144-bd1b7c5d*) |
| Single Left Up | `ALT+SHIFT` | `act.CompleteSelection("PrimarySelection")` (*since: 20220624-141144-bd1b7c5d*) |
| Single Left Up | `ALT+SHIFT` | `act.CompleteSelection("ClipboardAndPrimarySelection")` (*since: 20220624-141144-bd1b7c5d*) |
| Double Left Drag | `NONE` | `act.ExtendSelectionToMouseCursor("Word")` |
| Triple Left Drag | `NONE` | `act.ExtendSelectionToMouseCursor("Line")` |
| Single Middle Down | `NONE` | `act.PasteFrom("PrimarySelection")` |
@ -86,7 +86,7 @@ return {
{
event = { Up = { streak = 1, button = 'Left' } },
mods = 'NONE',
action = act.CompleteSelection 'PrimarySelection',
action = act.CompleteSelection 'ClipboardAndPrimarySelection',
},
-- and make CTRL-Click open hyperlinks

View File

@ -152,7 +152,7 @@ impl InputMap {
button: MouseButton::Left
},
CompleteSelectionOrOpenLinkAtMouseCursor(
ClipboardCopyDestination::PrimarySelection
ClipboardCopyDestination::ClipboardAndPrimarySelection
)
],
[
@ -166,7 +166,7 @@ impl InputMap {
button: MouseButton::Left
},
CompleteSelectionOrOpenLinkAtMouseCursor(
ClipboardCopyDestination::PrimarySelection
ClipboardCopyDestination::ClipboardAndPrimarySelection
)
],
[
@ -179,7 +179,7 @@ impl InputMap {
streak: 1,
button: MouseButton::Left
},
CompleteSelection(ClipboardCopyDestination::PrimarySelection)
CompleteSelection(ClipboardCopyDestination::ClipboardAndPrimarySelection)
],
[
MouseEventTriggerMods {
@ -217,7 +217,7 @@ impl InputMap {
streak: 2,
button: MouseButton::Left
},
CompleteSelection(ClipboardCopyDestination::PrimarySelection)
CompleteSelection(ClipboardCopyDestination::ClipboardAndPrimarySelection)
],
[
MouseEventTriggerMods {
@ -229,7 +229,7 @@ impl InputMap {
streak: 3,
button: MouseButton::Left
},
CompleteSelection(ClipboardCopyDestination::PrimarySelection)
CompleteSelection(ClipboardCopyDestination::ClipboardAndPrimarySelection)
],
[
MouseEventTriggerMods {