6332 Commits

Author SHA1 Message Date
Kovid Goyal
41207aa830
kitty @ get-colors: Report the current tab bar colors for the active OS window rather than configured values. Fixes #5865 2023-01-07 13:56:36 +05:30
Kovid Goyal
2205bf4426
add a comment 2023-01-06 14:42:14 +05:30
Kovid Goyal
def35078d1
... 2023-01-06 14:26:15 +05:30
Kovid Goyal
1b5fac3189
Cleanup previous PR 2023-01-06 14:25:21 +05:30
Kovid Goyal
5d42d1f955
Remove the old python icat implementation
Keep the python backend code as it is used by the diff kitten to display
image diffs.
2023-01-05 19:34:12 +05:30
Kovid Goyal
520b935cd3
... 2023-01-05 19:15:12 +05:30
Kovid Goyal
aab81c2d32
Turn off hyperlink target display by default
I find it too intrusive for limited benefit. Most the hyperlinks I
click come from trusted programs anyway.
2023-01-05 15:30:43 +05:30
Kovid Goyal
49418c2f53
Show the hyperlink target bar on the top more often than the bottom. This is because the text cursor is usually closer to the bottom. 2023-01-05 15:28:02 +05:30
Kovid Goyal
a548e3eb4d
Fix some animations pausing before starting 2023-01-04 11:18:17 +05:30
Kovid Goyal
bc2492c212
dont show URL targetbar when mouse is hidden 2023-01-01 12:11:19 +05:30
Kovid Goyal
c03310b5e5
Cleanup previous PR 2022-12-31 14:03:16 +05:30
Yuxin Wu
832506d785 move is_modifier_key to glfw.c and expose in Python 2022-12-30 23:32:46 -08:00
Yuxin Wu
13b09346b9 reset current window after processing sequence 2022-12-30 23:07:50 -08:00
Yuxin Wu
1c10c5fcc4 replay modifier key as well 2022-12-30 23:07:50 -08:00
Yuxin Wu
510c5bd73b handle release 2022-12-30 23:07:49 -08:00
Yuxin Wu
774fdd7e94 Send sequence events to child if they don't match kitty. 2022-12-30 23:07:36 -08:00
Kovid Goyal
456af90ad2
Remote control: Allow matching for self window even over sockets when run inside a kitty window
Have kitty-tool send the value of KITTY_WINDOW_ID if present.
2022-12-30 12:17:31 +05:30
Kovid Goyal
c18bff7821
Remote control: Allow matching the parent of an overlay window 2022-12-30 11:29:05 +05:30
Kovid Goyal
080d1bf935
Fox object lifetime management 2022-12-30 10:08:49 +05:30
Kovid Goyal
4f9ed6546a
Pass key events mapped to scroll actions to the program running in the terminal when the terminal is in alternate screen mode
Fixes #5839
2022-12-30 08:54:31 +05:30
Kovid Goyal
c76bbeabd6
... 2022-12-30 08:34:58 +05:30
Kovid Goyal
6a06769931
... 2022-12-29 17:27:57 +05:30
Kovid Goyal
468b6fab02
Also use sanitized URL for allow_hyperlinks=ask 2022-12-29 17:05:18 +05:30
Kovid Goyal
306f9e5735
Prettify URLs before displaying them to the user 2022-12-29 17:04:02 +05:30
Kovid Goyal
f4ac03b791
Show the target of terminal hyperlinks when hovering over them with the mouse
Fixes #5830
2022-12-29 16:43:45 +05:30
Ikko Ashimine
e78000c879
Fix typo in iqsort.h
comparision -> comparison
2022-12-27 00:27:16 +09:00
Kovid Goyal
68cf9f7514
Switch to tracking linewrap on the last cell in a line
This allows us to have newline not affect the wrap status of a line.

Now a lines wrapping status is changed only when the last cell
in the line is changed. This actually matches the behavior of many other
terminal emulators so is probably a good thing from a ecosystem
compatibility perspective.

The fish shell expects this weird behavior of newline not changing
wrapping status, for unknown reasons, which is the actual motivation for
doing all this work.

