590 Commits

Author SHA1 Message Date
Kovid Goyal
77d2159d3f Ensure all windows in OS Window are destroyed when OS Window is closed 2025-04-16 17:21:58 +05:30
Kovid Goyal
da753c3f5a DRYer 2025-04-16 17:11:15 +05:30
Kovid Goyal
d8889a2f08 Serialize floats 2025-04-16 17:06:06 +05:30
Kovid Goyal
14ff29426d Track child relationships directly in python for performance 2025-04-16 16:46:18 +05:30
Kovid Goyal
a93a6af025 Allow creating float-in-float 2025-04-16 16:18:38 +05:30
Kovid Goyal
d5398f84d8 Function to add a floating window 2025-04-16 16:18:38 +05:30
Kovid Goyal
08d90db4c4 Start work on floating windows 2025-04-16 16:18:38 +05:30
Kovid Goyal
1b0dc5ef3d Fix #8461 2025-03-21 13:07:40 +05:30
Kovid Goyal
08b4e3f2e0 Simplify logic 2025-03-11 10:12:29 +05:30
Kovid Goyal
85d47dc64b Fix too many timers used for clearing progress 2025-03-11 10:07:30 +05:30
Kovid Goyal
375583259a Fix --hold always restoring cursor to block shape instead of respecting the value of cursor_shape 2025-02-18 20:21:07 +05:30
Kovid Goyal
eb5a9bc6a3 ... 2025-02-18 19:02:32 +05:30
Jake Wharton
5d90c842ea Use semicolon to respond to OSC 22 2025-02-17 23:24:11 -05:00
Kovid Goyal
244f4597dc launch: Decouple source and dest windows from active window
Fixes #8295
2025-02-07 13:40:44 +05:30
Arvin Verain
aeb8ec79c2 fix: Report OSC 30101 bg change as via escape code 2025-02-06 21:35:10 +08:00
Kovid Goyal
da1626090a Update codebase to Python 3.10 using pyupgrade 2025-02-03 10:56:50 +05:30
Kovid Goyal
ea9afc6e89 watchers: Add a new event on_color_scheme_preference_change
Fixes #8246
2025-01-23 05:36:25 +05:30
Kovid Goyal
d23adce11c User nerd font symbols for progress as they are guaranteed to exist 2025-01-05 08:58:29 +05:30
Kovid Goyal
9b9b313e77 When a program running in kitty reports progress of a task display it as a percentage in the tab title 2025-01-05 08:48:46 +05:30
Kovid Goyal
6fbeb939de Don't report color scheme preference change when it is changed via escape code 2025-01-05 06:10:49 +05:30
Kovid Goyal
3bee1857f7 Make mypy happy 2024-12-21 08:06:29 +05:30
Kovid Goyal
dd9d8353df Support notifying applications on color scheme change 2024-12-20 09:55:49 +05:30
Kovid Goyal
9d48fa9126 hints/unicode_input kittens: Do not lose keypresses that are sent very rapidly via an automation tool immediately after the kitten is launched
We now buffer the key events until the kitten tells us it is ready.
Without this the key presses are delivered to the underlying window
as the kitten's overlay window was not being focused until the kitten
set the ready message.

Fixes #7089
2024-12-12 13:11:12 +05:30
Kovid Goyal
512bea3d43 Make cmd finish notification clear behavior configurable 2024-12-05 10:27:30 +05:30
Kovid Goyal
ecb607c31d Merge branch 'v0.37.0-patched' of https://github.com/ein-shved/kitty 2024-12-05 09:35:03 +05:30
Yury Shvedov
a9bcc3319a Cleanup command finish notifications
Currently notifications emitted with `notify_on_cmd_finish` and
unfocused left withing notification bar forever and user have to clear
them by hand. This patch automatically clears notification when emitted
window gained its focus back assuming that user is aware about action
and not needs for notification any more.

Change-Id: I8c9f58eeed696eb473aa4a966436aeb1a15fd3d6
2024-12-04 19:47:41 +03:00
Kovid Goyal
e08806aee6 Fix #8099 2024-12-04 19:24:31 +05:30
Kovid Goyal
847433dba2 Discard OSC 9 notifications that start with 4;
Some misguided software is using it for "progress reporting". OSC 9 has
a decade plus history of being used for notifications but because
Windows Terminal decided to use it for progress reporting, without
bothering to do research about conflicting existing uses, systemd of all
things wants to adopt it!! Crazy world we live in.

Since actual notifications are highly unlikely to start with 4; we
hopefully don't break any real world use cases and also don't let
systemd spam our users with endless notifications.

Fixes #8011
2024-11-01 20:21:55 +05:30
Kovid Goyal
661d8bc5a7 Allow using dump_lines_with_attrs on either screen 2024-10-19 12:49:04 +05:30
Kovid Goyal
126fca0224 ... 2024-09-24 19:34:56 +05:30
Kovid Goyal
dc9eefe050 ... 2024-09-24 19:17:27 +05:30
Kovid Goyal
c1fb18a6ef Implement changing transparent background colors via remote control 2024-09-24 19:02:13 +05:30
Kovid Goyal
c3130419a7 Implement dynamic control of transparent background colors via escape code
Still have to implement it via remote control
2024-09-24 19:02:13 +05:30
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
913ce58fe3 Make shlex_split always return a token
Matches behavior of split() so is therefore more intuitive
2024-09-02 17:30:18 +05:30
Kovid Goyal
d9b1c8c04f Fix a harmless error being printed to stderr if shell integration sends an empty cmdline
Fixes #7813
2024-09-02 11:38:31 +05:30
Kovid Goyal
bb090ccc72 Fix a regression in notify_on_cmd_finish that caused notifications to appear for every command after the first
Fixes #7725
2024-08-16 20:47:52 +05:30
Kovid Goyal
f1d0d0949b Run pyupgrade to update the codebase to python 3.9
Gets rid of a lot of typing ugliness by using type annotations on
builtin types
2024-07-31 07:55:27 +05:30
Kovid Goyal
8ba4e36ea4 DRYer 2024-07-27 00:06:59 +05:30
Kovid Goyal
d68e49fe64 Start work on refactoring notifications handling
Makes the code cleaner and easily mockable for testing.
Also, add code to handle closing notifications on Linux.
2024-07-25 06:45:10 +05:30
Kovid Goyal
e14894888c Desktop notifications protocol: Add support for querying if the terminal emulator supports the protocol
Fixes #7658
2024-07-23 20:16:25 +05:30
Kovid Goyal
d31c48092a Move function used only in one place to that place 2024-07-22 13:42:59 +05:30
Kovid Goyal
deff40df8a New OSC 21 protocol for color control
Needs to be specced up
2024-07-22 10:57:13 +05:30
Kovid Goyal
e97de84668 Convenience method to get the mouse position for a window
Fix #7652
2024-07-21 22:18:43 +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
06b5eff6e6 Add support for in-band window resize notifications
Fixes #7642
2024-07-18 20:32:33 +05:30
Kovid Goyal
d826265fd7 Get query terminal working again
Also return current OS Window's font size
2024-06-24 07:54:13 +05:30
Kovid Goyal
c0f820443b Make NETLOC avaialble to open action commandlines 2024-05-22 14:56:50 +05:30
Kovid Goyal
f2a14a083b Some more doc examples
Also disallow fragments that start with -
2024-05-22 08:44:14 +05:30
Kovid Goyal
32f3d43aa0 Support setting urgency for DBUS notifications 2024-05-16 20:10:26 +05:30