Commit Graph

16312 Commits

Author SHA1 Message Date
Kovid Goyal
5740173bdc Re-render OS Window when its layers requirement changes 2025-08-24 15:06:31 +05:30
Kovid Goyal
cbca4d6593 Implement tab_bar_filter
Useful to manage multiple sessions in a single kitty OS Window.
Add some docs to sessions.rst describing this use case.
2025-08-24 12:25:15 +05:30
Kovid Goyal
7bd912c093 Micro optimization using the new ability to specify all_set 2025-08-23 14:15:40 +05:30
Kovid Goyal
46537e76a5 Allow matching tabs/windows over a custom all set 2025-08-23 14:05:41 +05:30
Kovid Goyal
21579e6fcb ... 2025-08-23 13:30:36 +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
d3c46a829d Add action to close a session 2025-08-23 09:17:27 +05:30
Kovid Goyal
21fa5bb1ce macOS: focusing of minimized window broken
This was done to fix #8913 in d7c2cdc.
Explicitly de-miniaturize before making key.
2025-08-23 07:49:06 +05:30
Kovid Goyal
1e0b3f808f Move serialization code together 2025-08-22 21:45:18 +05:30
Kovid Goyal
0b8488aa65 Also restore cwd when serializing direct ssh kitten invocations 2025-08-22 21:43:56 +05:30
Kovid Goyal
36163fd532 Ensure current layout is in enabled layouts when serializing 2025-08-22 21:34:26 +05:30
Kovid Goyal
dcf4fc72f6 Add an example of saving remote sessions to the docs 2025-08-22 21:31:55 +05:30
Kovid Goyal
ba0cc0fa2c save_as_session: Implement saving of foreground process for remote shells run via ssh kitten 2025-08-22 21:14:33 +05:30
Kovid Goyal
eacc985c28 save_as_session: Preserve remote cwd when saving ssh kitten cmdline 2025-08-22 20:59:52 +05:30
Kovid Goyal
1a25ca1545 Fix setting env vars in kssh cmdline that has no kitten directives 2025-08-22 20:56:41 +05:30
Kovid Goyal
7134819c26 Fix child_is_remote() not working when abspath to ssh is used 2025-08-22 20:45:05 +05:30
Kovid Goyal
e63d6e91f8 save_as_session: Properly serialize ssh kitten foreground process 2025-08-22 20:40:52 +05:30
Kovid Goyal
f824cc2453 ... 2025-08-22 20:02:32 +05:30
Kovid Goyal
3c5678908a DRYer 2025-08-22 20:00:48 +05:30
Kovid Goyal
272d98480f Record startup session in session history as well 2025-08-22 19:52:26 +05:30
Kovid Goyal
b401827881 Fix stupid typo that broke goto_session -1 2025-08-22 19:46:22 +05:30
Kovid Goyal
14cbf5cb73 Ensure newly created session is focused 2025-08-22 19:44:17 +05:30
Kovid Goyal
535a1bf580 Fix session name not being set when creating tabs in existing OS window 2025-08-22 19:39:33 +05:30
Kovid Goyal
3e92d62923 DRYer 2025-08-22 19:29:53 +05:30
Kovid Goyal
3087cbdcec Ring bell when goto_session -1 has no history 2025-08-22 19:27:13 +05:30
Kovid Goyal
8dac15b8b2 goto_session -1 should not fail when no session history is present 2025-08-22 19:18:11 +05:30
Kovid Goyal
f1321185f9 macOS: Fix rendering in fullscreen with background_opacity < 1
In fullscreen macOS forces the OS Window to be opaque. Therefore we need
to render with background_opacity = 1 for correct colors.

Fixes #8920
2025-08-22 12:09:31 +05:30
Kovid Goyal
110b13dc98 Make calculation of OS Window background opacity centralised 2025-08-22 11:57:29 +05:30
Kovid Goyal
3483f99d09 name a few anon structs 2025-08-22 11:20:23 +05:30
Kovid Goyal
c2a5af19b0 More tab bar geometry adjustments
A couple more places I forgot to change when shifting window boundaries
to be exclusive. Fixes #8921
2025-08-22 11:16:08 +05:30
Kovid Goyal
5e6c397356 Document using negative numbers with goto_session 2025-08-22 07:24:58 +05:30
Kovid Goyal
880b8f1cf1 session should work when matching tabs too 2025-08-21 16:11:44 +05:30
Kovid Goyal
633725544c Forgot to declare session as a valid search location 2025-08-21 16:02:48 +05:30
Kovid Goyal
229413cbe8 ... 2025-08-21 15:50:17 +05:30
Kovid Goyal
7cefc8e55e Add a note about Wayland panel on output limitations 2025-08-21 06:28:24 +05:30
Kovid Goyal
af8cb7c39d Use foreground process only if shell integration reports we are not at a prompt 2025-08-20 08:42:33 +05:30
Kovid Goyal
f925327755 Fix de-serialization of some layouts
Forgot that JSON converts dict keys to strings. Sigh.
2025-08-20 08:10:29 +05:30
Kovid Goyal
4c987cd509 Avoid evaluating active_session against every window 2025-08-19 22:44:26 +05:30
Kovid Goyal
746a80487a ... 2025-08-19 22:12:27 +05:30
Kovid Goyal
d7070d3b97 Document how to update the currently active session 2025-08-19 22:08:19 +05:30
Kovid Goyal
a9d282afd7 DRYer 2025-08-19 22:01:27 +05:30
Kovid Goyal
b28f620c9f Allow using save_as_session . to save to the path of the currently active session 2025-08-19 21:58:25 +05:30
Kovid Goyal
e43d894dda Add a --match argument to limit what windows are saved by save_as_session 2025-08-19 21:53:49 +05:30
Kovid Goyal
89145e6a55 Allow using --match=session:. to match windows in the currently active session 2025-08-19 21:44:20 +05:30
Kovid Goyal
68fdf3f65b Allow matching against session name in the kitty match language 2025-08-19 16:35:06 +05:30
Kovid Goyal
6d21ebd383 ... 2025-08-19 16:21:57 +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
648886cbd1 Fix windows not being assigned session names 2025-08-19 16:00:38 +05:30
Kovid Goyal
de129dfc65 Fix version added for clipboard pw feature 2025-08-19 15:08:26 +05:30