Writing sessions with on_tab_bar_dirty
crashing kitty
#9089
mike-lloyd03
started this conversation in
General
Replies: 1 comment
-
That error indicates you have a tab without any windows, it is fixed
already in master. If you want to use save_as_session you would do
kitten @ action save_as_session ...
the same applies when using it via Python.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using the
on_tab_bar_dirty
watcher for a while now to automatically save my current session but as of the latest kitty, it causes a crash. Below is the watcher. It uses the window class (something likekitty_main
) to get the session name and then saves it to~/.config/kitty/sessions
.And here's the error message I'm getting during the crash:
I think with the newer session management features, I should be using this a different way. Probably
save_as_session
. Butkitten @ save_as_session
says that command is unknown so I'm not sure if usingboss.call_remote_control(save_as_session)
would work either.I feel like I'm missing something obvious here. Anyone who can help?
Beta Was this translation helpful? Give feedback.
All reactions