Skip to content

v0.7.1

Choose a tag to compare

@liamrlawrence liamrlawrence released this 11 Jun 16:03

Features

Session switch events — repossession now fires User autocmd events
around every session switch, so plugins and config can react:

  • RepossessionSwitchPre fires before a switch, while the old session is
    still active. Handlers run synchronously, and the outgoing session is
    saved one final time after they complete — making Pre the place to
    close windows and delete buffers that shouldn't be recorded in the
    session file.
  • RepossessionSwitchPost fires after the new session has loaded and the
    cwd has changed.

Both events carry a data table identifying the sessions involved.
Pre is skipped on the initial startup load; Post fires alone.
See the Events section of the README.