gitu icon indicating copy to clipboard operation
gitu copied to clipboard

[Bug] Can't select text

Open KaKi87 opened this issue 4 months ago • 4 comments

Hi,

When gitu is not running, I can select anything in my terminal emulator, but when gitu is running, I cannot.

Thanks

KaKi87 avatar Aug 19 '25 00:08 KaKi87

gitu enables mouse reporting, depending on your terminal emulator you can probably hold a modifier (for example, shift or option) to enable text selection when mouse reporting is enabled.

jonathanj avatar Sep 20 '25 18:09 jonathanj

I actually experience the same issue in Tmux with set -g mouse on . I then can't select text with just the mouse. However, triggering mouse selection via my terminal app (Alacritty) does work.

It seemed to have broken in v0.34.0 when the terminal backend was switched over to Termwiz. v0.33.0 does not replicate the same issue. I'm considering reverting this swap back to Crossterm, as it seems more stable, and the reasoning behind using Termwiz (making use of widgets) proved to not be useful anyway.

altsem avatar Sep 20 '25 18:09 altsem

I tried to look up how to disable mouse reporting with termwiz but the documentation seems pretty bad. I tried system_terminal.add_change(…CSI escape codes) but couldn’t manage to get it working, but I’ll admit I was shooting in the dark a lot.

jonathanj avatar Sep 20 '25 23:09 jonathanj

This should be fixed on master now, as long as you have the general.mouse_support setting disabled (the default, currently).

jonathanj avatar Sep 25 '25 11:09 jonathanj