107 Commits

Author SHA1 Message Date
Your Name
33167f2057 Change mouse_hide_wait to struct, and change mouse_show_* options to optional parameters for struct. mouse_show_* renamed to mouse_unhide_* 2025-04-04 11:22:56 +00:00
Your Name
464446e388 Prevent mouse cursor from showing on short, unintentional flicks 2025-04-04 04:33:47 +00:00
Kovid Goyal
80db9b4734 Merge branch 'min-contrast-ratio' of https://github.com/arne314/kitty 2025-03-19 21:02:29 +05:30
arne314
e1b454e49e fix: generate config min contrast 2025-03-15 13:35:32 +01:00
arne314
40ef6b4f37 config: number with unit for min contrast ratio 2025-03-14 14:05:34 +01:00
Kovid Goyal
96d5c9c7c6 A new option to clear selections when they no longer reflect the contents of the clipboard 2025-03-12 11:41:27 +05:30
Kovid Goyal
370723b47b Do not count background processes by default for confirm_os_window_close
Fixes #8358
2025-03-09 20:07:57 +05:30
Kovid Goyal
2a714928db When dragging in rectangle select mode use a crosshair mouse cursor 2025-02-23 10:32:54 +05:30
Kovid Goyal
fb54f1527f Update type signatures generated by gen/config.py 2025-02-11 22:22:57 +05:30
Kovid Goyal
da1626090a Update codebase to Python 3.10 using pyupgrade 2025-02-03 10:56:50 +05:30
Kovid Goyal
81a5f29979 Option to control underline exclusion 2025-02-03 10:56:46 +05:30
Kovid Goyal
865aa4bc24 Cleanup cursor_trail threshold option name and documentation 2024-10-27 13:44:33 +05:30
Rick Choi
f3de97f6d0 expose option cursor_trail_distance_threshold 2024-10-27 13:02:35 +09:00
Kovid Goyal
463c759bfb Allow changing the cursor trail threshold time independently of input_delay 2024-10-18 11:09:03 +05:30
Rick Choi
2bd008f8ca expose cursor_trail options 2024-10-13 21:10:20 +09:00
Kovid Goyal
dbfeb8d6a4 Store transparent colors on ColorProfile
This will eventually allow them to be changed using remote control and
escape codes.
2024-09-24 19:02:13 +05:30
Kovid Goyal
e78e86572e Prepare for allowing upto seven additional semi-transparent background colors 2024-09-24 19:02:13 +05:30
Kovid Goyal
de21e5e488 Implement filtering of desktop notifications
Fixes #7670
2024-07-28 08:41:24 +05:30
Kovid Goyal
0cf9a79760 A new option second_transparent_bg
Makes a second background color semi-transparent via background_opacity.
Useful for things like cursor line highlight in editors.

Fixes #7646
2024-07-21 20:22:31 +05:30
Kovid Goyal
43769bc3e0 Allow controlling the easing curves used for the visual bell 2024-07-19 11:35:00 +05:30
Kovid Goyal
f090c9a895 Code to convert easing functions from Python to C 2024-07-18 22:25:02 +05:30
Kovid Goyal
ac712f5d2d ... 2024-06-24 07:54:20 +05:30
Kovid Goyal
060732b428 work on passing font features via font specs 2024-06-24 07:54:18 +05:30
Kovid Goyal
6e3c9856d1 Wire up parsing of font specs 2024-06-24 07:53:16 +05:30
Kovid Goyal
68649d78df Cleanup previous PR 2024-06-15 06:12:31 +05:30
n0pl4c3
1968d0b8e0 Implemented option to change cursor shape in unfocused window 2024-06-14 23:02:34 +02:00
aki
4d8b34cab8 change window_logo_scale to float, add granular xy scaling options to window_logo_scale 2024-06-13 23:33:28 +09:00
aki
56fc4eddbd add option to scale window_logo via window_logo_scale 2024-06-12 21:29:04 +09:00
Johannes Wüller
7c8660a694 Extend placement_stragegy options
placement_strategy previously only accepted 'center' and 'top-left', but
others are potentially useful too. I personally like 'bottom-left'. The
new set of accepted values mirrors the window_logo_position option.
2024-05-08 16:33:04 +02:00
Kovid Goyal
2c4ffba0f3 Wayland: A new option to turn off IME 2024-04-05 14:56:11 +05:30
Kovid Goyal
700b57bc18 Implement a simple scroll progress indicator
Shows a simple bar on the right edge of the window that moves up as you
scroll further back. There are apparently a lot of people that dont use
a pager for browsing large scrollbacks. I will never understand this,
but, what the hell I was in that code area anyway for other reasons.

