227 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
21f7e96bef Address code review: add comment, fallback timer, and warning log for PID monitoring 2026-06-28 03:16:33 +00:00
copilot-swe-agent[bot]
aee532c586 Fix issue 10198: edit-in-kitty exits with editor's exit code
- Python (kitty/launch.py): Track editor PID via monitor_pid to capture
  exit code when editor window closes. Send exit code as data in the DONE
  message instead of sending no data.
- Go (tools/cmd/edit_in_kitty/main.go): Parse exit code from DONE message
  data and use lp.Quit(exit_code) to exit with the editor's exit code.
- Go (tools/cmd/tool/confirm_and_run_shebang.go): Check exit code when
  running edit-in-kitty as a subprocess; abort execution on editor failure.
2026-06-28 03:10:58 +00:00
bjoernab
9e54a4e08c Fixed some spelling 2026-06-24 22:27:17 +02:00
Kovid Goyal
744fc12ca8 Cleanup previous PR
We cant rely on is_wayland() during parsing as that can occur in offline
contexts.
2026-05-08 21:07:51 +05:30
nuck
bb7df075cf Honor OS window positions in launch paths 2026-05-08 08:06:50 -04:00
Kovid Goyal
5623ce52bb Disallow parsing color specs as conf files for clone-in-kitty and edit-in-kitty 2026-04-26 10:47:24 +05:30
Kovid Goyal
7666242914 More verbiage 2026-04-24 13:29:24 +05:30
Kovid Goyal
fcb260bdfa Sort imports 2026-04-19 21:53:09 +05:30
Kovid Goyal
04fcac72ec Update minimum python to 3.11 from 3.10
3.10 is failing in CI and I cant be arsed to figure out why. It's anyway
a few months from EOL
2026-04-19 21:41:58 +05:30
Kovid Goyal
9c8a4ad540 ... 2026-04-04 11:47:08 +05:30
Kovid Goyal
8bf1bd479b edit-in-kitty: Ignore environment variables as some editors execute code present in env vars 2026-04-04 08:42:06 +05:30
copilot-swe-agent[bot]
25f97f4ce5 Implement on_quit event for global watchers
Fixes #9682
2026-03-17 08:37:30 +05:30
Kovid Goyal
b534926678 Clarify help text a little 2026-02-16 09:56:05 +05:30
Kovid Goyal
1103aaf1a5 Cleanup previous PR
Testing is_local_file is insufficient since it can be false for local
files that dont have r/w permissions. Instead check if the child is
remote when the EditCmd is created and only use disconnected abort
if child was remote at creation but is not remote currently.
2026-02-08 07:57:15 +05:30
newwares
60e2d61eb4 edit-in-kitty: Warn if SSH connection has dropped when attempting to update remote file 2026-02-07 20:26:28 -05:00
ad-chaos
17f2d2c574 Revert "Fix edit-in-kitty +lnum path"
This reverts commit 0f80229468.
2026-01-26 14:15:10 +05:30
phanium
0f80229468 Fix edit-in-kitty +lnum path 2026-01-01 18:28:07 +08:00
Kovid Goyal
b6c3841beb ... 2025-11-07 15:06:08 +05:30
Kovid Goyal
b9a8b64b32 Refactor previous PR
Move code to incrementally update lsc config into the kitten module do
that it is more likely to stay in sync with any future changes to the
kitten cli.
2025-09-22 11:54:23 +05:30
alex-huff
0daab6ab43 resize-os-window: fix '--incremental' option of 'os-panel' action
This commit addresses a few issues with the implementation of
'--incremental':
    - Unspecified settings are reset to their default value, which
      defeats the purpose of the option.
    - It is assumed that the names of options in 'LayerCLIOptions' map
      one to one with the names of fields in 'LayerShellConfig' but this
      isn't true. For example: The 'margin_top' cli option sets the
      'requested_top_margin' layer shell config.
    - When some options are set to a certain value, they force other
      options to be some value. The current implementation doesn't
      account for this.
    - The documentation is contradictory.
2025-09-22 00:10:42 -05:00
Kovid Goyal
508ca700d8 Fix #8998 2025-09-21 10:10:51 +05:30
Kovid Goyal
e176b723f5 When creating a new window/tab with the same cwd as the current window automatically put the newwindow into the same session as the current window 2025-08-23 13:24:48 +05:30
Kovid Goyal
e7b3fb0197 When serializing foreground process allow serializing shell builtins as well 2025-08-19 16:19:26 +05:30
Kovid Goyal
03792a1717 A new --add-to-session flag for launch
useful to optionally have new windows/tab join the active session when launched.
2025-08-19 16:06:49 +05:30
Kovid Goyal
8451ad44b5 Implement running foreground process even on unknown shells
This is not as nice because the environment wont have been setup by
the shell before running the process, but it's the best we can do
for an unknown shell.
2025-08-19 10:37:05 +05:30
Kovid Goyal
f91a0f6986 When saving session add option to save the foreground process running in the shell so that it is also restarted
Useful if user builds up session to save by running programs via
the shell.

Note that the serialization format for session files has changed
slightly, becoming more robust and allowing us to add more types
of saved data in the future, without overloading user_vars and thus
risking name conflicts.
2025-08-16 16:50:45 +05:30
Kovid Goyal
dcc9ade7ae Record user vars in creation spec 2025-08-16 12:18:31 +05:30
Kovid Goyal
46e9223c05 Add function to get window as launch command for serialization 2025-08-11 21:20:55 +05:30
Kovid Goyal
e797ad746e Store creation spec on windows
Will come in handy when serializing them
2025-08-11 12:26:01 +05:30
Kovid Goyal
0afa0c4e50 Make set of excluded env vars for clone re-useable 2025-08-08 09:06:51 +05:30
Kovid Goyal
8a39976449 Watchers: A new event for global watchers corresponding to the tab bar being changed
Fixes #8842
2025-07-23 09:24:12 +05:30
Kovid Goyal
2ee11ed613 Cleanup previous PR 2025-07-12 13:13:46 +05:30
Barr
ca2232e435 feat: new option --hold-after-ssh to allow spawning a shell after a kitten ssh disconnection
new option to the launch command, the new shell will be in the directory
that launched kitten ssh
2025-07-12 10:07:29 +03:00
Stefan A. Haubenthal
3b20936959 Fixed typos 2025-05-18 19:52:12 +05:30
Kovid Goyal
d9f61803ae Make a note that launching OS panels does not support --config or --override as these are per process settings not per OS Window.
Fixes #8635.
2025-05-13 15:35:22 +05:30
Kovid Goyal
3c3ba4a9fb @ launch: Add a --wait-for-child-exit flag to get the child processes exit code even when it is running in a window. 2025-05-06 19:17:17 +05:30
Kovid Goyal
fc5fc7c9c4 Remote control: Allow modifying desktop panels and showing/hiding OS Windows using the kitten @ resize-os-window command
Also move the visibility toggle debounce into C code with a per OS
Window timer.

Fixes #8550
2025-04-22 13:34:09 +05:30
Kovid Goyal
3ce734ce9c launch: Allow creating desktop panels
Now users can use mappings or remote control to popup new desktop panels
on Wayland in addition to new desktop windows.

Fixes #8549
2025-04-21 14:59:31 +05:30
Kovid Goyal
56b49c49fb ... 2025-03-28 11:49:47 +05:30
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
George Joseph
d2288ee787 Add support for os_window_name in startup sessions.
You can now specify `os_window_name` in addition to `os_window_class` in
startup sessions.  It works for the initial session as well as new sessions
started with `new_os_window`.

Updated documentation in overview.rst to add `os_window_name` in the
Startup Session examples.

Although not related to this feature. The documentation in launch.py
was updated to note that the `launch --type` `tab` and `os-window` options
aren't supported when launch is invoked from a startup script.  There's
already a note to that effect in the "Startup Sessions" section in
overview.rst but if you're looking at the launch syntax page like I was,
you wouldn't realize the limitation. This was throwing me for a loop while
wotking on this PR.

Resolves: #8387
2025-03-02 14:10:17 -07:00
Kovid Goyal
f55704c50d launch --next-to should control OS window selection for --type=tab 2025-02-08 08:42:48 +05:30
Kovid Goyal
244f4597dc launch: Decouple source and dest windows from active window
Fixes #8295
2025-02-07 13:40:44 +05:30
Kovid Goyal
da1626090a Update codebase to Python 3.10 using pyupgrade 2025-02-03 10:56:50 +05:30
Koichi Murase
e495aa02f3 clone-in-kitty: Exclude more environment variables from clone target 2025-01-30 16:18:47 +09:00
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
5a99f3b6cf clone-in-kitty: Fix KITTY_WINDOW_ID being cloned and thus having incorrect value
Fixes #8161
2024-12-25 18:27:40 +05:30
Kovid Goyal
3bee1857f7 Make mypy happy 2024-12-21 08:06:29 +05:30
Kovid Goyal
36074eabc8 Make code to parse color specs and patch options objects re-useable 2024-11-07 13:14:33 +05:30
Kovid Goyal
27cf969a64 Proper error output 2024-11-07 09:35:26 +05:30