Trygve Aaberge
8efe08c45b
Support more mouse buttons for terminal mouse events
...
Previously, the mouse back and forward buttons sent the same codes as
scroll up and down. Now they instead send the same codes as xterm. Mouse
button 10 (in X11 numbering) also now sends the same as xterm, instead
of not sending anything.
This also changes the `send_mouse_event` function which can be called
from kittens to use X11 numbering for mouse buttons instead of what it
previously used, which turns out to be a hybrid of X11 and GLFW. It was
documented to use GLFW numbering, but GLFW doesn't have numbers for
scroll events (that's separate events with x/y offsets) and 4 and 5 in
GLFW is actually back and forward, while `send_mouse_event` interpreted
it as scroll up and down.
That means that this is a breaking change for `send_mouse_event` because
it swaps the number for the middle and right button to be consistent
with X11. I did this because I think it's better to use one consistent
numbering scheme for the function, and because people probably know X11
numbering better than GLFW numbering and GLFW doesn't have numbers for
the scroll buttons.
2020-06-06 14:19:06 +02:00
Trygve Aaberge
c78563b452
Report modifier key state when sending move and drag events to the terminal program
2020-06-06 12:28:42 +02:00
Trygve Aaberge
122e172092
Track modifier state correctly
...
When a modifier key is pressed, that modifier is not included in mods.
When it is released, it is included. Therefore, we have to special case
the modifier keys when storing the modifiers that are active. When a
modifier key is pressed, we add the modifier to
mods_at_last_key_or_button_event, and when it is released, we remove it.
This fixes an issue where move and drag events would still be sent to
the terminal program after pressing shift, but would stop being sent
after releasing shift until another key or button was pressed.
2020-06-06 12:28:42 +02:00
Kovid Goyal
707cb37212
Have the confirm on close also apply to quitting kitty
...
Use a dedicated API for handling quit requests on macOS rather than a
quit canary. Also create a mappable "quit" action for all platforms.
2020-05-18 16:06:40 +05:30
Kovid Goyal
1cf0a8b78e
Allow only a single OS window close confirmation per OS window
2020-05-18 13:56:19 +05:30
Kovid Goyal
3d2cb37af0
Linux: Workaround for broken Nvidia drivers for old cards
...
Fixes #456
2020-05-18 13:41:23 +05:30
Kovid Goyal
09fbd6f5e0
Merge branch 'master' of https://github.com/ahlinc/kitty
2020-05-18 09:59:31 +05:30
Andrew Hlynskyi
474bef65cb
Fixed marks grouping and coloring for simultaneous multi marks definition
2020-05-18 06:53:56 +03:00
Kovid Goyal
e97454c4a5
And ever more coalesce tests
2020-05-17 23:20:26 +05:30
Kovid Goyal
936dc74a27
Some more coalesce tests
2020-05-17 23:08:27 +05:30
Kovid Goyal
362e4266bb
Better coalescing of multiple symbol_maps
...
When specifying multiple symbol_map values in kitty.conf later ones
should override conflicting previous ones. Fixes #2662
2020-05-17 23:03:28 +05:30
Kovid Goyal
d08f2e10f1
Add bug label to bug bug report template
2020-05-17 13:12:35 +05:30
Kovid Goyal
f1e5ee74a6
Add a feature request template
2020-05-17 13:11:23 +05:30
Kovid Goyal
7832d33348
Add a bug report template
2020-05-17 13:07:49 +05:30
Kovid Goyal
de25f94fae
When extending selections to words, recognize ://
...
As part of the word even if : is not in select_word_chars. This allows
double-clicking to select common URLs with the default select_word_chars
2020-05-16 13:49:39 +05:30
Kovid Goyal
98625e9c36
Add an option confirm_on_os_window_close to ask for confirmation when closing an OS window with multiple kitty windows.
2020-05-15 13:39:58 +05:30
Kovid Goyal
5768cc98b6
...
2020-05-15 13:31:35 +05:30
Kovid Goyal
da1cc6c1c5
Add a yes/no mode to the ask kitten
2020-05-15 13:16:14 +05:30
Kovid Goyal
50384fac97
DRYer
2020-05-14 09:18:29 +05:30
Kovid Goyal
424bd8a6cd
Only compile tab template once
2020-05-14 09:15:11 +05:30
Kovid Goyal
421fae2b57
Merge branch 'fix/tab-title-template-f-string' of https://github.com/chriszarate/kitty
2020-05-14 09:09:18 +05:30
chriszarate
8bb8615a5a
Compile template and restrict globals for eval
2020-05-13 23:30:12 -04:00
Kovid Goyal
80f8692e92
Tall/fat layout: Fix resizing of windows when number of windows is <= num of full size windows not working
2020-05-13 23:33:23 +05:30
Kovid Goyal
25623c758d
Tall and Fat layouts: Add a `mirrored` option to put the full size window on the opposite edge of the screen
...
Fixes #2654
2020-05-13 23:19:34 +05:30
Kovid Goyal
e1a0a195a9
Forgot to change one call site for switch_focus_to
2020-05-13 21:39:26 +05:30
Kovid Goyal
f8cf49a90c
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2020-05-13 17:22:39 +05:30
Luflosi
ac9f8595c9
DRYer
...
Don't write `cppflags.extend()` twice.
2020-05-13 13:43:43 +02:00
Kovid Goyal
97f22bbff6
Update changelog
2020-05-13 11:01:04 +05:30
chriszarate
d6ddfa9d18
Use f-string instead of format for tab_title templates
2020-05-12 22:29:03 -04:00
Kovid Goyal
5e48ae8bac
pep8
2020-05-12 22:54:08 +05:30
Kovid Goyal
cdd943ded4
Port layout tests to new API
2020-05-12 22:43:55 +05:30
Kovid Goyal
39b2bf963c
Port the splits layout to the new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
06827fd437
Update docs to point to new layouts package
2020-05-12 22:43:54 +05:30
Kovid Goyal
70ccc1cf6d
Port Grid layout to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
f801c47d1e
Port vertical/horz layouts to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
01c0e8da93
Tall and Fat layouts ported to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
e844ad6db3
Respect per-window margin/padding in stack layout
...
Also use the margin/padding of the base window for all overlay windows
2020-05-12 22:43:54 +05:30
Kovid Goyal
3f8c042bc3
Preserve active idx when removing windows/tabs
2020-05-12 22:43:54 +05:30
Kovid Goyal
707ad705a4
Notify on active window changed when adding/removing to same group
2020-05-12 22:43:54 +05:30
Kovid Goyal
79a780004f
Remove references to overlay_for from boss
2020-05-12 22:43:54 +05:30
Kovid Goyal
81b28bc1bd
More work on refactoring window groups, stack layout works
2020-05-12 22:43:54 +05:30
Kovid Goyal
e9c4d540b1
More work on refactoring window groups
2020-05-12 22:43:54 +05:30
Kovid Goyal
50d9718c68
Start work on refactoring management of windows
2020-05-12 22:43:53 +05:30
Kovid Goyal
e39da2b2bb
Merge branch 'icat-http-timeout' of https://github.com/lamby/kitty
2020-05-11 16:58:21 +05:30
Chris Lamb
f08ec1522a
Set a default socket timeout when retrieving remote items in icat.
...
Otherwise we can easily hang when "icat"-ing resources from unreliable
websites/webcams, etc.
2020-05-11 12:24:57 +01:00
Kovid Goyal
e61e93712c
Merge branch 'patch-3' of https://github.com/ctrlcctrlv/kitty
2020-05-11 11:47:14 +05:30
Fredrick Brennan
c9e198e02e
Graphics protocol: note best detection method
...
Per https://github.com/kovidgoyal/kitty/issues/2636#issuecomment-626467852
2020-05-10 23:02:12 -07:00
Kovid Goyal
0ce181b578
Fix #2639
2020-05-10 21:28:55 +05:30
Kovid Goyal
99950fe448
DECQRM responses for mouse tracking modes
2020-05-09 20:55:51 +05:30
Kovid Goyal
d8daf84a09
Fix #2636
2020-05-09 17:21:23 +05:30