Commit graph

184 commits

Author SHA1 Message Date
Kovid Goyal
5f4e519d61
... 2022-01-22 15:13:53 +05:30
Kovid Goyal
720bf7efd6
Fix mouse position reported incorrectly on click event in a newly created window if the mouse has never moved in that window 2022-01-22 15:10:14 +05:30
Kovid Goyal
8622c47348
Fix #4430 2022-01-08 10:00:25 +05:30
Kovid Goyal
1bfc46a24f
... 2022-01-08 09:16:32 +05:30
Kovid Goyal
26b976d17d
Merge branch 'fix-mouse-scroll' of https://github.com/page-down/kitty 2022-01-04 18:01:30 +05:30
pagedown
3141fc3f05
Update mouse cursor position when scrolling without OS window focus 2022-01-04 19:39:36 +08:00
pagedown
6afabf7e2a
Fix mouse scrolling kitty window without OS window focus 2021-12-17 23:57:38 +08:00
Kovid Goyal
a4d4cf5819
Fix #4367 2021-12-17 17:35:13 +05:30
pagedown
b91809eaa4
Allows to open the command output in pager by mouse click 2021-11-17 22:25:49 +08:00
pagedown
aebf654e15
Add command output mouse selection 2021-11-16 18:15:53 +08:00
Kovid Goyal
b316e97a4f
Allow middle clicking on a tab to close it
Fixes #4151
2021-10-24 22:56:30 +05:30
Kovid Goyal
a16ffcdde2
Handle mouse clicks when displaying focus window overlay 2021-10-15 09:55:15 +05:30
Kovid Goyal
967aaad482
... 2021-10-14 10:07:54 +05:30
Kovid Goyal
9c4942b190
Ensure mouse cursor shape is correct
Previously, the shape was only set on focus in events and when hovering
urls. However, on macOS there are no focus events generated when the
mouse moves between the window and the titlebar/menubar, thus causing
incorrect mouse shape.

Fix #4118
2021-10-14 10:05:44 +05:30
Kovid Goyal
463133abbe
Fix #4095 2021-10-05 07:20:40 +05:30
Kovid Goyal
a402a3ad12
Fix release not reporting button in sgr pixel protocol 2021-09-28 16:20:32 +05:30
Kovid Goyal
3efa8b6322
In SGR_PIXEL_MODE report pixel co-ords outside of window when dragging 2021-09-28 15:14:29 +05:30
Kovid Goyal
9a3d99515f
Add support for reporting mouse events with pixel co-ordinates using the SGR_PIXEL_PROTOCOL introduced in xterm 359 2021-09-28 11:41:35 +05:30
Kovid Goyal
f61b8608de
Fix mouse click event using current mouse co-ords rather than the co-ords at the time of the click 2021-08-18 10:06:08 +05:30
Kovid Goyal
fa327d618d
Cursor movement at shell prompts on click
Fixes #3825
2021-08-18 10:06:07 +05:30
Kovid Goyal
bc202aec6e
Dont discard information on whether a click hit a URL 2021-08-18 10:06:07 +05:30
Kovid Goyal
be34af4555
Remove inline from .c files
It is ignored by compilers and hides unused static functions
2021-08-03 09:11:17 +05:30
Kovid Goyal
a5b293401d
Add an action to restore move-end behavior when extending selections 2021-07-04 19:02:33 +05:30
Kovid Goyal
e732df46b8
Have right clicking to extend selection operate on the nearest selection boundary instead of the selection end. This matches both vim and xterm 2021-07-04 18:00:41 +05:30
Kovid Goyal
ad5d14c672
Fix #3703 2021-06-10 16:53:27 +05:30
Kovid Goyal
caa44b3d4a
Position tab bar as per new margin options
Also mouse clicking anywhere in the tab bar margins should be the same
as clicking in the tab bar, for ease of use.
2021-06-05 09:02:01 +05:30
Kovid Goyal
81411e6b54
Fix trailing parentheses in URLs not being detected
Also fix URLs starting near the end of the line not being detected.

Fixes #3688
2021-06-04 18:13:36 +05:30
Kovid Goyal
76c9f46438
Disambiguate between click and doublepress
A doubleprpess should not generate a click event
2021-05-23 13:38:19 +05:30
Kovid Goyal
85ef3724f1
Proper prefix when reporting Move events 2021-05-11 14:02:17 +05:30
Kovid Goyal
cb21422836
Add click and doubleclick events as well 2021-05-11 13:59:52 +05:30
Kovid Goyal
1c9674cec9
SPlit up add_click into two functions 2021-05-11 13:19:34 +05:30
Kovid Goyal
6dcc09a96f
Port mouse selection tests to new framework 2021-05-11 11:49:44 +05:30
Kovid Goyal
dfbe1bd234
Add debug prints for mouse events 2021-05-11 10:22:30 +05:30
Kovid Goyal
7a40959f13
Add a configurable mouse action to select from the clicked point to the end of the line.
Fixes #3585
2021-05-11 09:01:52 +05:30
Kovid Goyal
858dac5601
Port mouse selection handling to the new generic mouse actions framework 2021-05-10 21:33:13 +05:30
Kovid Goyal
e944945b7a
Implement URL clicking handler 2021-05-10 15:35:50 +05:30
Kovid Goyal
920151a460
Fix mouse event dispatch 2021-05-10 14:48:29 +05:30
Kovid Goyal
a7933018cb
Start work on intercepting mouse events 2021-05-10 07:16:43 +05:30
Kovid Goyal
e811f03011
Match key names 2021-05-10 07:16:43 +05:30
Kovid Goyal
212c653165
Maintain separate click queues for every button 2021-05-10 07:16:43 +05:30
Kovid Goyal
1865570390
Dont force dragging to be with left button 2021-05-10 07:16:43 +05:30
Kovid Goyal
ba1ee7e6cc
Code to dispatch mouse events to python 2021-05-10 07:16:43 +05:30
Kovid Goyal
db719eafac
Remove num/caps locks from modifier processing in mouse events 2021-04-14 10:08:33 +05:30
Kovid Goyal
9ae198ef8f
Double clicking on empty tab bar area now opens a new tab
Fixes #3201
2021-01-02 11:45:18 +05:30
Kovid Goyal
d13ad4ec4b
Merge branch 'nohand' of https://github.com/derekschrock/kitty
Also add a changelog entry and some stylistic fixes
2020-11-22 12:31:28 +05:30
Derek Schrock
cb164e5cac Add new option detect_urls to check for URLs under the mouse cursor
Enabled by default add new option `detect_urls` that will allow you
contorl if kitty should detect URLs under the mouse cursor.  If disabled
the URLs are still clickable with open_url_modifiers.
2020-11-22 00:58:26 -05:00
Kovid Goyal
a74679dd95
Fix last character of URL not being detected if it is the only character on a new line
Fixes #3088
2020-11-11 14:00:33 +05:30
Jay Han
b13174cb9c pointer_shape_when_dragging option + set_mouse_cursor_when_dragging() 2020-10-17 09:52:44 -07:00
Jay Han
03ac6cab99 default_pointer_shape option 2020-10-17 09:28:04 -07:00
Kovid Goyal
4a75952fc7
Implement marking of hyperlinks 2020-09-10 10:47:27 +05:30