Commit Graph
6323 Commits
Author SHA1 Message Date
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 d8284befd3.
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
pagedown 9c488bb877 Docs: Remove extra backslashes from commented config
Update docs to use \e in the example.
2022-12-05 14:27:40 +08:00
Kovid Goyal 14a33dbd94 Put the non-boilerplate functions in their proper place 2022-12-05 08:07:50 +05:30
Kovid Goyal d7d96c2e7b When using the include directive in kitty.conf make the environment variable KITTY_OS available for OS specific config 2022-12-04 21:03:24 +05:30
Kovid Goyal fda4aa21a1 When drawing the tab bar have the default left and right margins drawn in a color matching the neighboring tab
Fixes #5719
2022-12-04 20:51:41 +05:30
Kovid Goyal 3cbca4955e ... 2022-12-04 20:48:15 +05:30
Kovid Goyal 8e0e70e2d6 Simplify passing colors to the borders shader 2022-12-04 16:08:32 +05:30
Kovid Goyal 7a348d6ef1 Store updated tab bar edge colors on every tab bar redraw 2022-12-04 14:38:56 +05:30
Kovid Goyal cf8f904720 Function to guess the effective color at the edge of the current screen line 2022-12-04 14:23:21 +05:30
Kovid Goyal fe53555dba Document the additions to the clipboard kitten 2022-12-04 11:37:02 +05:30