overseer.nvim
overseer.nvim copied to clipboard
Automatic task startup with session management
I currently use the rmagatti/auto-session plugin for managing sessions in vim. Basically it just autosaves and restores sessions based on PWD. It's really useful to be able to quickly get back to where I left off in a project.
It would be super nice to have something like this in overseer, but for currently running tasks. For example:
- Open nvim in a project dir
- Start a long running project task (e.g. npm start)
- Reopen nvim
- Tasks starts again because it was running when nvim closed
- Stop task
- Reopen nvim
- Task is not running
I've simplified some APIs and added documentation about how you can integrate overseer with any session plugin, and provided an example for auto-session. Since you wanted to only save the currently running tasks, you'll need to make the following change to the example:
overseer.list_tasks({
bundleable = true,
status = overseer.STATUS.RUNNING, -- This will list only the running tasks
}),