Kovid Goyal
fbbac6de38
Fix #10044
2026-05-20 20:13:09 +05:30
Kovid Goyal
851ec96979
save_as_session: when the filename input by the user has no extension, automatically add the `.kitty-session` extension
...
Fixes #9919
2026-04-25 14:30:26 +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
8e76a62815
Show error message when save_as_session has too many path arguments
2026-04-18 23:15:01 +05:30
LazyStability
4504b5febe
feat(sessions): add active-only to goto_session
...
Allows to specify whether or not to switch only to an active session
2026-02-14 16:23:27 +01:00
Arsenii Kvachan
8a1f4bda3b
Allow browsing a directory with sessions
...
- interpret a directory argument by listing only *.kitty-session and similar files
- reuse the existing sorting logic for the directory chooser and document the workflow
2025-11-12 17:37:13 +01:00
Jackie Li
eedd56ff93
cleanup + keep it simple
2025-10-26 17:47:58 +00:00
Jackie Li
2a129f2b3b
remove --focus-tab and add docs
2025-10-26 17:32:23 +00:00
Jackie Li
47b4c94c61
implement --base-dir and --focus-tab to save_as_session
2025-10-26 11:08:43 +00:00
Jackie Li
75537187a8
support search_syntax in focus_tab
2025-10-26 09:44:29 +00:00
Jackie Li
c9645378f7
add focus-tab command to session file
2025-10-26 09:44:04 +00:00
Kovid Goyal
2665a871c0
Fix a regression in the previous release that broke goto_session -1
2025-10-02 18:52:31 +05:30
Kovid Goyal
56f26ed919
Fix interaction of focus and focus_matching_spec in session files
...
The last specified one wins. If nether are specified, first window is
focused.
2025-10-02 09:46:23 +05:30
Kovid Goyal
b6b977ff56
Add .kitty_session as a known session file extension
2025-09-29 21:42:44 +05:30
Kovid Goyal
2ceddba923
goto_session: Add --sort-by=alphabetical
...
Have the interactive session picker list the sessions in a fixed order
rather than by most recent.
2025-09-29 13:03:23 +05:30
Kovid Goyal
e1d8565fb6
Add os_window_title to sessions
2025-09-01 19:30:50 +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
d3c46a829d
Add action to close a session
2025-08-23 09:17:27 +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
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
e7b3fb0197
When serializing foreground process allow serializing shell builtins as well
2025-08-19 16:19:26 +05:30
Kovid Goyal
648886cbd1
Fix windows not being assigned session names
2025-08-19 16:00:38 +05:30
Kovid Goyal
51cc6ec525
Auto create parent directory when saving session file
2025-08-19 07:43:05 +05:30
Kovid Goyal
a2d76a6c34
Document the save_as_session action
2025-08-17 14:44:26 +05:30
Kovid Goyal
d233cd0a53
Make switching OS window focus more robust under Wayland at various call sites
2025-08-17 13:33:16 +05:30
Kovid Goyal
c2389a1adc
Option to make saved session files relocatable
2025-08-17 11:56:32 +05:30
Kovid Goyal
67b2e859f5
Allow using relative paths in cd in sessions files that get resolved relative to the directory containing the session file
2025-08-17 11:23:36 +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
0fb1835af1
Cache parsed save as session options spec
2025-08-16 09:57:00 +05:30
Kovid Goyal
ca715c4cae
Pass session serialization options into all contexts where they might be needed
2025-08-16 09:15:47 +05:30
Kovid Goyal
24e0bbd50e
Add save_as_session action
...
Docs need to be updated.
2025-08-16 06:32:42 +05:30
Kovid Goyal
8702057dda
Implement interactive session picking
2025-08-15 16:09:45 +05:30
Kovid Goyal
c8c0201cbb
Handle relative paths in goto_session
2025-08-14 20:57:02 +05:30
Kovid Goyal
7cf53a6a68
Implement goto previous session
2025-08-14 20:28:55 +05:30
Kovid Goyal
0789e62b11
Fix adding of tabs to existing OS Window in create_session
2025-08-14 20:11:43 +05:30
Kovid Goyal
035ce949b4
Start work on goto_session action
2025-08-14 19:43:14 +05:30
Kovid Goyal
97f1d7f436
Implement session command to set layout state
2025-08-06 20:43:12 +05:30
Kovid Goyal
cd872d505f
Better fix for missing cls and name options on macOS
2025-04-29 09:06:52 +05:30
Kovid Goyal
840148c2b8
...
2025-04-29 09:02:54 +05:30