-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Description
I find myself not being able to copy text some of the time from inside Alacritty.
I have the following keybindings in ~/.config/alacritty/alacritty.yml:
key_bindings:
- { key: Key3, mods: Alt, chars: "#" }
- { key: C, mods: Control|Shift, action: Copy }
- { key: V, mods: Control|Shift, action: Paste }When I press ctrl-shift-C:
- Some of the time nothing at all is copied.
- Some of the time something garbled is copied (e.g. some text that's on screen somewhere but not what I selected, some text that's only part of my selection, some text that crosses the boundary of my selection)
- Some of the time my selection is copied correctly.
Most of the time I'm inside a tmux session when I use Alacritty, but I've reproduced this just fine outside of tmux, so I don't think it's strictly being caused by tmux.
My Alacritty config file sets $TERM to xterm-256color, and my tmux config sets:
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:RGB"
As a result, inside tmux, my $TERM is set to tmux-256color, and outside it's set to xterm-256color.
My tmux config also sets:
set -g mouse on
System
OS: Linux (NixOS)
Version: alacritty 0.8.0
Linux/BSD: X11, none+bspwm with picom compositor
Logs
Keyboard and bindings: alacritty --print-events: alacritty-event-log.txt
ZJaume and christophersherman