persistence.nvim icon indicating copy to clipboard operation
persistence.nvim copied to clipboard

Is it possible to close the current buffers before restoring the session?

Open igrikus opened this issue 1 year ago • 1 comments

Did you check the docs?

  • [X] I have read all the persistence.nvim docs

Is your feature request related to a problem? Please describe.

When I open the folder and restore the session, I am left with an empty buffer opened by default. This annoys me a bit. I would like to be able to close some (or all) of the current buffers

Describe the solution you'd like

We have a pre_save option, but maybe we can also have something like pre_open

Describe alternatives you've considered

I'm unfortunately still a nub in Neovim. Please don't throw stones if I can make something like this out of the box

Additional context

No response

igrikus avatar Apr 10 '24 10:04 igrikus

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jul 06 '24 01:07 github-actions[bot]

There's an event PersistenceLoadPre

folke avatar Jul 06 '24 19:07 folke