Fixes #5766
2022-12-26 20:26:21 +05:30
Sergei Grechanik
32d8aac808 Fix scrolling images within margins
This commit fixes an off-by-one error in image scrolling that caused
images to not be scrolled or to be cropped at the wrong line.
2022-12-25 15:34:54 -08:00
Kovid Goyal
cd92d50a0d
Keyboard protocol: Remove CSI R from the allowed encodings of the F3 key as it conflicts with the *Cursor Position Report* escape code 2022-12-24 10:32:28 +05:30
Kovid Goyal
307ce1cf87
Remove not needed wrapper function since now we use a struct to set attrs 2022-12-23 13:50:55 +05:30
James McCoy
b45dc20693
Define SingleKey bitfields according to endianness
Closes #5802
2022-12-22 15:07:54 -05:00
Kovid Goyal
bcedbe5ec1
Revert "Change the terminfo entry for cud1 to not alter text to comply with the terminfo man page"
This reverts commit d8284befd3dc3005568b28a1247553e22548c4eb.
See https://github.com/kovidgoyal/kitty/issues/5766#issuecomment-1363025173
2022-12-22 21:49:32 +05:30
pagedown
1023084eb9
macOS: Allow to customize Hide, Minimize, and Quit global menu shortcuts
All previously hard-coded shortcuts under macOS can be configured now.
2022-12-20 21:08:26 +08:00
Kovid Goyal
d8284befd3
Change the terminfo entry for cud1 to not alter text to comply with the terminfo man page
Fixes #5766
2022-12-20 09:16:05 +05:30
Kovid Goyal
e4ee2cf995
Move the alt+left/right binding into zsh integration
It works OOTB in bash and fish already.
2022-12-19 11:25:12 +05:30
Kovid Goyal
65c64d8745
macOS: Bind :kbd:option+left and :kbd:option+right to :kbd:alt+b and :kbd:alt+f. This mimics the default bindings in Terminal.app
Fixes #5793
2022-12-18 20:34:42 +05:30
Kovid Goyal
6efb5dc2c2
Auto-create an OS Window if none exists on new_tab 2022-12-16 19:34:37 +05:30
Kovid Goyal
c6360537e5
Try to fix tests failing on Python 3.11 2022-12-16 10:05:05 +05:30
Kovid Goyal
a5a6880a19
Respect enable_audio_bell when a layout action fails 2022-12-14 06:53:14 +05:30
pagedown
0a5c409a12
Remote control: Add the missing option value overlay-main 2022-12-13 22:48:46 +08:00
Kovid Goyal
eeb772ad07
@launch: When an overlay window is specified in a particular tab via --match use the active window of that tab as the base, not the current tab. Fixes #5768 2022-12-13 20:15:21 +05:30
Kovid Goyal
902373ed20
Also make lists and dicts of strings escape code safe 2022-12-12 19:24:44 +05:30
Kovid Goyal
aac57550c9
rc protocol: Encode strings values in an escape code safe way
Go emits UTF-8 encoded JSON not ascii encoded JSON. Still need to fix
lists and dicts of strings
2022-12-12 18:48:54 +05:30
Kovid Goyal
95e05ce9ec
Fix #5761 2022-12-12 16:49:18 +05:30
pagedown
91576cc42f
Remote control: Keep the same naming style for ls command output 2022-12-12 12:53:58 +08:00
Kovid Goyal
f03a665e09
Remote control: When matching windows allow using negative id numbers to match recently created windows
Fixes #5753
2022-12-10 11:17:55 +05:30
Kovid Goyal
7fe5c79d53
Also mask signals when SIGNALFD is not available
This makes behavior across platforms consistent.
Fixes #4636
2022-12-07 12:25:14 +05:30
Kovid Goyal
879b27a045
... 2022-12-07 06:48:19 +05:30
Kovid Goyal
9cb0e4d09d
Block handled signals early in startup before glfw is initialized to ensure that if the graphics libraries start a thread behind our backs, that threads defaults to haveing the signals blocked unless the library explicitly unblocks them. See #4636 2022-12-07 06:35:18 +05:30
pagedown
30b25709d2
Fix the base path for envinclude 2022-12-05 14:53:26 +08:00