feature request: ability to remove a template definition
tobias-haenel opened this issue · comments
Did you check existing requests?
- I have searched the existing issues
Describe the feature
A method to remove a template definition.
Or should we directly remove the definitions from the overseer.template.registry?
Provide background
I am trying to write my own project management and I don't want to keep my active template definitions when I switch a project.
What is the significance of this feature?
nice to have
Additional details
No response
It would be nice if there were a way to do this. They way I've handled it thus far is by adding a dir
condition (seen here: https://github.com/stevearc/overseer.nvim/blob/master/doc/recipes.md#directory-local-tasks-with-exrc)
One note: this may not matter for your workflow, but it can get a little tricky because vim can set working directories per-tab or even per-window, making it more difficult to determine when you have "left" a directory.
I'd prefer to use plain templates, if that where possible. That would make the whole template management easier in my case.
I don't want to rely on the directory as a project indicator for that exact reason. That is why I manually select which project is currently active.