TODO: Maybe make it a rounded rectangle
2024-03-28 20:33:35 +05:30
Kovid Goyal
198b69e275 An option to set TERMINFO to the database directly instead of a path 2024-03-21 10:48:53 +05:30
Kovid Goyal
04506975e5 Cleanup previous PR 2023-11-14 14:55:43 +05:30
Jin Liu
24bb28b773 Allow sending notification when a command finishes
When the option `notify_on_command_finish` is set, and a command
takes more than `notify_on_command_finish_min_duration` seconds
to execute, then when it finishes, send a desktop notification.

The value of `notify_on_command_finish` can be:
never | unfocused | invisible | always
the latter three are interpreted the same way as in the `o=` option
of the desktop notification protocol.
2023-11-14 16:46:38 +08:00
Kovid Goyal
b4f88b4f81 A new option to control when hyperlinks are underlined
While kitty is never going to underline detected URLs as the performance
of that is absurd, underlining hyperlinks specifically is acceptable,
since they dont require detection.

See #6766
2023-11-03 08:51:58 +05:30
Kovid Goyal
4b997a961c A new option single_window_padding_width to use a different padding when only a single window is visible
Fixes #6734
2023-10-20 08:37:45 +05:30
Kovid Goyal
9375e671bc dedup choice literals 2023-10-15 10:10:05 +05:30
Kovid Goyal
4f1971c480 Rationalize mouse cursor shape handling
Now can use the full range of standard mouse cursor shapes similar to
those supported by browsers via the CSS cursor property.

Still needs to be fully implemented for cocoa backend.
2023-10-15 09:17:31 +05:30
Kovid Goyal
f73d32e15d A new option menu_map that allows adding entries to the global menubar on macOS 2023-10-09 19:47:25 +05:30
Kovid Goyal
59b47a3a8f A facility to easily have child programs print to kitty stdout
Works better than the kitty-print DCS escape code as that tends to get
interleaved with other writes to the tty since the loop infrastructure
writes in a separate I/O thread.
2023-07-30 19:49:44 +05:30
Konstantin Borisov
ee4a9c6ed8 fixed CENTER_CLAMPED to center images bigger than view, added CENTER_SCALED background image layout option 2023-07-13 21:26:25 +05:30
Kovid Goyal
7a1bdb4ff1 macOS: Implement background blurring
Uses a private API that allows us to control the amount of blurring.
While using a private API is obviously not ideal, it is used by both
iTerm.app and Apple's own Terminal.app, so hopefully it should stick
around. Fixes #6135
2023-06-27 08:48:16 +05:30
Kovid Goyal
cd56597e7e Remove the resize_draw_strategy option
Use scale + size as the fixed strategy. This is because static looks
bad with translucent windows (the cell area ends up a different opacity
than the newly exposed window area).
2023-06-07 15:36:05 +05:30
Kovid Goyal
89875af5e6 Fix jerky behavior when live resizing an OS window on platforms that report live resize being and end events
Also disable live resize begin/end events on Wayland since they are not
reliable.

On platforms that support live resize begin/end use a separately
configurable pause time before the screen is redrawn.

Fixes #6341
2023-06-07 14:31:39 +05:30
Kovid Goyal
53073f34d7 Cleanup previous PR 2023-05-24 13:31:29 +05:30
Luna McNulty
9bd97b090d Remove glsl if-else, add macro, separate new opt
This adds a config option called text_fg_override_threshold that
specifies a percentage difference luminance below which the
foreground color will be overridden. The foreground color is set
to white if the background is dark or black if the background is
light. The default is 0, and the computations will only be
performed if the option is set.

Many programs output colors that look good with the author's
terminal's color scheme but which are completely illegible with
other color schemes. This allows the user ensure that there is
always sufficient contrast to read the text on the screen.

I originally implemented this is as a parameter on
text_composition_strategy. For that to work, the option needed to
take _up to_ rather than _exactly_ the number of available
parameters. While it now has nothing to do with the new feature,
it seems like that change should be made anyway, so I'm leaving
it in for now.
2023-05-20 11:13:53 -04:00
Kovid Goyal
f046884f23 Allow stopping of URL detection at newlines via url_excluded_characters
Fixes #6122
2023-03-21 08:04:42 +05:30
Kovid Goyal
fda2646dd3 Cleanup previous PR 2023-03-19 10:37:37 +05:30
Campbell Jones
55fd885491 Add option to set XDG sound theme on Linux 2023-03-18 16:38:29 -04:00
Kovid Goyal
4dfd4d4972 sRGB glyph composition: Use default values that give "close to native" rendering. Also use only a single option to control it. 2023-02-08 13:49:53 +05:30