kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.54k stars 982 forks source link

Rectangular selection not working. #810

Closed josswright closed 6 years ago

josswright commented 6 years ago

Using kitty 0.11.3-2 installed via pacman on Arch Linux.

Rectangular selection doesn't seem to work for me. I have:

rectangle_select_modifiers ctrl+alt

in my kitty.conf, but it doesn't work either in a standard zsh or when running any applications. I've also tried holding down shift as well, as I noticed that that had been added to allow override of mouse grabbing, but that also doesn't work.

maximbaz commented 6 years ago

Strange, works for me using the same package, with or without custom configuration.

kovidgoyal commented 6 years ago

Works for me as well. Run kitty --debug-config and post the output.

josswright commented 6 years ago

Odd. I've now tried it with the Arch kitty package, and the kitty-git package, with my original configuration and with --config NONE. None of them seem to work.

For reference, here's my kitty --debug-config output:

kitty 0.11.3 (ec1c72e9a3) created by Kovid Goyal
Linux lovecraft 4.17.14-arch1-1-ARCH #1 SMP PREEMPT Thu Aug 9 11:56:50 UTC 2018 x86_64
Running under: X11
Arch Linux \r (\l)
LSB_VERSION=1.4
DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
Loaded config files: /home/joss/.config/kitty/kitty.conf

Config options different from defaults:
background           Color(red=6, green=18, blue=41)
bold_font            Source Code Pro Bold
bold_italic_font     Source Code Pro Bold Italic
close_on_child_death True
color0               Color(red=6, green=18, blue=41)
color1               Color(red=208, green=115, blue=70)
color10              Color(red=153, green=191, blue=82)
color11              Color(red=251, green=212, blue=97)
color12              Color(red=82, green=153, blue=191)
color13              Color(red=153, green=137, blue=204)
color14              Color(red=114, green=185, blue=191)
color2               Color(red=153, green=191, blue=82)
color3               Color(red=251, green=212, blue=97)
color4               Color(red=82, green=153, blue=191)
color5               Color(red=153, green=137, blue=204)
color6               Color(red=114, green=185, blue=191)
color7               Color(red=184, green=187, blue=194)
color8               Color(red=113, green=120, blue=133)
color9               Color(red=208, green=115, blue=70)
copy_on_select       True
cursor               Color(red=219, green=221, blue=224)
cursor_shape         3
enable_audio_bell    False
font_family          Source Code Pro
font_size            10.0
foreground           Color(red=184, green=187, blue=194)
italic_font          Source Code Pro Italic
open_url_modifiers   3
scrollback_pager     ['less', '+G', '-R']
url_style            1
visual_bell_duration 0.1
Changed shortcuts:
     shift+control+minus KeyAction(func='decrease_font_size', args=())
     shift+control+equal KeyAction(func='increase_font_size', args=())
     shift+control+e KeyAction(func='kitten', args=['url_hints'])
     shift+control+u KeyAction(func='input_unicode_character', args=())
     shift+control+backspace KeyAction(func='restore_font_size', args=())
kovidgoyal commented 6 years ago

Don't see anything in the config that looks suspicious and if it happens with --config NONE then something else is going on. You can andd some debugging to mouse.c to see what is going on see the update_drag() function.

josswright commented 6 years ago

My fault! No issue here.

I use an external keyboard on my laptop with reprogrammable keymap (Vortex Pok3r) and the left Alt key had somehow been mapped to Meta without me noticing. I only realised when I tried my laptop's internal keyboard on a whim.

Apologies!