Skip to content

Automate saving/restoring the session #11

@nicksp

Description

@nicksp

First off, I've followed the setup steps and things work as expected through key bindings. I want to take it a step further and automate saving the session when closing the terminal and restoring it when it opens up. I tried some events Wezterm provides but couldn't make things work. I tried calling session_manager.restore_state(window), emitting restore_session event and simulating key press from inside gui-startup, gui-attached, and mux-startup events to restore the state but none of the variants worked. For the session save, there doesn't seem to be an appropriate event so it;s something that can still be done manually.

Did someone manage to make it work this way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions